3 ms·
I'm not convinced that there isn't more to the story than that. People (including Justine who implemented MMAPing the model and knows how to monitor memory use
by pavon 4y ago
I'm not convinced that there isn't more to the story than that. People (including Justine who implemented MMAPing the model and knows how to monitor memory use properly) are seeing that much of the file isn't being paged into memory, and are not quite sure why[1]. Is it a bug? Is the distribution of weights used highly dependent on the prompts? Are some weights somehow unused altogether? This twitter thread rules out some of those, but I don't think it closes the door.
[1] https://news.ycombinator.com/item?id=35393615 https://news.ycombinator.com/item?id=35393615
edit: softened some of my claims after reading more updates from over the weekend.
- Animats 4y agoNow that's interesting. Entire memory pages of the model aren't being referenced?
- freilanzer 4y agoIf correct could this hint at sub models for specific tasks?
- sitkack 4y agoeBPF echo 3 > /proc/sys/vm/drop_caches
- wmf 4y agoOther people are saying that the whole file does get paged in and transformers access all their weights by design.
- peterfirefly 4y agoThe kernel will read more than just the page that faulted. Jart counts just the page faults and multiplies by the page size.