256K context on a 32 GB graphics card: the cost of reading
On one RTX 5090 desktop (one setup also used a laptop), ten model setups each read one long prompt of 150,475 to 231,065 tokens and found all three hidden test codes. At default batch settings, reading the prompt took from 60.8 seconds to 109.7 minutes, depending on the model and where its weights sat.
- Time a fresh prompt at the length you actually need. A successful load and a quick short prompt leave most of the cost untested. What to do
- Record your batch settings and test them. On one model (Qwen3.8-Flash-Next), reading the prompt in bigger chunks cut a 229,981-token read from 1,119.3 to 429.6 seconds, but bigger settings failed to load on some models. Later runs
- Check memory again after raising the batch size or turning on the model’s built-in guessing part (the draft head). One launch failed at a larger batch size and loaded at smaller ones; one failed while creating its draft head. Where memory ran out
What to do
- Check the served window after loading (these runs read it from
/props). It is the space the server makes for a request and its answer, not a reading time. Here 256K means 262,144 tokens. - Time a fresh prompt at the depth you need, with the same model file, placement and cache settings.
- Record your batch settings and test them:
-b, and the micro-batch-ub, how much of the prompt is read in one chunk. Qwen3.8-Flash-Next read faster at-b 4096 -ub 2048than at the default 2048 / 512; check that a larger setting still loads. - Check memory again after changing the micro-batch or turning on a draft head (MTP: the model’s built-in part that guesses a few tokens ahead).
What was tested
Each setup read a made-up ledger with three fixed hidden codes near 5, 50 and 95 percent of its entries (approximate depths, not exact token positions), then was asked to quote the codes in order. All ten answers contained the exact strings in the requested order.
Most setups kept the expert weights (in these mixture-of-experts models, parts that run only for some tokens) in system RAM. The prompts did not fill the whole window; the desktop DeepSeek Q8 prompt was the shortest of the ten. GLM-4.7-Flash was served at 202,752, the window requested and, per its launch notes, its ceiling; the package has no failed attempt above it.
What we found: the September 15 reads
“Read s” excludes loading and the answer. Answers were the codes only, 25 to 33 tokens, so the last speed column is not a prose writing speed.
| Model / quantization | Served window | Tokens read | Read s | Read tokens/s | Peak card MiB | Answer tokens | Short answer tokens/s | Codes |
|---|---|---|---|---|---|---|---|---|
Gemma-4-26B-A4BUD-Q4_K_XL | 262,144 | 230,855 | 60.8 | 3,799.69 | 23,513 | 33 | 121.36 | 3/3 |
GLM-4.7-FlashUD-Q4_K_XL | 202,752 | 189,931 | 231.7 | 819.70 | 28,765 | 29 | 70.48 | 3/3 |
Qwen3.5-122B-A10BUD-Q4_K_S | 262,144 | 230,803 | 531.8 | 433.99 | 30,794 | 32 | 37.10 | 3/3 |
Mistral Small 4UD-Q4_K_M | 262,144 | 231,065 | 705.0 | 327.75 | 30,356 | 32 | 23.76 | 3/3 |
Ling-3.0-flashQ4_K_M | 262,144 | 230,759 | 1,118.8 | 206.25 | 8,473 | 32 | 26.11 | 3/3 |
Qwen3.5-397B-A17BUD-IQ3_XXS | 262,144 | 230,803 | 1,186.6 | 194.51 | 31,068 | 32 | 17.00 | 3/3 |
Qwen3.8-Flash-NextUD-Q3_K_XL | 262,144 | 230,803 | 1,392.9 | 165.70 | 15,626 | 32 | 13.58 | 3/3 |
Inkling-SmallUD-Q3_K_XL | 262,144 | 230,827 | 2,005.9 | 115.07 | 15,814 | 27 | 8.78 | 3/3 |
DeepSeek V4 Flash, desktopUD-Q8_K_XL | 262,144 | 150,475 | 2,062.2 | 72.97 | 18,306 | 25 | 9.14 | 3/3 |
DeepSeek V4 Flash, desktop + laptopUD-IQ3_XXS | 262,144 | 230,835 | 6,580.7 | 35.08 | 25,824 | 25 | 6.49 | 3/3 |
Quantization is the compressed version of the model file. Peak card use is the largest nvidia-smi reading, sampled every 5 seconds, including other card use; it is not the increase caused by context. The split row reports the desktop card, not the laptop’s unified memory.
The two-machine DeepSeek read (109.7 minutes) used a different quantization and read more tokens than desktop DeepSeek Q8, so those two rows do not isolate the cost of splitting a model.
Later runs: bigger batches cut the wait
Separate measurements with batch sizes set by hand, at a 262,144 window except MiniMax M2.7 (196,608, the length its model file declares).
| Run | Batch / micro-batch | Tokens read | Recorded time | Read tokens/s | Card MiB |
|---|---|---|---|---|---|
| DeepSeek V4 Flash UD-Q8_K_XL, desktop September 20 (date the results were collected) | 8192 / 8192 | 150,324 | 313,172.17 ms | 480.00 | 26,023 |
| Laguna S 2.1 September 21 (date the results were collected) | not recorded / 4096 | 200,098 | 233.9 s request wall time | 866.1 prefill, not wall ÷ tokens | 27,995 peak over that run of reads |
| Qwen3.8-Flash-Next UD-Q3_K_XL September 26 40 expert layers on CPU, 8-bit cache | 4096 / 2048 | 229,981 | 429.6 s | 535.4 | 26,795 |
| Qwen3.8-Flash-Next same file, placement, cache and day | 2048 / 512 (llama.cpp’s default) | 229,981 | 1,119.3 s | 205.5 | 21,333 |
| Ornith-1.5-35B Q6_K September 26 6 expert layers in RAM, default 16-bit cache, no draft head | 2048 / 2048 | 229,090 | 71.7 s | 3,193.3 | 31,270 |
| Ornith-1.5-35B same file, placement, cache and day | 2048 / 512 (llama.cpp’s default) | 229,090 | 151.8 s | 1,508.7 | 30,250 |
| Qwen3.5-122B-A10B UD-Q4_K_S September 26 38 expert layers in RAM, default 16-bit cache, MTP on, no mmap: the September 15 launch | 2048 / 512 (llama.cpp’s default) | 229,090 | 510.6 s | 448.7 | 30,898 |
| Qwen3.5-122B-A10B same file, placement, cache and day | 2048 / 1024 | 229,090 | 310.0 s | 738.9 | 31,633 |
| MiniMax M2.7 UD-IQ4_XS September 26, at 196,608 every expert layer in RAM, 8-bit cache | 4096 / 1024 | 189,491 | 1,215.4 s | 155.9 | 31,709 |
| GLM-5.3-Flash UD-Q3_K_XL September 26 first 42 layers’ experts in RAM, default 16-bit cache, reasoning effort none | 4096 / 2048 | 230,039 | 1,085.7 s | 211.9 | 31,305 |
| GLM-5.3-Flash same file, placement, cache and day; read to 47,992 tokens only | 4096 / 1024 (now its script’s setting at this window) | 47,992 | 336.4 s | 142.6 | 28,834 |
- Qwen3.8-Flash-Next, one measured comparison. The two rows ran back to back with the same file, window, placement and prompt; both returned 3 of 3 codes. The placement is not the 15 September one (40 expert layers on CPU instead of 99, an 8-bit
q8_0cache), so 205.5 does not re-measure the 165.70 row. Both reads began with about 60 GB of the 90 GB file in system memory. The one start recorded with none of it there read its first 3,035 tokens at 87.7 tokens a second as the file loaded (43.5 to 57.7 GB), then 3,019 at 517.6; that is this start, not a rule. - Qwen3.5-122B-A10B. The 2048 / 512 row repeats its September 15 launch (same file, same build, 38 expert layers in RAM, no mmap, same draft-head settings; no batch set, which at this build means 2048 / 512) with a different test script and document: 510.6 seconds, against 531.8 then. At 2048 / 1024 the card peaked at 31,785 MiB over that run of reads, 822 MiB below its 32,607 MiB total as reported that day (from the Qwen3.8-27B at 256K package); its start script keeps 512 here.
- Ornith-1.5-35B ran without the draft head, with a file of the same name as the failed launch. 2048 / 512 was its script’s setting at the time; 2048 / 2048 was passed in for the other row and is what the script now sets. All four Ornith and Qwen3.5-122B long reads, thinking off, returned all three codes.
- MiniMax M2.7 ran in the one shape recorded loading at this window (2048 and 4096 failed to load, per the batch-size study), thinking on, and returned all three codes; the card peaked at 31,907 MiB. Earlier reads on the same server: 20,039 tokens at 167.9 and 47,933 tokens at 181.2 tokens a second.
- GLM-5.3-Flash (its file declares 1,048,576 tokens) kept the expert weights of its first 42 layers in RAM (
--n-cpu-moe 42); at reasoning effort none, each reply still carried a few hundred characters of reasoning. Micro-batch 4096 did not load. At 2048 it read 20,065 tokens at 206.0, 47,992 at 250.3 and 100,003 at 243.1 tokens a second, then the long ledger, returning all three codes; the card peaked at 31,951 MiB, 656 MiB below the total. At 1024, now its script’s setting here, the card peaked at 29,261 MiB over reads of 20,065 tokens at 135.1 and 47,992 at 142.6; nothing longer was read at 1024. At a 131,072 window, 4096 read 47,992 tokens at 404.9 tokens a second. - Laguna S 2.1 used one planted string and a different test program; its record reports the string found, but not the quantization, build, full placement or sampling settings, so it is not a reproducible profile or a before-and-after gain.
- DeepSeek V4 Flash: see Updates.
Where memory ran out
Each of these failed on a refused memory allocation.
- Ornith-1.5-35B Q6_K, draft head on, 6 expert layers in RAM: reached draft-context creation at 262,144 and failed on 512.00 MiB. Without the draft head, a same-named file later read this window (Updates).
- Ornith-1.5-397B IQ3_XXS-UD, draft head on, 57 expert layers in RAM: failed on a 1,862.00 MiB compute buffer (working memory on the card). The log does not show the draft context caused it; neither Ornith log proves a run without the draft head at that window.
- MiniMax M3, sparse-attention test,
Q2_K_L, 262,144,q8_0cache, experts on CPU: at micro-batches 2048, 1024 and 512, refused CUDA buffers of 20,572,169,216, 10,286,650,368 and 5,143,890,944 bytes, all before a retrieval result. Other configurations were not ruled out. - GLM-5.3-Flash UD-Q3_K_XL, September 26, 262,144,
-b 4096 -ub 4096: a refused 13,281.37 MiB compute buffer, before a retrieval result. The same launch loaded at 2048 and 1024.
A draft head does not always have to go: both Qwen3.5 setups in the main table used theirs at 262,144, per their logs and draft counters. The GLM-4.7 Full configuration note records that at a 131,072 window its MTP setup fitted with all 93 expert layers in CPU RAM and failed with 92; it is a setup note, not a 256K result.
Limits
- Retrieval, not reasoning. Three planted strings, one run per setup: not reasoning across 230K tokens, contradictory evidence, or arbitrary documents.
- No reliability estimate. No repeated deep trials, and the same three codes in every main-table ledger.
- Short answers. Their speeds do not predict long writing at that depth.
- Card memory only. Most setups also used system RAM; total RAM use and the smallest card that could serve them were not measured.
- Different builds and placements. This compares deployments, not model designs.
Corrections and updates
- September 2026. On September 20 (date the results were collected), the same DeepSeek Q8 file read a similarly sized prompt in 313.2 seconds with
-b 8192 -ub 8192, against 2,062.2 seconds at the September 15 default: 5.2 versus 34.4 minutes. The later build is not identified in its saved 256K records, so this is a dated before-and-after comparison, not a one-variable experiment. The later record shows the same Q8 file, one slot, the 262,144 window, all experts in RAM and a completed answer; the prompt length differs (150,324 against 150,475 tokens), it lacks a full launch command, and builds, launch settings and background load are not established as identical. It keeps no three-code answer, so no 3/3 result is claimed for it. - September 26. Without the MTP draft head, an Ornith-1.5-35B Q6_K file of the same name (same build, 6 expert layers in RAM, default cache) read the 262,144 window: 229,090 tokens in 151.8 seconds at 2048 / 512 and 71.7 seconds at 2048 / 2048, all three codes both times. Those runs also wrote the batch out, used a 7,200-second timeout and no CORS (browser access) flag; the failed launch set no batch, a 3,600-second timeout and a localhost CORS flag, and logged 1,113 MiB on the card before launch, which the later results do not record. The directories differ and neither log records a hash or file size. This shows that filename serving the window without the draft head, not the failed copy with it; the failure stands as the record of the launch that requested the head.
How this was measured
| Dates | Main runs 15 September 2026; later runs 20 and 21 September (dates the results were collected) and 26. |
|---|---|
| Hardware | NVIDIA RTX 5090 (32 GB), 188 GiB desktop RAM; the split also used an ASUS ROG Flow Z13 with 128 GB unified memory (descriptions, not measured capacity). |
| Runs | --parallel 1 --threads 24 --threads-batch 24, flash attention, temperature: 0, no streaming, thinking switched off where the launcher allowed it (Inkling: reasoning effort none). “Default batch” means no batch flags were set; the saved logs do not print the effective values. Two short prose requests, then the one deep request reported. Load times are upper bounds: large downloads competed for the disk. |
| Configuration | Placement and key settings | Commit |
|---|---|---|
| Gemma-4-26B-A4B | All model layers on card | d3146f2b5 |
| GLM-4.7-Flash | All model layers on card | d3146f2b5 |
| Qwen3.5-122B-A10B | 38 expert layers in RAM; MTP on; no mmap | c8e03ce |
| Mistral Small 4 | 26 expert layers in RAM; no mmap | 5f55650 |
| Ling-3.0-flash | All experts in RAM; fit off; no draft requested | d3146f2b5 |
| Qwen3.5-397B-A17B | 57 expert layers in RAM; MTP on; no mmap | c8e03ce |
| Qwen3.8-Flash-Next | 99 expert layers requested on CPU; fit off | d3146f2b5 |
| Inkling-Small | 42 expert layers in RAM; f16 key and value cache | 946fc11d1 |
| DeepSeek V4 Flash, desktop | All experts in RAM; no repack | 5f55650 |
| DeepSeek V4 Flash, desktop + laptop | RPC split 18,25; expert tensors of layers 8 to 17 in desktop RAM; no repack | d3146f2b5 |
mmap is memory-mapping the file, fit is the runtime’s automatic placement, repack is a weight rewrite, RPC is the link to the second machine, MTP is the model’s built-in draft head. The two Qwen3.5 models drafted with draft-mtp, maximum draft length 6 and 0.75 minimum draft probability; other main-table launches set no draft option.
The configuration record lists the exact model filenames and complete redacted commands; the build table maps each response to its build.
Data and sources
The data package holds the recorded results, logs, scripts and failures; the number map traces every figure. In the TSV, decode_tps is the best of two earlier short-prompt prose replies; the at-depth rates are deep_decode_tps. Some deep responses show small prefix reuse: prompt_n is the processed-token count, and cache_n remains in the files. If a number here disagrees with a file in the package, the file is right.
Related pages
Batch-size study · Slower by default · Qwen3.5 field card · Method
Independent measurements. Not affiliated with, endorsed by, or connected to NVIDIA, ASUS, DeepSeek, MiniMax, ggml-org, or the makers of Gemma, GLM, Qwen, Mistral, Ling, Inkling, Ornith or Laguna.