Two llama.cpp settings for MoE models bigger than your GPU
On one RTX 5090, loading weights into RAM at start, not from the drive as needed, made long prompts read 2.0 to 3.1 times faster on 12 large models, costing free RAM. Expert-cache setups, most with other changes, wrote short replies 1.4 to 2.9 times faster on 11 of 16 large models; the other 5 had no cache.
- If your model file is memory-mapped (read from the drive as needed), read its weights into RAM once at start (
--load-mode dio). Long prompts read faster, cold starts were shorter, and writing speed stayed within a few percent. The cost is free RAM: one model left as little as 5.1 GiB of 188 GiB free (8.8 GiB in its hand-started run). What to do - For faster writing, try an expert cache on the card (
--moe-cache-mib). Setups that added it wrote short replies 1.44 to 2.88 times faster on 11 large models, but all of them also used the first setting, most changed other settings too, and the text written changed on 13 of 15 cached setups. Results - Size the cache to the card, and use a build that has it. Eleven cache setups ran out of card memory. Both flags are in llama.cpp release b12015. A command to start from
What to do
A mixture-of-experts (MoE) model keeps most of its learned weights in
many small parts called experts, and uses a few for each token (a word or
part of one). llama.cpp can keep experts in system RAM
(--cpu-moe for all, --n-cpu-moe N for N layers'
worth, --fit on to decide from free card memory); every
model here kept some or all of its experts there. Reading is how fast a
prompt goes in, writing how fast the reply comes out, in tokens a second
(t/s). GiB and MiB are close to a gigabyte and a megabyte.
- Read the weights in once at start
(
--load-mode dio). By default llama.cpp memory-maps the file: the system pulls pieces from the drive as they are first used into its page cache, spare RAM it can take back.dio(direct I/O) reads them once into pinned memory, RAM locked in place, which counts as used. If the weights are already read into RAM (--no-mmapor--load-mode none), expect only a shorter load. - Setups that added the expert cache wrote faster
(
--moe-cache-mib N), though most of them changed other settings too (results). The cache sets aside N MiB of card memory for copies of the most-used experts. An expert in the cache (a hit) is computed on the card; a miss is uploaded. Its documentation (docs/moe-cache.mdin the pull request 31286 source) says it is used for small batches, such as writing, and that long prompts still upload the experts they use.18000is a little under 18 GiB. - On these models the cache was paired with
--cpu-moe, usually with--fit off, which turns off the automatic placement. All experts then sit in RAM, and the cache decides which of them also live on the card. - Make the cache as big as fits, with room to spare. Too small could be slower than none (sizing).
- Use a build with both flags, such as release b12015.
- Compare output only with the same placement: under
--fit on, two starts can write different text (output checks).
A command to start from
llama-server -m MODEL.gguf --n-gpu-layers 99 --cpu-moe --fit off \ --load-mode dio --moe-cache-mib 18000 \ --ctx-size 262144 --batch-size 4096 --ubatch-size 2048 \ --threads 8 --threads-batch 8
The cached Qwen3-Coder-Next command as it ran,
shortened to the flags that matter here (sampling and chat-template flags
left out; the full command lines for every run are in the data package).
Before, it kept 28 layers' experts in RAM (--n-cpu-moe 28).
What we found: the first setting alone
Sixteen models also ran with dio and nothing else
changed: same build, same placement flags, same window. Both sides were
started by hand from a cold page cache.
| Model | Read, 20K, t/s | First answer, t/s | Second answer, t/s | Cold load, s | Lowest free RAM, GiB |
|---|---|---|---|---|---|
| DeepSeek V4.1 Flash | 273.5 → 559.1 | 16.03 → 16.6 | 16.73 → 16.8 | 168 → 77 | 161.1 → 47.2 |
| GLM-5.3-Flash | 633.6 → 1,239.4 | 13.05 → 13.0 | 13.06 → 13.02 | 213 → 103 | 156.3 → 43.7 |
| DeepSeek V4 Flash 0731 | 535.5 → 1,176.1 | 5.57 → 9.87 | 13.34 → 13.31 | 208 → 108 | 159.6 → 20.9 |
| MiMo-V2.6-Flash | 228.1 → 686.3 | 3.66 → 12.25 | 12.08 → 12.26 | 216 → 95 | 162.1 → 26.5 |
| Qwen3.8-Flash-Next | 439.0 → 1,373.9 | 16.92 → 32.16 | 32.41 → 32.46 | 82 → 47 | 160.9 → 99.5 |
| Ornith-1.5-122B | 941.8 → 2,334.7 | 28.24 → 28.2 | 29.01 → 28.31 | 92 → 46 | 159.7 → 109.0 |
| Beam 1.0 | 166.7 → 506.6 | 1.95 → 8.38 | 8.37 → 8.29 | 289 → 135 | 161.7 → 8.8 |
| Muse Spark Open | 213.9 → 533.4 | 4.89 → 6.36 | 6.41 → 6.37 | 229 → 111 | 161.5 → 18.1 |
| Ling-3.0-flash | 596.9 → 1,537.2 | 39.26 → 39.08 | 39.77 → 39.47 | 100 → 50 | 161.4 → 92.4 |
| Qwen3-Coder-Next | 1,325.5 → 3,080.5 | 70.0 → 70.89 | 71.31 → 70.91 | 24 → 15 | 162.2 → 136.1 |
| Inkling-Small | 321.8 → 776.4 | 15.88 → 16.04 | 16.14 → 16.08 | 138 → 78 | 161.0 → 55.1 |
| Nemotron 3.5 Bolt | 1,122.5 → 2,463.1 | 55.17 → 56.06 | 56.18 → 56.14 | 71 → 31 | 161.0 → 136.7 |
| Qwen3.6-35B-A3B | 4,084.0 → 7,196.9 | 130.08 → 129.4 | 131.06 → 130.12 | 48 → 14 | 155.6 → 150.3 |
| Ornith-1.5-35B | 4,408.5 → 7,070.4 | 137.53 → 133.68 | 138.1 → 133.35 | 43 → 15 | 148.2 → 149.6 |
| Qwen3-235B-A22B | 598.7 → 603.0 | 11.44 → 11.71 | 11.49 → 11.73 | 159 → 69 | 67.5 → 66.8 |
| Qwen3-30B-A3B, 256K | 4,810.1 → 4,813.6 | 29.61 → 29.69 | 29.67 → 29.71 | 49 → 22 | 124.3 → 128.8 |
Measured 1 and 2 November 2026. Fourteen before
commands were memory-mapped; Qwen3-235B-A22B (--no-mmap)
and Qwen3-30B-A3B (--load-mode none) were not. Amber:
discussed below.
- Reading: 1.60 to 3.13 times faster on the 14 memory-mapped models, 1.96 to 3.13 on the 12 large ones (all but Qwen3.6-35B-A3B and Ornith-1.5-35B).
- Cold load: 29 to 63 percent of the time before on all sixteen: Beam 1.0 went from 289 seconds to 135, GLM-5.3-Flash from 213 to 103, Qwen3.6-35B-A3B from 48 to 14.
- Writing: the second answer moved between minus 3.4 percent (Ornith-1.5-35B) and plus 2.1 percent (Qwen3-235B-A22B).
- The slow first answer: on five mapped models it
was much slower while the file arrived from the drive (Beam 1.0: 1.95
t/s, 57.9 GB read across its test). With
dio, four of the five ran at about their second answer's speed; DeepSeek V4 Flash still wrote 9.87 t/s against 13.31, for reasons the logs do not show. - Start logs (GLM-5.3-Flash): 123.7 GiB in the
page cache before, 117.5 GiB pinned with
dio.
No reading gain on Qwen3-235B-A22B, Qwen3-30B-A3B and
Qwen3.5-122B-A10B, whose before commands already held the weights in RAM;
dio only shortened their load:
| Model (before command) | Weights held in RAM at start, GiB | Held in the page cache, GiB |
|---|---|---|
| Qwen3-235B-A22B | 93.0 | 0.1 |
| Qwen3-30B-A3B, 262,144 | 31.1 | 0.1 |
| Qwen3.5-122B-A10B | 49.4 | 0.2 |
What we found: every model, before and after
Each after setup changes several things at once; the “What changed” column lists them. Tokens a second, before → after. “Short” is the second prose answer, “at 20K” the reply after a 20,000-token read. A code word planted in the read came back on every row.
| Model, file, window | What changed | Writing, short | Writing at 20K | Read, 20K | Start to ready, s | Card peak, MiB | Lowest free RAM, GiB |
|---|---|---|---|---|---|---|---|
| DeepSeek V4.1 Flash, GSQ-RCO IQ2_XXS, 262,144 | dio; cache 12,000 MiB; all experts to RAM (was 37 layers’) | 16.73 → 46.81 | 16.2 → 39.7 | 273.5 → 563.9 | 168 → 109* | 28,548 → 30,492 | 161.1 → 36.5 |
| GLM-5.3-Flash, UD-Q3_K_XL, 131,072 | dio; cache 11,000 MiB; all experts to RAM (was 42 layers’) | 13.06 → 19.99 | 12.95 → 18.48 | 633.6 → 1,225.4 | 213 → 110* | 28,588 → 30,311 | 156.3 → 30.0 |
| DeepSeek V4 Flash 0731, UD-Q8_K_XL, 262,144 | dio; cache 10,000 MiB; micro-batch 8192 to 4096 | 13.34 → 21.49 | 13.04 → 20.73 | 535.5 → 961.6 | 208 → 112* | 25,921 → 31,289 | 159.6 → 18.7 |
| MiMo-V2.6-Flash, MXFP4, 131,072 | dio; cache 17,500 MiB; all experts to RAM (was automatic placement) | 12.08 → 19.31 | 12.07 → 18.24 | 228.1 → 678.8 | 216 → 124* | 28,988 → 30,856 | 162.1 → 9.1 |
| Qwen3.8-Flash-Next, UD-Q4_K_XL, 262,144 | dio; cache 15,000 MiB; all experts to RAM (was 40 layers’) | 32.41 → 63.98 | 29.68 → 52.77 | 439.0 → 1,021.2 | 82 → 74* | 27,363 → 30,469 | 160.9 → 84.1 |
| Ornith-1.5-122B, Q4_K_M, 262,144 | dio; cache 18,000 MiB; all experts to RAM (was 38 layers’) | 29.01 → 45.57 | 28.11 → 43.31 | 941.8 → 2,299.2 | 92 → 70* | 26,976 → 30,982 | 159.7 → 87.9 |
| gpt-oss-120b, F16 file, 131,072 | dio; cache 19,000 MiB; all experts to RAM (was 24 layers’); older build to b12015 | 34.58 → 85.24 | 32.07 → 65.45 | 2,401.4 → 2,671.9 | 86 → 64* | 30,703 → 29,938 | 122.0 → 104.2 |
| Ling-3.0-flash, Q4_K_M, 262,144 | dio; cache 20,000 MiB; older build to b12015 | 39.77 → 114.34 | 38.48 → 106.08 | 596.9 → 1,874.4 | 100 → 69* | 9,764 → 29,629 | 161.4 → 89.3 |
| Qwen3.5-397B-A17B, UD-IQ3_XXS, 131,072 | dio; cache 10,000 MiB; all experts to RAM (was 57 layers’); older build to b12015 | 14.91 → 24.84 | 14.05 → 23.78 | 920.6 → 1,032.5 | 229 → 111* | 30,202 → 30,499 | 34.4 → 21.1 |
| Qwen3-Coder-Next, UD-Q4_K_XL, 262,144 | dio; cache 18,000 MiB; all experts to RAM (was 28 layers’) | 71.31 → 172.69 | 69.33 → 146.39 | 1,325.5 → 2,518.7 | 24 → 41* | 30,669 → 29,946 | 162.2 → 115.0 |
| Nemotron 3.5 Bolt 74B-A9B, UD-Q4_K_XL, 262,144 (its long-window setup) | dio; cache 17,000 MiB; all experts to RAM (was automatic placement) | 56.18 → 81.14 | 55.42 → 78.83 | 1,122.5 → 2,202.8 | 71 → 53* | 30,645 → 29,854 | 161.0 → 115.3 |
| Beam 1.0 501B-A23B, UD-Q2_K_XL, 131,072 | dio only | 8.37 → 8.31 | 8.27 → 8.24 | 166.7 → 504.0 | 289 → 191* | 30,611 → 31,273 | 161.7 → 5.1 |
| Muse Spark Open 816B-A42B, UD-IQ1_S, 131,072 | dio only | 6.41 → 6.38 | 6.05 → 6.35 | 213.9 → 530.7 | 229 → 131* | 31,023 → 31,738 | 161.5 → 12.1 |
| Inkling-Small, UD-Q3_K_XL, 262,144 | dio only | 16.14 → 16.32 | 15.46 → 15.58 | 321.8 → 791.7 | 138 → 94* | 17,967 → 17,712 | 161.0 → 51.8 |
| Qwen3-235B-A22B Instruct 2507, UD-Q3_K_XL, 131,072, 6 of 8 experts per token | dio only, in place of --no-mmap | 11.49 → 11.81 | 11.18 → 11.40 | 598.7 → 604.9 | 159 → 86* | 31,801 → 30,944 | 67.5 → 65.7 |
| Qwen3.5-122B-A10B, UD-Q4_K_S, 262,144 | dio only, in place of --no-mmap | 32.45 → 32.67 | 31.91 → 32.11 | 518.2 → 520.3 | 125 → 72* | 31,708 → 30,736 | 111.3 → 110.1 |
| Qwen3.6-35B-A3B, UD-Q6_K, 262,144 | dio; cache 18,000 MiB; all experts to RAM (was 8 layers’); older build to b12015; micro-batch 2048 to 4096; --no-reasoning-preserve added | 131.06 → 175.30 | 124.53 → 159.68 | 4,084.0 → 7,473.4 | 48 → 42* | 30,707 → 29,993 | 155.6 → 128.8 |
| Qwen3-30B-A3B Instruct 2507, Q8_0, 262,144 | dio; cache 11,500 MiB; all experts to RAM (was 48 layers’); older build to b12015; 8-bit conversation cache instead of 16-bit | 29.67 → 147.98 | 28.53 → 101.51 | 4,810.1 → 5,863.8 | 49 → 46* | 30,279 → 30,251 | 124.3 → 121.0 |
| Qwen3-30B-A3B Instruct 2507, Q8_0, 131,072 | dio; cache 13,500 MiB; all experts to RAM (was 25 layers’); older build to b12015; micro-batch 2048 to 4096 | 50.72 → 171.26 | 47.25 → 129.33 | 5,011.2 → 6,272.9 | 45 → 47* | 30,119 → 30,367 | 137.5 → 124.9 |
| Ornith-1.5-35B, Q6_K, 262,144 | dio; cache 18,000 MiB; all experts to RAM (was 6 layers’); older build to b12015; micro-batch 2048 to 4096 | 138.1 → 173.23 | 128.82 → 154.54 | 4,408.5 → 6,968.0 | 43 → 48* | 31,815 → 30,081 | 148.2 → 121.5 |
Measured 1 and 2 November 2026; single runs. The file name is the quantization (compression level). * Started through the model's start script, which runs checks first (costs). Micro-batch: prompt tokens processed at one time. Qwen3.5-397B-A17B and Qwen3.5-122B-A10B had a draft head (a small part that guesses tokens ahead) on both sides; MiMo-V2.6-Flash, a 14,000-token reasoning budget. Nemotron 3.5 Bolt was measured in its 262,144-token setup; its faster setup that sits wholly on the card was not tested.
Writing. On the eleven large cached models, short writing rose 1.44 times (Nemotron 3.5 Bolt) to 2.88 times (Ling-3.0-flash), and 1.42 to 2.76 times after the read. Not the cache alone: nine of the eleven also moved experts from card to RAM, and three (gpt-oss-120b, Ling-3.0-flash, Qwen3.5-397B-A17B) moved to release b12015. Smaller models:
| Smaller model, window | Writing, short, times before | Also changed |
|---|---|---|
| Ornith-1.5-35B, 262,144 | 1.25 | experts to RAM, build, micro-batch |
| Qwen3.6-35B-A3B, 262,144 | 1.34 | experts to RAM, build, micro-batch, one reasoning flag |
| Qwen3-30B-A3B, 131,072 | 3.38 | experts to RAM, build, micro-batch |
| Qwen3-30B-A3B, 262,144 | 4.99 | experts to RAM, build, 8-bit conversation cache (sizing) |
Reading gained from dio, not the cache:
on 8 of the 12 cached models also run with dio alone, the
cached setup read slower (Qwen3.8-Flash-Next: 1,373.9 t/s alone, 1,021.2
cached). The five
dio-only models wrote within 5 percent of before.
Why five models have no cache
- Qwen3.5-122B-A10B: 12,000 MiB (b12015, all experts in RAM) wrote prose faster (41.49 t/s against 32.45), code slower (40.54 against 42.79), read about the same (498.2 against 518.2) and needed a newer build. 17,000 MiB ran out of card memory.
- Qwen3-235B-A22B: 12,000 MiB with an 8-bit conversation cache ran out of card memory (31,801 MiB used before).
- Muse Spark Open: 7,000 MiB ran only at half the
window (65,536 tokens), on b12015 with every expert in RAM: 11.47 t/s
short, 8.43 after the read, against 6.37 and 6.29 for hand-started
dioat 131,072 (6.38 and 6.35 in the main table). It stayed at the full window, without a cache. - Inkling-Small: its separate build has no cache.
- Beam 1.0: no cached setup was run, and the records
do not say why. With
dioalone (start-script run) it left 5.1 GiB of RAM free at its lowest and used up to 31,273 MiB of the card; its hand-started run in the first table left 8.8.
Sizing the expert cache
Bigger was usually faster (hand-started, second answer, t/s, single runs; Qwen3.6-35B-A3B was flat):
| Model | Smaller cache | Larger cache |
|---|---|---|
| DeepSeek V4.1 Flash | 11,000 MiB: 44.95 | 13,000 MiB: 47.88 |
| Nemotron 3.5 Bolt | 12,000 MiB: 69.33 | 17,000 MiB: 78.84 |
| Qwen3-30B-A3B, 262,144, 8-bit conversation cache | 10,000 MiB: 130.8 | 13,000 MiB: 160.76 |
| Qwen3.6-35B-A3B, 262,144 | 18,000 MiB: 176.32 | 20,000 MiB: 175.51; 20,500 MiB: 176.24 |
The limit is card memory: eleven cache setups ran out (listed below). Qwen3-Coder-Next, gpt-oss-120b, GLM-5.3-Flash, DeepSeek V4.1 Flash and MiMo-V2.6-Flash: the start scripts use 1,000 MiB less than a size that ran in testing (that size used 31,174 to 31,735 MiB of the card).
Too small can be slower than none, depending on the build. DeepSeek V4 Flash, micro-batch 8192:
| Setup | Hit rate, small batches | Writing, short, t/s |
|---|---|---|
Installed build, dio alone | no cache | 13.31 |
| Installed build, 4,500 MiB cache | 33.26% (155,146 of 466,471) | 17.15 |
| Release b12015, 4,500 MiB cache | 1.51% (6,538 of 432,434) | 11.75 |
The server's own count, for batches of 8 tokens or
fewer; larger batches hit 0.11 and 1.65 percent. On b12015, 7,000 MiB
at micro-batch 4096 hit 46.07 percent and wrote 20.13 (no
dio-only run on b12015).
The cache competes with the conversation cache (what the model has already read, which grows with the window). Qwen3-30B-A3B at 262,144 with a 16-bit conversation cache and a 2,000 MiB expert cache wrote 23.68 t/s, slower than 29.67 before. With 8-bit, 10,000 to 13,000 MiB fitted: 130.8 to 160.76 t/s. Its start script uses 8-bit with 11,500 MiB.
Deeper in a conversation, the gain shrinks. Replies
after long reads on the three smaller models, started by hand with the
cached command (on Qwen3.6-35B-A3B it lacks
--no-reasoning-preserve, which the start script has; on
Ornith-1.5-35B the reverse):
| Model | Writing after 48K | after 97K | after ~226K to 228K | Read of that, t/s |
|---|---|---|---|---|
| Qwen3.6-35B-A3B, 262,144 | 135.8 → 179.3 | 124.5 → 160.2 | 101.6 → 124.3 | 2,838.3 → 4,473.1 |
| Qwen3-30B-A3B, 262,144 | 27.5 → 76.6 | 25.5 → 55.7 | 21.3 → 28.9 | 1,588.5 → 1,631.9 |
| Qwen3-30B-A3B, 131,072 | 44.9 → 113.5 | 39.8 → 85.1 | not run | not run |
| Ornith-1.5-35B, 262,144 | 143.6 → 168.4 | 130.2 → 150.0 | 104.2 → 125.9 | 2,930.6 → 4,091.1 |
Measured 2 November 2026. Three planted code words came back at every depth. Read sizes: 225,974 tokens on Qwen3-30B-A3B, 227,768 on the other two.
Qwen3-30B-A3B's gain falls from 2.8 times after 48,000 tokens to 1.36 times after about 226,000; how much of that is the expert cache and how much the 8-bit conversation cache was not separated.
What it costs, and what failed
Free RAM. Memory-mapped weights sit in the page cache, which counts as free; pinned weights count as used. Before, the 12 large memory-mapped models in the first table left 156 to 162 GiB free. After, the lowest free RAM was:
| Model | Pinned at start, GiB | Lowest free RAM after, GiB |
|---|---|---|
| Beam 1.0 | 153.9 | 5.1 |
| MiMo-V2.6-Flash | 151.1 | 9.1 |
| Muse Spark Open | 142.3 | 12.1 |
| DeepSeek V4 Flash 0731 | 139.3 | 18.7 |
| Qwen3.5-397B-A17B | 134.7 | 21.1 |
| GLM-5.3-Flash | 126.9 | 30.0 |
| DeepSeek V4.1 Flash | 125.4 | 36.5 |
| Inkling-Small | 107.5 | 51.8 |
| Qwen3-235B-A22B | 93.1 | 65.7 |
| Qwen3.8-Flash-Next | 73.8 | 84.1 |
| Ornith-1.5-122B | 68.1 | 87.9 |
| Ling-3.0-flash | 69.5 | 89.3 |
| gpt-oss-120b | 58.6 | 104.2 |
| Qwen3.5-122B-A10B | 49.5 | 110.1 |
| Qwen3-Coder-Next | 45.1 | 115.0 |
| Nemotron 3.5 Bolt | 41.5 | 115.3 |
| Qwen3-30B-A3B, 262,144 | 31.2 | 121.0 |
| Ornith-1.5-35B | 27.2 | 121.5 |
| Qwen3-30B-A3B, 131,072 | 30.2 | 124.9 |
| Qwen3.6-35B-A3B | 27.5 | 128.8 |
Pinned at start: shared, pinned memory when the server reported ready (RssShmem). Lowest free: lowest available RAM during the after setup's test and listed checks.
Card memory. Cached setups used 29,629 to 31,289 MiB of a 32 GB card in the runs sampled; most before commands already used 25,900 to 31,800 MiB. Use rose on nine of the 15 and fell on six; most on Ling-3.0-flash (9,764 to 29,629 MiB).
Restarts. Ornith-1.5-35B's mapped command restarted
in 4 seconds twice, the file still in the page cache; eight hand starts
of its cached variants took 20 or 21 seconds each, because dio
reads the file again each time. GLM-5.3-Flash with
dio took 84 to 103 seconds every time; no warm mapped
restart of a large model was measured.
The start scripts' checks added 20 to 28 seconds against similar hand starts, which is why Qwen3-Coder-Next, Qwen3-30B-A3B at 131,072 and Ornith-1.5-35B load slower after than before:
| Model | By hand, s | Through the start script, s |
|---|---|---|
| Nemotron 3.5 Bolt | 33 | 53 |
| GLM-5.3-Flash | 87 | 110 |
| Ornith-1.5-122B | 47 | 70 |
| Ornith-1.5-35B | 20 | 48 |
Same build and cache size in each pair; the first
three hand starts had verbose logging on, the Ornith-1.5-35B one had
--no-reasoning-preserve added.
One stalled start. Beam 1.0 with dio
wrote its first 420 tokens in 53.8 to 61.9 seconds (7.62 to 8.38 t/s) in
three starts. Once, through its start script, they took 122.5 seconds
(3.62 t/s), and the rest of that test ran at normal speed. The logs do
not show why.
Setups that did not run (13):
- Out of card memory at load (10 cache setups): Qwen3-Coder-Next at 21,000 MiB, Qwen3.5-122B-A10B at 17,000 MiB and Qwen3.5-397B-A17B at 12,000 MiB (each on two builds, one the pull request 31286 build); GLM-5.3-Flash at 14,000 MiB (pull request build); Qwen3-235B-A22B at 12,000 MiB; DeepSeek V4 Flash at 11,000 MiB with a 131,072 window; Ornith-1.5-35B at 18,000 MiB plus its draft head.
- Out of card memory at warm-up (1): Qwen3.8-Flash-Next with 17,000 MiB.
- A before command (1): gpt-oss-120b with 23 layers' experts in RAM (a request for 1,315.93 MiB was refused); 24 layers loaded, and that is the before row.
- Crashed at start (1): MiMo-V2.6-Flash on the pull request 31286 build with 14,000 MiB, right after it set up the cache.
A development build with pull request 31286 did not pay here
A development build with pull request 31286 (a proposed code change)
added --moe-cache-cpu-share auto (this flag is not in release
b12015), which lets the CPU compute some cache misses instead of uploading
them.
| Model, cache | Release or installed build | Pull request build, with CPU sharing |
|---|---|---|
| GLM-5.3-Flash, 11,000 MiB | 19.97 (b12015) | 19.65 |
| DeepSeek V4.1 Flash, 11,000 MiB | 44.95 (b12015) | 37.98 |
| gpt-oss-120b, 20,000 MiB | 81.11 (b12015) | 78.53 |
| Ling-3.0-flash, 20,000 MiB | 110.74 (b12015) | 110.89 |
| Qwen3.8-Flash-Next, 15,000 MiB | 61.5 (installed build) | 62.82 |
| Ornith-1.5-122B, 18,000 MiB | 43.09 (installed build), 46.01 (b12015) | 53.23 |
| DeepSeek V4 Flash, 4,500 MiB | 17.15 (installed build), 11.75 (b12015) | 19.65 |
| MiMo-V2.6-Flash, 14,000 MiB | not run at this size | crashed at start |
Measured 1 November 2026, hand-started, second prose answer, t/s. Amber: the clear loss and the crash.
On short answers: clearly faster on two (Ornith-1.5-122B, and DeepSeek V4 Flash with a small cache), clearly slower on one, within 3.2 percent on four, crashed on one. On code and the reply after the read it was slower than b12015 on GLM-5.3-Flash, DeepSeek V4.1 Flash, gpt-oss-120b and Ling-3.0-flash (Ling after the read: 91.05 t/s against 103.17) and about the same on Ornith-1.5-122B (code 38.52 against 39.00, after the read 42.83 against 42.62). No model here kept it.
Does the output change?
dio alone gave the same output, token for token, on all
six models compared. Of 15 cached setups, 2 matched at every position
(their probabilities still moved slightly) and 13 differed. Test: four
fixed prompts, 48 greedy tokens each (the model always takes its most
likely token, so any difference shows), against the before command.
| Model and change | Greedy tokens the same | Probability change, average / largest |
|---|---|---|
| Beam 1.0, dio | 192 of 192 | 0.0000 / 0.000 |
| Muse Spark Open, dio | 192 of 192 | 0.0000 / 0.000 |
| Ornith-1.5-122B, dio | 145 of 145 | 0.0000 / 0.000 |
| Inkling-Small, dio | 192 of 192 | 0.0000 / 0.000 |
| Qwen3-235B-A22B, dio | 192 of 192 | 0.0000 / 0.000 |
| Qwen3.5-122B-A10B, dio | 156 of 156 | 0.0000 / 0.000 |
| Nemotron 3.5 Bolt, cached | 150 of 150 | 0.0014 / 0.030 |
| Qwen3.5-397B-A17B, cached, b12015 | 145 of 145 | 0.0042 / 0.037 |
| Qwen3.8-Flash-Next, cached | 143 of 145 | 0.0039 / 0.087 |
| Qwen3-30B-A3B 131,072, cached, b12015 | 188 of 192 | 0.0032 / 0.062 |
| Ling-3.0-flash, cached, b12015 | 170 of 192 | 0.0028 / 0.106 |
| gpt-oss-120b, cached, b12015 | 168 of 192 | 0.0033 / 0.116 |
| Qwen3-30B-A3B 262,144, cached, 8-bit conversation cache, b12015 | 138 of 192 | 0.0030 / 0.117 |
| DeepSeek V4 Flash, cached | 135 of 192 | 0.0035 / 0.117 |
| Ornith-1.5-35B, cached, b12015 | 135 of 192 | 0.0043 / 0.068 |
| MiMo-V2.6-Flash, cached | 113 of 192 | 0.0041 / 0.100 |
| Qwen3.6-35B-A3B, cached, b12015 | 93 of 151 | 0.0023 / 0.048 |
| DeepSeek V4.1 Flash, cached | 89 of 192 | 0.0067 / 0.134 |
| GLM-5.3-Flash, cached | 87 of 192 | 0.0055 / 0.076 |
| Qwen3-Coder-Next, cached | 71 of 187 | 0.0042 / 0.120 |
| Ornith-1.5-122B, cached | 28 of 145 | 0.0093 / 0.183 |
“Greedy tokens the same” counts positions where both runs chose the same token, up to the end of the shorter answer, including positions after the two texts first differ. Under 192 means some answers stopped early. Probability change (0 to 1) covers the top five candidates while the texts still agree. Ornith-1.5-122B, Qwen3.5-397B-A17B and Qwen3.5-122B-A10B had a presence penalty of 1.5 (discourages repeated words) on both sides.
Possible causes, not separated: card and CPU round numbers
differently, so near ties can flip; 13 of the 15 cached rows also moved
experts; b12015 rows changed build. Noise: Ornith-1.5-35B's before
command twice gave 192 of 192, Muse Spark Open's only 72 of 192, because
--fit on can place the model differently each start.
Right or wrong
Qwen3-30B-A3B, to check the 8-bit conversation cache: 24 tries of a water-jug puzzle and eight short questions five times each, asked near the start and after about 97,000 tokens, 128 per setup, judged by a program.
| Setup | Right, of 128 | Answers the program could not read |
|---|---|---|
| Before, 262,144, 16-bit conversation cache | 106 | 0 |
| Cached, 262,144, 8-bit conversation cache | 107 | 0 |
| Cached, 131,072, 16-bit conversation cache | 105 | 1 |
Most misses were shared: one short question failed all five times at both depths in all three setups. The jug puzzle missed 2, 1 and 3 of 24 after 97,000 tokens. The cached setups also changed build and placement. One model, a small set.
Ornith-1.5-35B, reasoning off: 74 of 128 right before, 77 with the cache (hand-started), but 17 and 20 answers the program could not read, too many to tell them apart.
Other checks on the after setups
- Code words in long reads: 3 of 3 came back on the 14 large models tested on 1 November, at about 2,000 and 48,000 tokens and at 97,000 or 200,000, and on all 16 large after setups at 48,000. (GLM-5.3-Flash, DeepSeek V4.1 Flash and MiMo-V2.6-Flash ran the long test with a cache 1,000 MiB larger than their final one.)
- Questions and tools: on the 14 long-read runs, 5 of 5 tool round trips (the model calls a tool and uses the result) on all, 5 of 5 short questions on all but Inkling-Small (4 of 5; its answer “does not contain” was right, but the automatic check did not accept it).
- Prompts at the batch edges: 24 prompts, 19 sized just under, at and over the batch boundaries and 5 of random size; all 24 got a reply with no server error on all 15 cached setups. This shows the server answers, not what it answers.
- A known crash prompt: the one that once crashed Ling-3.0-flash (batch-size study), rebuilt, plus 40 like it: the planted code word came back, and 40 of 40 got a reply. The rebuilt prompt counted 2,999 tokens on the hand-started run and 3,007 through the start script.
- Cut-off replies: in a tool turn and a four-turn conversation, Ling-3.0-flash and MiMo-V2.6-Flash hit their token cap while reasoning on the first turn, Ornith-1.5-122B and Qwen3.6-35B-A3B on the second (in the main table's runs; Ling-3.0-flash's hand-started run cut off on both).
Limits
- One machine. How fast experts cross from RAM to the card (the PCIe connection) decides much of the cache's value and was not measured. Another connection, less RAM or another card will move every number.
- These files. One quantization per model, at the windows shown. Another file changes expert size and what fits.
- Single runs, one request at a time. One start can differ from the next (Beam 1.0's stall). Nothing here measures two users or batched requests.
- Mixed changes. Thirteen cached rows also moved experts into RAM, seven rows (six models) changed build, four the micro-batch and one the conversation cache.
- A quiet desktop, narrow quality checks. No other large program ran in RAM or on the card; on setups that left 5.1 to 21.1 GiB free, what happens when one does was not tested. No broad or human-judged quality comparison was run.
How this was measured
- Machine: the desktop on Two boxes: RTX 5090 (32 GB), 188 GiB RAM, Intel Core Ultra 9 285K; 8 threads on cores 0 to 7; one request, one model at a time.
- Dates: 1 November 2026 afternoon into early 2 November (16 models); 2 November morning (Qwen3.6-35B-A3B, Qwen3-30B-A3B) and afternoon (Ornith-1.5-35B).
- Before: each model's usual command on 1 November, started by hand from a cold page cache. After: through a test copy of its start script.
- Speed test: two prose answers to a 22 to 162 token prompt, capped at 420 tokens; a code rewrite of a 9,000-character Python file, capped at 700; a read of about 20,000 tokens of llama.cpp source; a next turn capped at 300. Temperature 0.15 (0.2 for the read), seed 42; server timings, counting reasoning tokens.
- Card and RAM:
nvidia-smiand Linux MemAvailable, every 2 seconds, over the after test and its checks. Two repeat starts of Beam 1.0 peaked at 31,402 and 31,409 MiB. - Builds: release b12015 and installed builds that
had the cache (commits 23b0202, 10b8b75, 184f653). Flags read in
tools/server/README.mdof b12015 and 23b0202. The pull request 31286 build reports build 12057; the cache's documentation is itsdocs/moe-cache.md. - Figures: ratios and percentages come from two measured figures; the data package says which two.
Data and sources
Where the page and a file disagree, the file is right; write to us and we will correct the page.
- data/README.md: every folder, where files disagree, every redaction.
- data/NUMBERS.md: every figure on this page, with its file and field.
data/runs/: result files, command lines and server logs.data/tools/: the probes, andpage_table.py, which prints every table figure from the package.