mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3885] [Benchmark] RTX PRO 6000 Blackwell 96 GB (sm_120), UD-Q4_K_XL: STRATA_MMQ_KQ=1 prompt +116% at 4K and +56% at 250K, decode unchanged #1659
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1659
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Andrey0710 on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3885
What did you measure, or what went wrong
STRATA_MMQ_KQ=1is worth ~2x the prompt speed on a PC where the prompt is not waiting for the SSD. On one96 GB card with every expert and the whole KV cache resident, the K-quant MMQ prompt kernels take a
Qwen3.8-Flash-Next UD-Q4_K_XL prompt read from 2,881 to 6,224 tok/s at 4K (+116%) and from 4,852 to
7,564 tok/s at 250K (+56%), the first token of a 250K prompt from 50.4 s to 32.4 s, with decode
unchanged. The only published measurement of this switch is in
docs/UNSLOTH_Q4.md, where the prompt "waitsfor the SSD either way (29 s per 4K chunk with or without)", so there the gain was invisible.
docs/QUANTS.mdsays the switch stays opt-in until "its speed and KL are measured" — below is the resident half of that
picture, on a card the maintainers' table does not have.
Hardware and software
(
nvidia-smi -q: generation max 5 / current 5, width max 16x / current 16x)(the four model shards and the pack live on it)
engine/BUILD.jsoncommit6f8800aefe27. Theinstall is a source snapshot without
gitmetadata, so the benchmark tools wrotecommit: not a git checkout; the 0.2.3.1 release commit is7ddc17a38fe7f31637e895ecfba58c2cd43d65ec.Model and configuration (identical in both arms)
unsloth-ud-q4_k_xl,--expert-profile expert-profile.bin,--expert-cache auto,--prefill auto,--spec 4 --spec-min-p 0.5, MTP draft layerrtwith--mtp-draft-vocab draft_vocab_cyrillic.bin,--max-context 262144,--kv int8,--kv-resident 0(my own argument, it wins over setup's 32768 —
strata_control/user_args.py),--vision,--vram-reserve-mib 700; server:--conversation-cache-mib 32768 --conversation-cache-slots 6 --conversation-cache-min-tokens 30000.STRATA_HC_Q8=1andSTRATA_ROUTE_TAIL_SKIP=0;STRATA_MMQ_KQis the onlydifference between them. Windows refused large pages for the 71.73 GiB expert arena in both arms
(
VirtualAlloc error 1314, 4 KB pages), so nothing here says whatSeLockMemoryPrivilegewould change.Method
Two sets of measurements, same day, same machine, same model:
python tools/strata_bench.py(theBENCH.batsuite), three runs per cell. The two resultfolders differ in one line of their generated report, the environment line:
mmq_kq_ab.py, attached) that starts the server once per arm, because anenvironment variable reaches the engine only at its start. Six visits in the order on, off, off, on, on,
off, one fresh prompt per size per visit (n=3 per arm per size).
Both: thinking off, temperature 0, 24 new tokens for the long cells and 100 for the short chat cells, speeds
are the engine's own
prompt_per_second/predicted_per_second, first-token time measured by the client overthe streaming API. Every prompt begins with a unique tag, and
reused_tokensis 0 in every long cell, so theconversation cache never helped a measured number. Medians with the min-max range.
Round 2 — order-balanced visits (fresh prompts,
reused_tokens = 0)The range inside an arm is under 1.6%, so the effect is far outside the spread.
and the spread inside one arm is of that size.
prompts): −0.5% to +0.8%. The gain starts at 4K.
prompt-path change (round 1's chat cells agree: 82.4/54.3/52.3% vs 83.3/55.6/55.0%).
Round 1 — the quick suite, two sessions in a fixed order (off first, then on)
The agent session of the same suite (5 turns of about 1,500 words, 64 new tokens per turn) is where the
difference is felt by a coding-agent client — the cache hit rate is the same in both arms (69.2% vs 69.6%), so
it is the same work, done faster:
Which arm ran, and one more pair
The fixed script writes the engine's raw log beside the server's own narration. A short pair the same evening:
The same pair repeated the 4K cell once each: 2,844.9 → 6,253.4 tok/s (+119.8%), first token 1.4 → 0.7 s,
decode 233.9 → 221.8 (n=1, single request, quoted only because it lands on the two earlier arms). With it the
4K measurement exists three times over: +125.6% (round 1, fixed order), +116.0% (round 2, three order-balanced
visits per arm), +119.8% (the confirmation pair).
For scale, a cold read of a real conversation with the switch on:
The text of the answers: this check did not isolate the switch
Four Russian prompts (prose, Python+CSV, a
find ... -deleteexplanation, a TypeScript generic), greedy,200 tokens, two answers per prompt per visit. I compared the answers pair by pair:
The run-to-run variation of one arm is of the same size as the difference between the arms, so these four
prompts say nothing about whether the switch changes the output — and I claim nothing here.
docs/QUANTS.mdsays the MMQ prompt path rounds the products differently from the FP16 path, so the real comparison is the one
the repo already uses: the expert cache pinned so it cannot move during the run (
--adapt-every 100000,docs/UNSLOTH_Q4.md) and theSTRATA_LOGPOS/ top-20 log-probability comparison, or llama.cpp as thereference. Speed is what this report establishes; quality is not established in either direction.
Limits
docs/QUANTS.md; none of those, and no AMD/HIP path, were tested.no 8K/16K cells. The two rounds agree (4K: +126% and +116%; 16K: +66%, and 32K: +63%).
column and the chat cells are the evidence that decode does not move).
auto, so which experts sit on the card changes between visits; this is the residentsetup people actually run, not a controlled quality configuration.
runs.
serve/server.pythe same path for the engine log and for its own stdout, and the two writers overwrote each other, so the
K-quant prompt kernelsline is missing there. The Round 2 arms are recorded per visit inconfigs/visit*-on.json/configs/visit*-off.json(the environment with and withoutSTRATA_MMQ_KQ), and ashort confirmation pair with the fixed script captured the line - see the next section.
prompt path.
Attached:
mmq-kq-evidence.zip(92 KB) - both rounds and the confirmation pair with every request(
requests.jsonl,results.json), the exact config of every visit, the engine log of each arm, and the script.No model files or packs; user names, home folders and keys go through
tools/strata_bench.py's redactor.If it helps the decision about the default, I can also run: 8K/16K/64K to fill the curve, UD-Q5_K_XL and a
Q6_K model, IQ3_S as a control (it has no K-quant experts — I expect no change), and the same two arms on the
--draft-vocab cyrillicsubset for Russian text. Say which and I will add the numbers to this issue ratherthan open another one.
Not a duplicate, and one guess
GitHub matched #1791 (
bench: RTX 5090 IQ3_S 262K, honest baseline); that is a closed report for another card andanother quantization and measures no switch, and I did not find any issue or PR mentioning
STRATA_MMQ_KQ.A guess, not a measurement: #1791 reads an 8K cold prompt at 6,710 tok/s on an RTX 5090 with IQ3_S, while my
UD-Q4_K_XL read 4K at 2,881 tok/s with the switch off and at 6,224 tok/s with it on - the same range as the IQ
file.
docs/DETAILS.md(#136) says the Q2_0 and IQ prompt experts run on fused int8 tensor-core kernels since0.1.36, and
docs/QUANTS.mdsays the K-quants take the FP16 dequantize path unlessSTRATA_MMQ_KQ=1. So part ofthe gap people see between "my IQ file is fast" and "my Q4_K file is slow" on a resident card may be this switch
rather than the quantization's bytes. I did not test that: it needs the same card with an IQ file and with a
K-quant file, both with and without the switch. If someone wants that measured, I can run it.
Reproduction status
Measured locally. Every number above comes from a run on this machine on 2026-10-23; the per-request data, the
config of every arm and the engine log of both arms are in the attached archive. Nothing here comes from reading
code or from another person's report.
Raw numbers of every request
Every row is one request: the engine's own
prompt_per_second/predicted_per_second,reusedis the tokensthe conversation cache held (0 in every
prompt_*cell),drafts_*are the speculative-decoding counters.source=round1-*is thetools/strata_bench.pysuite,round2the six order-balanced visits,confirmtheshort pair that captured the engine's start-up line. Thinking off, temperature 0, 24 new tokens for
prompt_*and 100 for
chat*.Columns:
source arm visit test prompt_tokens reused read generated prompt_tps decode_tps ttft_s prompt_ms decode_ms drafts_offered drafts_accepted.mmq-kq-evidence.zip
@Andrey0710 commented on GitHub (Oct 23, 2026):
Could someone add the
benchmarklabel? I meant to open this with the Benchmark issue form, but/issues/new/chooselisted only "Blank issue", "Report a security vulnerability" and the Troubleshooting link - the.ymlissue forms did not render, so this went in as a blank issue and the label was not applied. (For scale: of the 39 issues opened in the last day, 28 carry no label at all and 11 carryneeds-format; none hasbenchmark/bug/enhancement, so the form labels seem not to be applied for anyone right now.) The body keeps the form's headings, and.github/scripts/item-check.jsreportskind: benchmark, ok: truefor it.@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.