mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3966] [Engine] 0.1.48 layer-split decode regresses ~20% vs 0.1.43 (4060 Ti + 3060, --pipeline-windows 2) #1702
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#1702
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 @williswu on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3966
Area
Desktop app, Terminal or source?
Terminal (the
stratacommand)What happened
A/B tested 0.1.43 → 0.1.48 today on a two-card layer split (RTX 4060 Ti 16 GB as stage 0 + RTX 3060 12 GB as stage 1,
--layer-split 28 --pipeline-windows 2). Single-card results improved as expected, but the split path regressed ~20%:Same model, same weights, same args — only the
exewas swapped (plus--pool-workers 11,presence_penalty: 0andSTRATA_ADAPT_OVERLAP=1added for 0.1.48 per #3781/#2940). Bench: fixed prose + code prompts,max_tokens=400,temperature=0, decode tok/s fromtimings.predicted_*.Two log lines appear only on the 0.1.48 split start, and both point at the regression:
note: --pipeline-windows 2 on a layer split of two stages without the draft layer on the first card (STRATA_MTP_STAGE0=1 asks for it): the draft chain then shares the last card with its window and the pipeline lost to the serial loop on 2x R9700 before 0.1.44 (docs/MULTI_GPU.md); kept as asked, --pipeline-windows 0 turns it off— 0.1.43 runs the identical--layer-split 28 --pipeline-windows 2combination and prints no such note, while being ~20% faster. Did the draft-layer placement or the pw2-on-split policy change between 0.1.43 and 0.1.48? IsSTRATA_MTP_STAGE0=1the intended fix on this layout?strata serve: STRATA_ADAPT_OVERLAP=1 is off: not on a layer split— printed while--layer-split 28is active, so the overlap check does not recognize the split form and the one knob that could recover it is silently off.Secondary: the expert-cache fit warning shrank from 4041 → 3918 slots at the same
--expert-cache 4500 --vram-reserve-mib 957(the warning itself exists on 0.1.43 too, so only the accounting changed).Expected: split decode at least matches 0.1.43 (≈47 tok/s), ideally with the same single-card gains.
Smallest steps or command that reproduce it
Reproduction status
Strata version
0.1.43 (source build, CUDA 12.9) vs 0.1.48 (release binary, BUILD.json
f-023-rel 6f8800aefe27, CUDA 12.9, archs 60–89)Graphics card, memory and system
RTX 4060 Ti 16 GB + RTX 3060 12 GB (PCIe 3.0 x8) · 112 GB RAM · Ubuntu 24.04 VM (12 vCPU) on a Proxmox host
Model, size and settings
Qwen3.8-Flash-Next IQ3_S abliterated (MoE + PLE) · 262 144 context ·
--spec 4 --spec-min-p 0.5 --mtp rt --mtp-hnorm stream· vision on · draft acceptance ~65–75% in both versionsLogs
0.1.48 split start (trimmed):
0.1.43 split, same args, first 8 bench rounds (no pipeline-windows note, no ADAPT_OVERLAP line):
@github-actions[bot] commented on GitHub (Oct 24, 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 (Oct 24, 2026):
Thanks, this follows the format now.
@qni-live commented on GitHub (Oct 25, 2026):
I could not reproduce the layer-split regression on a different pair of cards. Here 0.2.6 decodes about 10% faster than 0.1.43.1 on the same split, with
--pipeline-windows 2and with0.Setup: 2x RTX PRO 4500 Blackwell (32 GB each, same model), layer split 25 of 48, Linux. Whole packages compared: 0.1.43.1 source build (its own
serve/server.pyand engine) against the 0.2.6 release (Terminal 0.1.51, engine 0.1.50), same Swift IQ3_XXS files and pack, same arguments from our old 0.1.43.1 config:--spec 5 --spec-min-p 0.5 --mtp ... --kv k8v4 --max-context 262144 --vram-reserve-mib 700 --layer-split 25, no vision, no--batch, one stream. Only--pipeline-windowschanged between variants.Load:
tools/serve_load.py, 1 client, 8 rounds, 400 output tokens, temperature 0, fixed prompts, one warm-up request, fresh server per run. Order 43/pw2, 26/pw2, 43/pw0, 26/pw0, then the same four again. Engine decode tok/s is the median of thegenerated in N ms (X tok/s)lines of the last 8 requests.serve_loadtotalDraft acceptance is the same in both versions (47.5% against 47.6% with pw 2, 48.7% for both with pw 0; low because of temperature 0 and essay prompts). Within one version
--pipeline-windows 2is about 2% faster than 0.The
note: --pipeline-windows 2 on a layer split of two stages without the draft layer on the first card ...line from your log also appears here on 0.2.6 with pw 2, and not on 0.1.43.1. On this rig it comes with no loss.What this does and does not show: it does not reproduce the regression, but it does not rule it out. Our experts are almost all resident in VRAM (99% hit rate on the production config) and the cards are equal on PCIe x16 (startup probe 53 GB/s); yours is 16 + 12 GB over PCIe 3.0 x8 with the expert cache under pressure, so the loss may sit on the offload path, which this test does not exercise. I compared 0.1.43.1 with 0.2.6, not 0.1.48. One stream, 400 tokens, no vision, two passes. I did not set
STRATA_ADAPT_OVERLAP.The measurements were run by Claude Code (Anthropic) on my PC; I reviewed the numbers and this comment before posting.
@williswu commented on GitHub (Oct 26, 2026):
Update: fixed in 0.1.50 (v0.2.6) — we re-tested both rigs today and the layer-split regression is gone.
4× GTX 1080 Ti, 4-stage split (12,24,36),
--pipeline-windows 2: 0.1.43 → 0.1.50 decode 52.8 → 62.3–65.4 tok/s (+20%). Same config, same fixed prompts (400 tokens, temperature 0, prose + code), two bench rounds each. Vision path also verified on 0.1.50 (the package's sm_61 cubin works).RTX 4060 Ti 16 GB + RTX 3060 12 GB, split 28/20 (the rig from the original post): 0.1.50 alone is only +3% (38–40 vs 35–40 baseline, same-day same-load). The remaining gap is CPU-side: this box is a Xeon W-2133 (6C/12T, 11 pool workers) vs the 1080 Ti box's 48 vCPU / 47 workers, and its expert cache hit rate is 85–93% vs 98% — the miss path is CPU-pool-bound, and 0.2.x's gains are on the GPU path. Adding
--remote-expert-opt(the #1062 recipe) took it to 44.8–46 tok/s (+17% over the 0.1.50 baseline) — the second card as a remote expert tier bypasses the weak CPU.So qni-live's non-reproduction and our regression are both real: the loss sat on the offload path, and 0.1.50 fixed it. Negative results on the 4060 Ti + 3060 rig, for completeness:
--pcie-frac 0.85(39.3, the auto probe's 0.32 is already right),--spec 5(36.4, keep 4),--layer-split 32(flat, keep 28).Thanks for the fast turnaround on this one.
@williswu commented on GitHub (Oct 28, 2026):
One more data point: 0.1.52 (v0.2.7) is a big win on this rig — the 12 GB router change (prefer experts already resident on the card) lands squarely on our weak-CPU box.
RTX 4060 Ti 16 GB + RTX 3060 12 GB, split 28/20,
--remote-expert-opt+--pipeline-windows 2+--pool-workers 11+--spec 4+presence_penalty: 0: 0.1.50 → 0.1.52 decode 40.6–41.6 → 55.3 tok/s (+34%), two bench rounds, both 55.3, same fixed prompts (400 tokens, temperature 0, prose + code), same machine load. This is at the top of the +15–37% range from the release notes — the 3060's page-in pressure is exactly what the router fix targets.Side note: the expert-cache hit-rate line in the log actually went down (85–93% → 84.3%) while speed went up 34%, which fits the "fewer page-ins beats a higher hit rate" framing in the notes.
--prefill-pipedid not help here (decode 52.6 vs 55.3, long-prompt prefill flat at ~300 tok/s warm both with and without it) — the +15–23% in the notes is measured on two A4000s; on this 4060 Ti + 3060 split we left it off.Cumulative on this rig: 0.1.43 → 0.1.50 (+3%) → +
--remote-expert-opt(+17%) → 0.1.52 (+34%) = ~+50% overall, now at 55 tok/s.@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you for re-testing on both rigs. Closing: the layer-split slowdown is gone in 0.2.6 (4x GTX 1080 Ti 52.8 to 62-65 tok/s) and 0.2.7 added +34% on the 4060 Ti + 3060 pair (40.6 to 55.3 tok/s), by your numbers.