2 ms·
mmap is not free. It just moves bandwidth around.
by saagarjha 1y ago
mmap is not free. It just moves bandwidth around.
- zozbot234 1y agoUsing mmap for model parameters allows you to run vastly larger models for any given amount of system RAM. It's especially worthwhile when you're running MoE models and parameters for unused "experts" can just be evicted from RAM, leaving room for more relevant data. But of course this applies more generally to, e.g. single model layers, etc.