mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5327] [Engine] Qwen3.8 q2_0 decode ~2.4x slower at 1M context since 0.1.56 (0.1.55 full speed) - single RTX 3090, Linux #3176
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#3176
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 @pjgmobile on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5327
Summary
Qwen3.8-Flash-Next GSQ-RCO Q2_0 decodes ~2.4x slower on engine 0.1.57 than on 0.1.54 here — same pack, same lane config, same request; the only change is the engine binary.
Hardware / setup
engine/binary (BUILD.json says 0.1.54) against the 0.1.57 component (~/.local/share/strata/components/engine/0.1.57-linux-x86_64-cuda-cuda13)--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <drafter> --max-context 1048576 --rope-scaling yarn --rope-scale 4 --kv int8 --kv-resident 32768, layer split auto (single card)Method
One request per run: a real coding-agent payload (system prompt + 12 tool schemas + a task prompt), ~11.4k prompt tokens,
max_tokens 65536, streamed. Decode speed = client-side token count over the 60-90 s window after first token. Two runs per engine, lane restarted between arms, machine rebooted before the session, no other GPU processes.Results
During the 0.1.54 runs the serve log shows a healthy profile: decode expert cache hit 97.8%, KV streaming 99.94% of block reads from VRAM, suffix drafting active, conversation-cache restore of the 11.4k prompt in ~36 ms.
Notes
engine/binary, so component updates only took effect once the exe path was switched to the component — that's how the difference surfaced.Filed programmatically by an automated agent on behalf of the reporter.
@github-actions[bot] commented on GitHub (Nov 5, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 5, 2026):
Thanks, this follows the format now.
@pjgmobile commented on GitHub (Nov 5, 2026):
Update with a context-size isolation on the same lane/model/method (engine 0.1.57, Q2_0):
So on 0.1.57 the big factor is the 1M window (~2x), not YaRN (yarn vs none is within noise at 262k). Note 0.1.54 measured 116.7/119.9 tok/s at 1048576 on the same method, so there may also be a smaller component present at 256k, or the context penalty starts below 262k. Happy to bisect context sizes or engine versions (0.1.55/0.1.56 components are installed) if useful.
@pjgmobile commented on GitHub (Nov 5, 2026):
Second model confirming the context-size trigger — Unsloth UD-IQ1_M (also engine 0.1.57, same lane/method; this quant needs 0.1.57 for the new expert formats):
~3x at 262k, landing level with the Q2_0 numbers above. So the 1M-window penalty is not model-specific. (For scale, the same method gives GSQ-RCO Q2_0 on engine 0.1.54 116.7/119.9 tok/s at 1048576.)
@pjgmobile commented on GitHub (Nov 5, 2026):
Bisect result — the 1M-context regression was introduced in 0.1.56, not 0.1.57. All four installed engines, same lane/model/method, context 1048576:
So the cliff is between 0.1.55 and 0.1.56 — per #5328 that is the engine from PR #5140. At 262144 context 0.1.57 measures 93.7-95.5 tok/s here, so the regression is specific to (or strongly amplified by) the 1M window.
Note this looks distinct from #5328: that one measures a small uniform 0.1.56→0.1.57 regression (5-13%) at 128-256K contexts on Ada/Windows, whereas this one is large (~2.3x), 1M-specific, present already in 0.1.56, on Ampere/Linux. Two separate changes are likely involved. Happy to re-test anything on 0.1.55/0.1.56 if it helps pin the commit.
@pjgmobile commented on GitHub (Nov 7, 2026):
Found the mechanism with per-boot stderr captures (engine stderr through a wrapper exe) — it is a host-RAM decision, not a VRAM or drafting one. Two boots, same machine, same lane, same model, same hot page cache, 8 minutes apart:
Engine 0.1.54 (fast, decode 121.9 tok/s in the first 30 s):
It warns, then builds the arena through the file cache anyway, and decodes at full speed.
Engine 0.1.58 (slow, 44-49 tok/s), identical shortfall:
Same want (31.64 GiB), same available (~12.9 GiB), opposite decision: 0.1.56+ falls back to file-tier expert reads and decode lands at 45-57 tok/s.
strata mtp: draft layer loadedappears in BOTH slow and fast boots, so the drafter is not involved. The earlier VRAM/spill-ladder theories are out.This also explains the isolation table:
The 0.1.54 warning even points at the trade-off itself ("the load may swap or be stopped by the OS ... #4051") — on this box neither happens; the file-cache-backed arena decodes at 116-122 tok/s for hours.
Suggestion: restore the 0.1.55 behavior when the shortfall can be served through the file cache (or make the fallback opt-in), or at minimum print the fallback on stdout so serving setups see the 2.4x decode loss instead of discovering it in throughput.