mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2227] --mtp-hnorm stream beats the default on sm_89 (IQ3_XXS): draft acceptance 82%->86%, decode +3.8%/+2.3% at 6K/70K, neutral at 120K, answers byte-identical #887
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#887
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 @jy02375437-max on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2227
Summary. On an RTX 4090D (sm_89, Windows 11, 48 GB, PCIe Gen4 x4), Strata 0.1.43.1 with Qwen3.8-Flash-Next IQ3_XXS (native pack, 24,576/24,576 experts in VRAM) was measurably faster with
--mtp-hnorm streamthan with the default (pooled). The draft acceptance rate rises about 4 points and the decode follows; at 120K context the two are inside the noise band. Answers are unchanged (byte-identical on our greedy set).Rig / flags (nothing else differs between arms).
strata-windows-x64.zip, archs 75/86/89/120, CUDA 13.0).--pack+--native+--ple-gguf),--ple-io direct,--embd-ggufBF16 embeddings.--spec 4 --spec-min-p 0.70 --mtp <rt>(shipped draft vocab, 106,299 ids)--prefill auto:32768 --pcie-frac 0.35 --kv int8 --kv-resident 32768 --prompt-cache 12 --conversation-cache-mib 32768 --conversation-cache-slots 8 --vram-reserve-mib 700.Method. One fixed filler prompt read to 6K / 70K tokens, then 5 greedy 384-token generations per arm (
bench/strata-decode-probe.pystyle); the engine's own per-request line suppliesgenerated in X ms (Y tok/s), drafts accepted A of B— the table shows the median of the 5 reps. 120K: the repo's own 3-needle prompt, 2 requests per pass, greedy.Results.
--mtp-hnorm streamThe default arm is very reproducible across the interleave (219.9/219.4 and 203.0/203.3), so the 6K/70K gap is wider than its own band; at 120K the two overlap.
Quality. The draft only proposes and every token is still verified against the main model, so nothing should change — and nothing did on our checks: six greedy answers (Cantonese/English short, code, Cantonese/English long, translation) byte-identical between arms and against 0.1.43; 32K needle 3×3 = 9/9 and 120K needle 2×3 = 6/6 on both arms; a Cantonese temp-0.3 sanity prompt non-empty 6/6.
Why (a guess).
streamis llama.cpp'sqwen4expMTP graph (one RMS per hyper-connection stream); the default pools the four into one (vLLM'sqwen4_exp). This model's MTP head comes from the llama.cpp-side family, so the per-stream norm may match how the draft layer was trained.Two extra data points (may save someone a run).
STRATA_MTP_FULL_HEAD=1(draft over the full 248,320-token vocabulary): acceptance 86% → 90% at 6K, but decode falls 228.0 → 223.2 (−2.1%). The bigger head costs more than the extra acceptances earn, so the 106,299 subset stays.STRATA_MTP_TOP2=1: at rejected drafts the runner-up was the token the model picked 0 of 14 times (rejected/runner-up by depth 6/0 4/0 4/0 0/0over ~137 windows) — the remaining rejections are not near-misses.--lookup-chain 3measured ±0.05% here (219.8/202.9 vs 219.9/203.0); its counters show 1-4 of ~148 windows carrying a chain and 0-3 chained drafts accepted per request.Suggestion. If other sm_89 (or NVIDIA) cards confirm
stream≥pooled, it may be worth a line in the MTP docs — or even flipping the default for NVIDIA. Happy to re-run this on request with different flags or a specific protocol.@MrKop-git commented on GitHub (Oct 16, 2026):
Replicated on sm_61 (GTX 1080 Ti 11 GB, IQ3_S, MTP
--spec 4, engine 0.1.44.1):--mtp-hnorm streamdecode +28% / +28% after a short (~565 tok) and a long (~7K tok) prompt (medians 27.7→35.4 and 25.2→32.3 tok/s; all six requests of the two arms disjoint), prompt throughput unchanged, and the same fixed arithmetic answer as the pooled arm. Larger than sm_89's +3.8% — on this rig the default's per-stream norms seem to cost the draft layer more. Data and per-request lines: #2737.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
autotoo 4X gain in the prefill in 4 way ring #2889