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.
- 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
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).
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.
| File / setting | ~20K | ~48K | ~100K | ~230K |
|---|---|---|---|---|
| Q5_K_XL, 256K, MTP off | 60.7 | 55.2 | 49.1 | 34.9 |
| Q4_K_XL, 256K, MTP on | 75.2 | 64.8 | 54.9 | 38.4 |
| Q5_K_S, 256K, MTP on | 71.5 | 64.5 | 52.2 | 39.9 |
| Q5_K_XL, 128K, MTP on* | 72.0 | 70.5 | 60.8 | Not run |
| File / setting | ~20K | ~48K | ~100K | ~230K |
|---|---|---|---|---|
| Q5_K_XL, 256K, MTP off | 60.7 | 54.9 | 48.9 | 34.8 |
| Q4_K_XL, 256K, MTP on | 144.7 | 129.9 | 114.7 | 87.0 |
| Q5_K_S, 256K, MTP on | 137.4 | 126.0 | 110.2 | 82.8 |
| Q5_K_XL, 128K, MTP on* | 141.5 | 136.9 | 127.0 | Not run |
| File / setting | ~20K | ~48K | ~100K | ~230K |
|---|---|---|---|---|
| Q5_K_XL, 256K, MTP off | 3,118 | 2,718 | 1,958 | 1,181 |
| Q4_K_XL, 256K, MTP on | 3,088 | 2,722 | 1,937 | 1,132 |
| Q5_K_S, 256K, MTP on | 3,001 | 2,667 | 1,905 | 1,124 |
| Q5_K_XL, 128K, MTP on* | 2,896 | 2,608 | 1,973 | Not 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.
| File | Perplexity |
|---|---|
| Q5_K_XL | 2.7203 ± 0.02379 |
| Q5_K_S | 2.7186 ± 0.02375 |
| Q4_K_XL | 2.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.
| File | Same top token | Mean KL divergence |
|---|---|---|
| Q5_K_XL | 97.830 ± 0.093% | 0.004369 ± 0.000153 |
| Q5_K_S | 97.675 ± 0.096% | 0.005406 ± 0.000201 |
| Q4_K_XL | 97.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
| File / setting | Peak MiB | Spare MiB |
|---|---|---|
| Q5_K_XL, 256K, MTP off | 30,254 | 2,353 |
| Q4_K_XL, 256K, MTP on | 30,722 | 1,885 |
| Q5_K_S, 256K, MTP on | 31,943 | 664 |
| Q5_K_XL, 128K, MTP on* | 30,458 | 2,149 |
| Q5_K_XL, 229,376, DFlash 2 draft plus n-gram, thinking on | 30,647 | 1,960 |
| Q5_K_XL, 262,144, DFlash 2 draft plus n-gram, thinking off | 31,992 | 615 |
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).
| File / setting | Read s | Whole request s | Codes |
|---|---|---|---|
| Q5_K_XL, MTP off | 194.086 | 196.9 | 3 / 3 |
| Q4_K_XL, MTP on | 202.377 | 205.2 | 3 / 3 |
| Q5_K_S, MTP on | 203.831 | 206.6 | 3 / 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:
| Draft cache | Failed buffer | Bytes |
|---|---|---|
| f16 | 1,024.00 MiB, KV cache | 1,073,741,824 |
| q8_0 | 1,192.27 MiB, compute buffer | 1,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.
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.
Corrections and updates
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.
This desktop now runs Q5_K_XL with the DFlash 2 draft model, at 229,376 tokens instead of 262,144.
How this was measured
| Model | Qwen3.8-27B (Qwen team), compressed GGUF files from unsloth. Text only, llama.cpp. |
|---|---|
| Machine | One NVIDIA RTX 5090, 32,607 MiB reported capacity. One request at a time. |
| Dates | Serving runs 2026-09-26; draft-model results 19 October 2026. |
| Build | llama.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. |
| Requests | Thinking 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. |
| Reference | Q8_0, revision 4ca72078, 29,047,086,048 bytes. Fixed 414,554-byte corpus, identified by hash. |
| File | Recorded revision | Bytes | GB (bytes/10^9) | GiB |
|---|---|---|---|---|
| UD-Q5_K_XL (August 14 upload) | fe1e2a23 | 20,218,178,624 | 20.2 | 18.83 |
| UD-Q5_K_S | 4ca72078 | 18,665,753,504 | 18.7 | 17.38 |
| UD-Q4_K_XL | 4ca72078 | 17,559,178,144 | 17.6 | 16.35 |
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.