Model field card · one RTX 5090 desktop

Qwen3.8-27B at 256K context on one RTX 5090: Q4 with MTP wrote faster than Q5 without it, Q5 stayed closer to the reference

At a 262,144-token window on one RTX 5090, Q4_K_XL with MTP on wrote structured replies (thinking off) at 144.7 tokens a second about 20K tokens deep, against 60.7 for the larger Q5_K_XL with MTP off, which matched an 8-bit reference slightly more often on one text, in single runs.

In short
  • For speed, run Q4_K_XL with MTP on. MTP (multi-token prediction) is built into these files: it guesses tokens (word pieces) for the model to check. Settings
  • For the closest match to the 8-bit reference, run Q5_K_XL with MTP off. With MTP on, its MTP part would not start beside the 8-bit cache at this window, in both attempts. Q5_K_S with MTP sits in between, with only 664 MiB spare.
  • Or give Q5_K_XL a separate small draft model, at a slightly smaller window (229,376 tokens). Since October, in one reasoning test (thinking on) it wrote 186.61 tokens a second, against 60.39 without. Results

Download this study's data (zip, 91 KB)

01

What to do

Closest to the reference: Q5_K_XL with MTP off. Measured command; q8_0 is an 8-bit cache, the memory holding text read so far. Set your own local address:

llama-server --model Qwen3.8-27B-UD-Q5_K_XL.gguf \
  --jinja --ctx-size 262144 --parallel 1 \
  --batch-size 2048 --ubatch-size 512 \
  --cache-type-k q8_0 --cache-type-v q8_0 \
  --n-gpu-layers 999 --threads 24 --threads-batch 24 \
  --flash-attn on --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0

For speed: Q4_K_XL with MTP on. Change the model filename and add these flags. They also serve Q5_K_S: closer to the reference than Q4_K_XL, and the same revision as the reference.

--spec-type draft-mtp --spec-draft-n-max 6 --spec-draft-p-min 0.75 \
--cache-type-k-draft q8_0 --cache-type-v-draft q8_0

If 128K (131,072 tokens) is enough: Q5_K_XL with MTP on, the faster baseline. Use both blocks above minus every cache-type flag, and set --ctx-size 131072.

Since 19 October: Q5_K_XL with a separate draft model, DFlash 2 for Qwen3.8-27B (a Q4_K_M file of 1.1 GB) plus n-gram drafting (guessing from text already seen), on the main llama.cpp version with -ub 256, an 8-bit cache, built-in MTP off and a 229,376-token window.

Keep the confidence gate (--spec-draft-p-min) explicit (why). -ub is the micro-batch, prompt tokens read at a time (more).

02

What we found

Writing speed

Each test read a generated ledger (a made-up list of entries), then wrote a prose letter (414 to 504 tokens) or a structured reply, a JSON list shaped like tool output (907 to 1,192 tokens; no tool ran). Rates leave out the read.

Measured: prose letters, tokens a second
File / setting~20K~48K~100K~230K
Q5_K_XL, 256K, MTP off60.755.249.134.9
Q4_K_XL, 256K, MTP on75.264.854.938.4
Q5_K_S, 256K, MTP on71.564.552.239.9
Q5_K_XL, 128K, MTP on*72.070.560.8Not run
Measured: structured replies, tokens a second
File / setting~20K~48K~100K~230K
Q5_K_XL, 256K, MTP off60.754.948.934.8
Q4_K_XL, 256K, MTP on144.7129.9114.787.0
Q5_K_S, 256K, MTP on137.4126.0110.282.8
Q5_K_XL, 128K, MTP on*141.5136.9127.0Not run
Measured: prompt reading from scratch, tokens a second
File / setting~20K~48K~100K~230K
Q5_K_XL, 256K, MTP off3,1182,7181,9581,181
Q4_K_XL, 256K, MTP on3,0882,7221,9371,132
Q5_K_S, 256K, MTP on3,0012,6671,9051,124
Q5_K_XL, 128K, MTP on*2,8962,6081,973Not run

Depths are approximate. *Default cache: the recorded command set no cache type; its launch comment calls it f16.

How closely each file matches the reference

Perplexity (how well a file predicts a fixed text), over 24 chunks of 4,096 tokens of public llama.cpp documentation, was too close to tell apart at the reported uncertainty.

Measured perplexity; reported ± terms retained
FilePerplexity
Q5_K_XL2.7203 ± 0.02379
Q5_K_S2.7186 ± 0.02375
Q4_K_XL2.7206 ± 0.02379

A second test compared next-token predictions with unsloth's 8-bit Q8_0 file on 12 chunks of the same text. KL divergence measures how far the whole spread of predictions moves from the reference; lower is closer.

Measured against Q8_0 on one public text
FileSame top tokenMean KL divergence
Q5_K_XL97.830 ± 0.093%0.004369 ± 0.000153
Q5_K_S97.675 ± 0.096%0.005406 ± 0.000201
Q4_K_XL97.240 ± 0.105%0.007839 ± 0.000345

Q4 picks the same most likely next token as the reference about 97 times in 100 on this text; Q5_K_XL is closer to 98. This is not a share of correct answers, and it does not measure MTP's effect on answers.

Memory use

