# Reading weights into RAM instead of mmap gives 24% faster prefill with experts on the host

- Date: 2026-11-18
- Provenance: Ours. llama.cpp's own warning about mmap with CPU tensor overrides points at this flag; the measurement is ours.
- Recipes: flint
- Builds on: llama.cpp
- Applies to: llama.cpp with tensor overrides that keep weights on the CPU.
- Evidence: [flint/RESULTS.md:33](https://github.com/davidghatley/3060-recipes/blob/main/flint/RESULTS.md#L33), [flint/PLAN.md:21](https://github.com/davidghatley/3060-recipes/blob/main/flint/PLAN.md#L21)

With experts kept in RAM, loading the weights with `--load-mode none` instead of the default mmap makes the host-to-GPU copies during prefill faster.

Measured here on Flint Q4_K_M with llama-bench at 4096 prompt tokens: 1,571.5 tok/s with mmap against 1,948 with `--load-mode none`, a 24% gain. Decode is unchanged.

The weights then count as ordinary process memory, not page cache. On a box with a memory cap, size the cap for the full expert set plus buffers. For Flint that is about 20 GB of experts.

Flag: `--load-mode none`.
