llama.cpp leverages memory mapping (mmap) to load LLM weights directly from disk into RAM, eliminating full memory copies, which can make model loading up to 100 times faster and reduce memory requirements by half for the model's weight data.
Open the full topic