mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4410] [Engine] 0.2.7 single-stream decode −11.7% on 2× RTX 2080 Ti with IQ3_S and --native (105.9 → 93.5 tok/s); prefill and concurrency unchanged #1963
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#1963
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 @haichongck on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4410
Reproduction status
Measured locally
What did you measure, or what went wrong
A single-stream decode regression on 0.2.7 (engine 0.1.52) when the model runs through the IQ series +
--nativeexpert path, on two RTX 2080 Ti. Same pack, same model file, same engine arguments, same machine, only the engine binary differs.0.2.2 (engine 0.1.47): 103.65 / 105.90 tok/s. 0.2.7 (engine 0.1.52): 89.15 / 93.50 tok/s. That is −11.7% on the median, and the two ranges barely touch (old 99.6–112.7, new 73.3–97.2).
Both engines load the same expert layout, so this is not a placement change: old
expert cache 8377 slots, 15.06 GiB, new8364 slots, 15.04 GiB, and both chooseK=24,best of 46 placements,~98.8% of the routed mass.This is not the 12 GB router change (#3232 reports 98–99% hit rate on 22 GB cards leaves nothing for it, and I see the same hit rate), and it is not layer-major prefill — that one has nothing to act on here either, for the same reason: at 98.8% hit rate the experts are already in VRAM, so there is no repeated RAM read to remove. Turning it off changes nothing (see below).
The one thing that differs from the reports already filed on this hardware is the quantisation path: #3232 measured UD-Q4_K_XL, #3282 measured IQ3_S but on v0.2.0-beta. IQ3_S with
--nativeruns native experts rather than a pure-GPU path, so it is plausible that the regression lives in that path only.Hardware
10de:1e07), driver 595.99.02, CUDA 13.3--layer-split auto: CUDA0 layers 0–23, CUDA1 layers 24–47CMAKE_CUDA_ARCHITECTURES="75;86",CMAKE_BUILD_TYPE=Release, both binaries from the same machine and the same CMakeCache apart from paths and the version numberConfig (identical for both engines; only the
exediffered):STRATA_SM75_PERF=1was set for every run of both engines.Numbers
Short-chat decode, unique prompt per run so no prefix reuse,
timings.predicted_per_second, temperature 0:Prefill is unchanged, so this is a decode-only regression:
Concurrent requests show no gain either (which is what the 0.2.7 batch pipeline was expected to give): 2 chats 170.8 → 172.7 tok/s, 4 chats 373.9 → 364.6 tok/s.
What I ruled out
Each of these was a separate engine start, four 8-run medians each; none of them restores the 0.2.2 speed:
STRATA_PREFILL_LAYER_MAJOR=0(layer-major prefill off)STRATA_SM75_PERF=0(Turing kernels off)STRATA_HC_SPLIT=0(the earlier hyper-connection path)Also checked, all identical between the two engines:
STRATA_*/CMAKE_*option matches; the diff is onlyCMAKE_HOME_DIRECTORY,CMAKE_CACHEFILE_DIR,CMAKE_FIND_PACKAGE_REDIRECTS_DIR, the compiler variable type,CMAKE_PROJECT_VERSION, and theCUDA_CUDARTspelling of the same 13.3 library16 workers by default,tasks/phase: 51, host thread on 17,--host-core last, aux CPUs 35,16,34 — identical in both logsK=24,~98.8% of the routed mass, 8364 vs 8377 slots,R4 hit path ON,token graph hit path— identical apart from 13 slotsOne thing I did not isolate: the 0.2.7 run starts
strata hcwith the new stagedcp.asynchyper-connection path (0.2.2 has no such line);STRATA_HC_SPLIT=0is the earlier path and was slower still, so I do not think that is it, but I could not switch it off to a path identical to 0.2.2.What I did not test
IQ3_S, the Swift IQ3_S pack) and one quantisation family. UD-Q4_K_XL, IQ3_XXS and Q2_0 were not measured here, and #3232 saw no regression on UD-Q4_K_XL, so the boundary of this is worth pinning down.--spec 4with the MTP draft head. Draft acceptance was similar in both (11 of 11 and 11 of 12), but I did not test with speculation off.--layer-split auto; 1 card, 3 cards and 4 cards were not measured by me.Related discussion
--native).STRATA_SM75_PERFA/B, on v0.2.0-beta (engine 0.1.45.3). Same hardware family and model as here, one release earlier.docs/TEST_REQUESTS.md— this is an sm_75 report, the hardware the maintainers do not have.If someone with a 2080 Ti can run the same pair of binaries on UD-Q4_K_XL and on IQ3_S, that would separate "0.2.7 is slower on sm_75" from "0.2.7 is slower on the IQ +
--nativepath", which is the part I cannot answer alone.@Adamyno commented on GitHub (Oct 28, 2026):
Counter-datapoint on a second sm_75 pair: the same 0.2.2 → 0.2.7 pair on IQ3_S
--nativedoes not regress hereCross-referencing from #3232, since this is your report.
I built both engines (0.2.2 / engine 0.1.47 and 0.2.7 / engine 0.1.52) and ran your flag set on 2× RTX 2080 Ti 22 GB: IQ3_S
--native,--kv k8v4 --kv-resident 32768 --spec 4 --spec-min-p 0.70 --mtp-hnorm stream --host-core last --pcie-frac 0.00 --vram-reserve-mib 800 --conversation-cache-mib 10240 --conversation-cache-slots 8 --layer-split auto,STRATA_SM75_PERF=1in both, one tree + one binary per arm, alternating order, 3 rounds.No regression on this pair — so "0.2.7 is slower on sm_75 with IQ +
--native" is not general. Differences that could matter: your 0.2.2 baseline is 103–106 tok/s vs my 92 (your cards at 250 W, mine at 210/167 W), 8-run medians vs my 3 rounds, and my pack has no mmproj so I ran without--vision. I did not run your 8K–131K prefill ladder.If you want a tighter comparison I can rerun at 250 W with 8 medians and your prefill depths — say which one you think is the most likely difference and I will match it.
@haichongck commented on GitHub (Oct 28, 2026):
Thanks — this is exactly the kind of counter-datapoint the report needed, and it made me go back and look at my own numbers properly instead of just the medians I quoted.
Your 0.2.2 arm looks like the outlier, not your 0.2.7 arm.
Here is my full distribution rather than the two median figures I put in the issue (all single-stream decode, IQ3_S
--native, one engine start per arm, n = samples across 2 engine starts per version):Two things I should have reported and did not: the run-to-run spread is sd ≈ 5.8 for both arms (±6%), and the two ranges overlap in 91.9–97.2. So the honest statement of my result is that the medians differ by −12.1% with non-overlapping interquartile ranges, not that every 0.2.7 run is slower than every 0.2.2 run. With single-run noise at ±6%, a 3-round comparison can easily land either side of a 10% effect.
Placing your numbers in that distribution:
So your new version matched mine closely (92.90 vs my 91.10 median); the gap opened because your old version did not reach the ~100–112 range my old version occupies. That is consistent with your own note about the 250 W versus 210/167 W difference.
Power, which I measured after reading your comment (0.2.2 arm only):
Decode is memory-bound, so it never reaches the 250 W ceiling — but it does peak at 203 W. Your second card is limited to 167 W, which is below that peak. That is my working hypothesis for why your old arm sits ~11 tok/s under mine while your new arm does not: if 0.1.52 schedules decode at a lower power draw, a 167 W ceiling would stop being a bottleneck for it but would still hurt 0.1.47.
What I have not measured, so treat the above as a hypothesis and not a result: I did not measure 0.2.7's decode power draw. The 0.2.2 + new-web combination is serving a live workload on this machine right now and I did not interrupt it to take the comparison. If I get a window I will run the same probe against the 0.2.7 arm and post the numbers — that would either confirm or kill the power explanation.
Two differences between our setups worth naming:
--vision; you ran without it. I do not think this explains your 0.2.2 shortfall (a multiplexed vision tower should cost, not gain, throughput), but it does mean we are not measuring an identical configuration and I am flagging it rather than quietly dropping it.What I would ask for, if you are willing to re-run once:
Put both cards at 250 W (or drop to a single card, which removes the split entirely) and repeat your 3 rounds. If 0.2.7 still tracks 0.2.2 at equal power and without a 167 W card in the path, then my report's headline is wrong and I will say so in the issue and ask the maintainer to close it. If the gap reappears, the 167 W ceiling is the likeliest explanation and this stops being an engine regression at all.
Either way — thank you for building both engines from source and running the same flag set. A same-pair A/B from someone else is worth more than another 8 runs of mine on the same machine.
@cobra91 commented on GitHub (Oct 28, 2026):
Dual-GPU data point from a different card pair (RTX 5080 + RTX 4060 Ti, both 16 GB, Ryzen 7 9800X3D, 32 GB RAM, Windows 11, engine 0.1.52 build
a42cc3d7df, Qwen3.8-Flash-Next Coder IQ1_M, 64K context). I don't have a 0.2.2 baseline to confirm your exact delta, but while A/B-testing this engine I measured two config-level effects that each crush single-stream decode far beyond -11.7%, in case they compound with what you see:1. Concurrent requests > 1 routes single conversations through the pipelined batch path, and it is 4x slower for a lone chat.
Same engine, same model, same short prompt (greedy), only the serving config changes:
--batch 4, ridesstrata batch (pipelined, 2 groups of 2))--batch 2, serve path)serve/server.pyhost, no batch flagYou can tell which path a request took from the engine log: the batch path prints
strata batch (pipelined, N groups of M)and noprompt N tokens ... generatedline for that request.2.
--pipeline-windows 2costs ~18% warm single-stream decode on 0.1.52 here.A/B/A with the flag as the only variable (same host, same prompts): without it 59.3 tok/s warm, with it 49.4 and 48.7 on two separate loads. Prefill was unchanged. For anyone reproducing on a two-card split: enabling pipeline-windows without the rest of the scheduling changes it depends on made single-stream worse, not better.
Everything measured engine-side from the engine log (generated tokens / generation time), desktop in use, so treat the absolute numbers as a lower band - but the 4x spread between serving configs and the -18% from the flag reproduced cleanly.
@Adamyno commented on GitHub (Oct 29, 2026):
Re-ran at 250 W (both test cards) and with your single-slot shape: the gap still does not reproduce here
Thanks for the distribution — the percentile view is fair, and I agree my 3-round 0.2.2 arm was on the low side of it. I ran the two variants you asked for.
1. Both cards at 250 W (210/167 → 250 on all three; same flag set, 3 rounds, alternating order, one tree + one binary per arm):
My 0.2.2 arm did not move: 92.20 at 210/167 W → 90.90 at 250 W. So the 167 W ceiling is not what held my old arm at ~91 — it never reaches your 103–106 at either limit. The power hypothesis would have needed the 0.2.2 arm to climb at 250 W; it stayed put, and 0.2.7 stayed equal-or-better.
2.
--batch 1(your config has no--batch; mine had 2), one round, 250 W:Slot count is not it either.
Where that leaves it: across four combinations (210/167 W and 250 W ×
--batch 1and--batch 2) 0.2.7 is never slower than 0.2.2 on this pair, and my absolute level sits ~12 tok/s under yours in both versions. The remaining differences are outside the engine comparison: card clocks/VBIOS (mine are modded 22 GB boards, ~1.9 GHz at 250 W), the prompt set (my threeab_enginechats and a 4.3k word-list prompt, 256 new tokens each; yours are 300-token generations), and the host.So my data cannot confirm your −11.7%, and it does not explain your box either — your report stands as your machine's data. If you want the two rigs on the same instrument, tell me the exact prompt and generation length of your 300-token probe and I will run that, logging SM clock and power draw per run so the comparison is like-for-like.
@haichongck commented on GitHub (Oct 29, 2026):
Closing this as machine-specific — thank you both
Adamyno, cobra91 — thank you. Between the two of you this is now better covered than most single-stream decode questions on sm_75 hardware, and the answer is not what I filed.
What I retract: the claim that 0.2.7 (engine 0.1.52) regresses single-stream decode on IQ3_S
--native. Your four combinations (210/167 W and 250 W ×--batch 1and--batch 2) never showed 0.2.7 slower, and my own data does not survive the percentile view you applied to it: my two arms overlap in 91.9–97.2 with sd ≈ 5.8, so a −11.7% median difference from 16-vs-14 samples is a weak signal rather than a result.The power hypothesis is dead. You tested it properly: your 0.2.2 arm not moving from 92.20 at 210/167 W to 90.90 at 250 W rules it out cleanly. I was wrong to put it forward as the leading explanation.
What stays true is the part that does not reproduce on your rig: my cards (stock 22 GB, VBIOS .88/.85, turbo coolers, NVLink) sit at 71 °C at a 250 W limit, and I never logged SM clock, power draw or fan alongside the throughput numbers. Since this afternoon they are at 220 W because of that temperature ceiling.
So the honest description of my report is "this box measured 103–106 tok/s versus 89–94 on two days" — not "0.1.52 regresses sm_75". With a possible downclock on my side and a documented ~12 tok/s absolute offset on yours, the two datasets are not on the same instrument. Getting them there would mean clock and power logging on both rigs, and I do not think that is worth more of your time for a version pair the maintainers are no longer recommending.
cobra91 — your two serving-config findings were the most useful part of this thread and I have adopted both as rules:
--batch 4routing a lone chat down the pipelined path at 4× cost, and--pipeline-windows 2costing ~18% single-stream decode. I confirmed neither appears in my config, so that is now checked rather than assumed.Closing as machine-specific. If someone later sees a real 0.1.52 decode regression on sm_75 with clock logging, my numbers stand here as one data point from one box.