Measured peak total card use; spare memory is arithmetic
File / settingPeak MiBSpare MiB
Q5_K_XL, 256K, MTP off30,2542,353
Q4_K_XL, 256K, MTP on30,7221,885
Q5_K_S, 256K, MTP on31,943664
Q5_K_XL, 128K, MTP on*30,4582,149
Q5_K_XL, 229,376, DFlash 2 draft plus n-gram, thinking on30,6471,960
Q5_K_XL, 262,144, DFlash 2 draft plus n-gram, thinking off31,992615

Peak is the largest total-card reading during each run, including desktop use. Spare = 32,607 minus peak; not a guaranteed loading margin. *Default cache (f16 per the launch comment). The 262,144 draft-model row is from letters with thinking off; the 189.26 reasoning rate below is a separate run with thinking on.

The long read and the crash check

At the 262,144-token window, each of the three files read a 229,152-token prompt and returned all 3 hidden codes, placed at about 5%, 50% and 95% of the ledger (not exact positions).

Measured: reading from scratch, then a short code answer
File / settingRead sWhole request sCodes
Q5_K_XL, MTP off194.086196.93 / 3
Q4_K_XL, MTP on202.377205.23 / 3
Q5_K_S, MTP on203.831206.63 / 3

Whole request includes the answer and overhead.

Crash check: Q5_K_XL without MTP and Q4_K_XL with MTP each completed 40 of 40 shorter mixed-text prompts at the 256K setting, each with a follow-up turn, with no crashes or empty answers. Q5_K_S was not crash-checked.

Why Q5_K_XL could not use MTP at 256K

In both attempts (--ubatch-size 256), the card refused these memory requests while setting up MTP:

Failed CUDA allocations during MTP setup
Draft cacheFailed bufferBytes
f161,024.00 MiB, KV cache1,073,741,824
q8_01,192.27 MiB, compute buffer1,250,189,440

These are the sizes requested, not how far short the card was. Q4_K_XL and Q5_K_S loaded MTP with 8-bit draft caches at --ubatch-size 512. Two failures do not show that every other Q5_K_XL setup fails.

Since October: a separate draft model

With thinking on, Q5_K_XL with DFlash 2 plus n-gram drafting wrote 3,500 tokens of reasoning at 186.61 tokens a second about 20,000 tokens deep, against 60.39 without the draft model; at 262,144 the same reasoning ran at 189.26. On a plain letter with thinking off the gain was 30 to 44 percent. Reading was 10 to 15 percent slower.

03

Limits

  • Single runs, no confidence intervals: small gaps, such as Q5_K_S against Q4_K_XL on prose, are not a stable ranking.
  • Speed is not answer quality. The letters and structured replies are controlled shapes, not a coding or tool-use test.
  • Two changes at once. Q4_K_XL with MTP against Q5_K_XL without changes both file and MTP. The 128K rows also differ in cache, so they isolate neither window size nor MTP.
  • Narrow fidelity test: one public technical text, against an 8-bit reference rather than full-precision weights. Q5_K_XL is an older upload, so differences cannot be credited to compression alone. The October setup was not re-scored.
  • Finding codes is not reasoning. One long read and a short crash check do not show reliable reasoning over a full window.
  • Same name, different file. The data package's expected-size list names another UD-Q5_K_XL of 20,876,938,144 bytes (stated), not tested; these memory results do not apply to it.
04

Corrections and updates

Update, 26 September 2026

This card follows the day-zero field card with a new test on 26 September 2026, served again at 262,144 tokens with a kept log and reading up to 229,152 tokens. It does not recover the lost 17 September log or claim a prompt filled every token.

Update, 19 October 2026: a separate draft model

This desktop now runs Q5_K_XL with the DFlash 2 draft model, at 229,376 tokens instead of 262,144.

05

How this was measured

ModelQwen3.8-27B (Qwen team), compressed GGUF files from unsloth. Text only, llama.cpp.
MachineOne NVIDIA RTX 5090, 32,607 MiB reported capacity. One request at a time.
DatesServing runs 2026-09-26; draft-model results 19 October 2026.
Buildllama.cpp mainline c8e03ce, built 2026-08-05, CUDA sm_120, as named by the launch script (no fresh binary hash). Scoring: llama-perplexity build label b10453.
RequestsThinking off via chat_template_kwargs: {"enable_thinking": false}. Prose: temperature 0.7, seed 7, cap 900 tokens. Structured: temperature 0, seed 7, cap 1,600. Codes: temperature 0, seed 1, cap 300. Requests override the server's temperature 1.0.
ReferenceQ8_0, revision 4ca72078, 29,047,086,048 bytes. Fixed 414,554-byte corpus, identified by hash.
Tested files; GB (bytes/10^9) and GiB (bytes/2^30) are arithmetic, rounded
FileRecorded revisionBytesGB (bytes/10^9)GiB
UD-Q5_K_XL (August 14 upload)fe1e2a2320,218,178,62420.218.83
UD-Q5_K_S4ca7207818,665,753,50418.717.38
UD-Q4_K_XL4ca7207817,559,178,14417.616.35
06

Data and sources

The data package holds the September test records, logs and file hashes; the number map traces every figure. It lacks the fidelity text and reference logits, so that test cannot be fully rerun.

If a number on this page disagrees with a file in its package, the file is right and the page is wrong; tell us and we will fix the page.

Independent measurements; no affiliation with the Qwen team / Alibaba Group, unsloth, NVIDIA, the llama.cpp project, or Hugging Face.