mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5328] [Engine] 0.1.57 is slower than 0.1.56 on Ada sm_89 (RTX 4080 SUPER) - warning for RTX 40 owners #3181
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#3181
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 @c-OOL-io on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5328
Summary
On an RTX 4080 SUPER (sm_89, Ada), Windows 11, the 0.1.57 engine (v0.2.11) is measurably slower than 0.1.56 on every Qwen3.8-Flash-Next model and workload we run. The prompt-chunk change behind 0.2.11 (long prompts read in chunks up to 32768 tokens on CC 8.0+, was 8192) appears to hurt Ada cards under Windows, even though it helps Blackwell (RTX PRO 5000/6000) and Linux.
Hardware: RTX 4080 SUPER 16 GB (sm_89), Ryzen 9 7950X3D, 64 GB, Windows 11, CUDA 13.4, driver 617.42.
Method: official
tools/strata_bench.py, live instance, median of 3 runs per engine, identical calibrated configs on both engines.Results (median of 3 runs, tokens/s)
Qwen3.8-Flash-Next IQ3_XXS, 256K
Qwen3.8-Flash-Next IQ3_S, 128K
Swift IQ3_XXS, 262K
Observation
Consistent across all three models: 16K prompt speed drops 7.5-13%, chat decode 5.3-7.3%, agent decode 6.3-7.1% on 0.1.57. Only the 4K prompt stays roughly neutral (+2.0% to -0.8%). This is reproducible (3-run medians each), on clean RAM (no swap, 4.7-7.2 GB free).
For owners of RTX 40-series cards (sm_86/sm_89)
Consider staying on 0.1.56 for now - it is the fastest engine for this hardware in our measurements. 0.1.56 was previously submitted in PR #5140.
Suggestion
Consider capping the default prompt chunk at the previous 8192 for sm_86/sm_89, or making the 32768 chunk opt-in, until a measurement on an RTX 40 card confirms it helps there.
@fioruccione commented on GitHub (Nov 6, 2026):
A data point from Linux on sm_89, in case it helps narrow this down: on my box 0.1.57 is not slower than 0.1.56. So this looks like Windows or single-card, or both, rather than Ada in general.
Box: 2x RTX 4060 Ti 16 GB (sm_89, Gen4 x8 each, no P2P), TR PRO 3975WX 32c, 8ch DDR4-2667, 128 GB, Linux, driver 610.57.04. Qwen3.8-Flash-Next UD-IQ4_XS, layer split over both cards, MTP (
--spec 4), 256K context, int8 KV,--pcie-frac 0.00, experts RAM-resident. Both engines built from the release tags (v0.2.10ffa80d7, v0.2.11c3b3f50) with the same options (CUDA 12.6, sm_89, Release); same config file for every arm, only the engine changes. VRAM at stock clocks. Order A T W W2 W2 W T A, a fresh server per start, decode medians of 4 requests per kind at T=0 (two starts x two requests), prefill medians of 2.prompt chunk auto: 8192 tokens. So my run does not test the change you suspect; it only says the rest of 0.1.57 does not cost anything on this setup. A single Ada card on Linux is the arm that would separate "chunk" from "Windows".Not run: a single card, Windows, the IQ3_XXS / IQ3_S files from your tables. Raw results stay on my box; happy to post the engine log lines if they help.
@c-OOL-io commented on GitHub (Nov 6, 2026):
Thanks for the data point - it lines up with our setup closely enough to narrow it.
We are exactly the other corner: single card + Windows (RTX 4080 SUPER 16 GB, one card, Win11, CUDA 13.4, 64 GB RAM, driver 617.42). Our three Qwen3.8 models (IQ3_XXS 256K, IQ3_S 128K, Swift 262K) all regress on 0.1.57, and always worst on the 16K prefill (-7.5% to -13%), with chat/agent decode -5.3% to -7.3% behind.
So together your Linux/dual-card result and our Windows/single-card result point the same way: the 0.2.11 prompt-chunk change seems to hurt the Windows prompt path on a single Ada card, not Ada in general. Staying on 0.1.56 here until it is addressed.
@nolram commented on GitHub (Nov 7, 2026):
Adding a 12 GB datapoint + a likely root-cause angle from a single RTX 4070 Ti (Ada sm_89), Linux box, which I believe makes this much worse on 12 GB cards than the 24 GB boxes above.
Setup: Strata 0.2.11 / engine 0.1.57 (cuda13, driver 580.178), Qwen3.8-Flash-Next, Unsloth Dynamic v3.1 UD-IQ3_XXS (the 11-04 re-upload, rev d9620119 — needs 0.1.57), 128K context,
--kv int8, MTP drafter,--parallel 1. One 1750 MiB of VRAM is reserved for a co-located embedding sidecar, so the engine reportsexpert cache auto: 4.51 GiB free … -> 942 slots(1064 on another start).Symptom: sustained decode ~36–40 tok/s. For scale, the same GPU on engine 0.1.52 with ISTA GSQ-RCO IQ3_XXS (same 3-bit class) measured 86–113 tok/s — so this is a ~2.5–3× regression across the 0.1.52 → 0.1.57 + pack change.
Where the time goes (from the engine's own log + nvidia-smi sampling):
decode expert cache hit rate:per request. Ours sits at ~45–51%, with a further ~18–20% "read by the GPU over PCIe" (the rest served by the overlapped CPU pool). So only ~45% of expert rows hit the VRAM cache.The contrast that points at VRAM: #5327 reports a 3090 (24 GB) on the same 0.1.57 engine with an Unsloth UD-IQ1_M pack decoding ~96 tok/s at 262K. Same engine, same format, same drafter — the difference is that the 24 GB card gives the expert cache ~3× the VRAM, which is what gets it to a ~98% hit rate. On a 12 GB card after the 1750 MiB sidecar reserve, only ~4.5 GiB is left for the expert cache (≈942–1064 slots), and the hit rate collapses to ~45–50%.
Question: is there a replacement for the removed
STRATA_ROUTE_PRIOR(which was the mitigation in #4841), or any plan to improve expert-cache residency/efficiency on a small-VRAM single GPU so 128K decode recovers? On a 12 GB card the expert cache is such a small fraction of VRAM that I can't see a config knob restoring the 0.1.52-era residency without breaking the co-located model.Cross-refs: #5327 (same order of magnitude, 3090, has the 97.8% healthy hit-rate baseline), #4841 (the 0.1.54/55 regression +
STRATA_ROUTE_PRIORthread).Happy to share full logs/configs if useful.
@c-OOL-io commented on GitHub (Nov 7, 2026):
From my engine's own log on a single 16 GB Ada card (Windows):
decode expert cache hit rate~60-75% on 0.1.57 against a steady 80-83% on 0.1.56, identical config.Likely cause: the new 32768 prefill chunk borrows ~13.6 GiB of cache slots (vs 4.6 GiB at 8192). On a 16 GB card whose expert cache fits only ~8 GB, that empties the cache during the prompt read and decode pays the miss. @fioruccione's 2x 4060 Ti data point is the counter-check: the second card makes the borrow free. @nolram's 12 GB hit-rate numbers fit the same story.
Could the fit scan size the chunk against the expert-cache VRAM on single cards? Happy to test a build.
@fioruccione commented on GitHub (Nov 7, 2026):
@c-OOL-io interesting finding, and thanks for checking the cache hit rates.
You might find #4610 useful. We have been comparing how host configuration, expert residency, CPU work, PCIe, layer split and the effective prefill path interact across different machines, often with surprising results.
I wonder whether the chunk size and the resulting cache displacement are another example of the same problem: a runtime decision that makes sense in isolation but changes the balance of the whole system.
It may be worth looking at those measurements to see whether your case fits the same pattern. I wouldn’t assume the chunk alone explains everything yet.