Memory mapping's primary RAM-saving trick is loading model weights into physical memory only when specific pages are accessed, not the entire file at once. This significantly reduces initial RAM footprint for large LLMs.
Open the full topic