Measured study · one RTX 5090 desktop, one setup also on a laptop

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.

In short
  • 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

Download this study's data (zip, 0.2 MB)

01

What to do

  1. 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.
  2. Time a fresh prompt at the depth you need, with the same model file, placement and cache settings.
  3. 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 2048 than at the default 2048 / 512; check that a larger setting still loads.
  4. 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).
02

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.

03

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.

15 September 2026: default batch, one request at a time
Model / quantizationServed windowTokens readRead sRead tokens/sPeak card MiBAnswer tokensShort answer tokens/sCodes
Gemma-4-26B-A4B
UD-Q4_K_XL
262,144230,85560.83,799.6923,51333121.363/3
GLM-4.7-Flash
UD-Q4_K_XL
202,752189,931231.7819.7028,7652970.483/3
Qwen3.5-122B-A10B
UD-Q4_K_S
262,144230,803531.8433.9930,7943237.103/3
Mistral Small 4
UD-Q4_K_M
262,144231,065705.0327.7530,3563223.763/3
Ling-3.0-flash
Q4_K_M
262,144230,7591,118.8206.258,4733226.113/3
Qwen3.5-397B-A17B
UD-IQ3_XXS
262,144230,8031,186.6194.5131,0683217.003/3
Qwen3.8-Flash-Next
UD-Q3_K_XL
262,144230,8031,392.9165.7015,6263213.583/3
Inkling-Small
UD-Q3_K_XL
262,144230,8272,005.9115.0715,814278.783/3
DeepSeek V4 Flash, desktop
UD-Q8_K_XL
262,144150,4752,062.272.9718,306259.143/3
DeepSeek V4 Flash, desktop + laptop
UD-IQ3_XXS
262,144230,8356,580.735.0825,824256.493/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.

04

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).

Measured later runs. Time is prompt processing and card memory is at load unless labelled otherwise.
RunBatch / micro-batchTokens readRecorded timeRead tokens/sCard MiB
DeepSeek V4 Flash
UD-Q8_K_XL, desktop
September 20 (date the results were collected)
8192 / 8192150,324313,172.17 ms480.0026,023
Laguna S 2.1
September 21 (date the results were collected)
not recorded / 4096200,098233.9 s
request wall time
866.1 prefill, not wall ÷ tokens27,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 / 2048229,981429.6 s535.426,795
Qwen3.8-Flash-Next
same file, placement, cache and day
2048 / 512 (llama.cpp’s default)229,9811,119.3 s205.521,333
Ornith-1.5-35B
Q6_K
September 26
6 expert layers in RAM, default 16-bit cache, no draft head
2048 / 2048229,09071.7 s3,193.331,270
Ornith-1.5-35B
same file, placement, cache and day
2048 / 512 (llama.cpp’s default)229,090151.8 s1,508.730,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,090510.6 s448.730,898
Qwen3.5-122B-A10B
same file, placement, cache and day
2048 / 1024229,090310.0 s738.931,633
MiniMax M2.7
UD-IQ4_XS
September 26, at 196,608
every expert layer in RAM, 8-bit cache
4096 / 1024189,4911,215.4 s155.931,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 / 2048230,0391,085.7 s211.931,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,992336.4 s142.628,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_0 cache), 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.
05

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_0 cache, 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.

06

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.
07

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.
08

How this was measured

DatesMain runs 15 September 2026; later runs 20 and 21 September (dates the results were collected) and 26.
HardwareNVIDIA 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.
Recorded placement and llama.cpp commit, September 15
ConfigurationPlacement and key settingsCommit
Gemma-4-26B-A4BAll model layers on cardd3146f2b5
GLM-4.7-FlashAll model layers on cardd3146f2b5
Qwen3.5-122B-A10B38 expert layers in RAM; MTP on; no mmapc8e03ce
Mistral Small 426 expert layers in RAM; no mmap5f55650
Ling-3.0-flashAll experts in RAM; fit off; no draft requestedd3146f2b5
Qwen3.5-397B-A17B57 expert layers in RAM; MTP on; no mmapc8e03ce
Qwen3.8-Flash-Next99 expert layers requested on CPU; fit offd3146f2b5
Inkling-Small42 expert layers in RAM; f16 key and value cache946fc11d1
DeepSeek V4 Flash, desktopAll experts in RAM; no repack5f55650
DeepSeek V4 Flash, desktop + laptopRPC split 18,25; expert tensors of layers 8 to 17 in desktop RAM; no repackd3146f2b5

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.

09

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.

10

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.