mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1576] [Bug]: 0.1.41 auto card order starves the smaller card on a VRAM-asymmetric pair (12 GB fast + 22 GB slow) #633
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#633
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 @sankerXD on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1576
What happened
v0.1.41's new automatic card order (#1352) reorders our two GPUs so the faster card runs the last stage, and the auto layer split follows. On our pair — a fast but small card plus a slower but big card — this puts the head/draft stage on the card that can least afford it:
"gpu": [0,1]: the 4070 Ti 12 GB ran layers 0-28; the 2080 Ti 22 GB ran layers 29-47 + head + draft, with ~7,000 expert-cache slots (~14 GiB) on the last stage.a card this small can serve as a helper expert cache instead of a split stage.Measured effects:
"gpu_order": "as_given"restored a healthy layout: auto split picked 0-33 / 34-47 with 6,882 slots (13.97 GiB) on the last stage, ~582 MiB VRAM free, decode and canary output back to normal.Suggestion: when reordering for an auto split, weigh the last stage's extra VRAM cost (head + draft + verify + cache floor) against each card's free VRAM — or keep the given order when the reordered last stage would land below some cache-slot / free-VRAM floor (the "card this small" warning firing right after the auto placement is a ready-made signal). Alternatively keep the reorder but let the split compensate: the reordered run gave the 22 GB card only 17 layers while the 12 GB card carried 31 + head.
Strata version, GPU, OS
Config (sanitized; pack = Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S)
Engine log (relevant excerpts)
Not tested:
--batch(unused); a manual split under the new order; whether the output drift came from the layer-to-card reassignment itself or from the starved cache changing the resident expert set — we only verified thatas_givenrestored both speed and canary quality.@sankerXD commented on GitHub (Oct 8, 2026):
strata-iq3_s-lastrun.log
@Niko1221 commented on GitHub (Oct 10, 2026):
Thanks for the logs and for PR #1590. We took it (your authorship kept): the 0.1.41 auto card order (faster card last) is now skipped when it would put the last stage on a card with less total VRAM than the card the config put there, so your 12 GB 4070 Ti no longer ends up with the head, the draft layer, the verify and a 3 GiB cache. Cards we cannot read keep the old behaviour, equal cards keep today's order and output, and "gpu_order": "as_given" still keeps the config's order. It is in v0.1.42. Please re-test with your pair when it is out and tell us the layer split line and the decode speed.
@MarsLuay commented on GitHub (Oct 13, 2026):
Retested the mixed pair on Strata v0.1.43.1 CUDA 12 (Windows/WDDM): RTX 3080 Ti 12 GB (CUDA0) + Tesla V100 32 GB PCIe (CUDA1), Qwen3.8-Flash-Next GSQ-RCO IQ3_S, 131,072-token context,
--spec 4 --mtp, 10,060-token prompts, 128 greedy output tokens. Two measured requests per arm after warm-up.With
layer_split: auto:The V100 (CUDA1) retained the larger stage and cache (12,057 slots / 24.22 GiB); the RTX stage had 2,209 slots / 3.98 GiB. Decode was 58.7 and 63.1 tok/s (60.9 mean); prompt read was 1,133.5 and 1,177.9 tok/s (1,155.7 mean).
With
"gpu_order": "as_given", the same0-23 / 24-47split was selected. Decode was 58.9 and 68.5 tok/s (63.7 mean); prompt read was 1,099.7 and 1,110.9 tok/s (1,105.3 mean).No request or verification errors occurred. The v0.1.43.1 auto-order result correctly kept the head/draft/verify stage on the larger-VRAM V100 in this pair.
@sankerXD commented on GitHub (Oct 13, 2026):
@Niko1221 here are the results you asked for.
Retested on v0.1.43.1 (release engine, CUDA 13.0, Windows 11, 64 GB RAM) with the original pair: RTX 4070 Ti 12 GB (GPU0, PCIe gen2 x16) + RTX 2080 Ti 22 GB (GPU1, PCIe gen3 x4). Same config as in the report (IQ3_S,
--spec 4 --mtp, 524288 ctx with yarn x2,--pipeline-windows 2,STRATA_PREFILL_HELP=1), with"gpu_order": "as_given"removed, so the default order path ran.The fix works: the 4070 Ti stays CUDA0 and the 22 GB card keeps the last stage.
The "a card this small can serve as a helper expert cache" warning and the chunk cut to 4608 are both gone.
as_given(same day)Follow-up turns in the same session (31K-52K context) decoded at 62-94 tok/s. Our SVG canary (pelican on a bicycle) came out correct again.
Notes:
STRATA_ROUTE_TAIL_SKIP=7, which is on in both 0.1.43.1 arms. The two arms also generated different lengths, so read the speed comparison as rough.keeping card order ... (#1576)line goes to the server console, not the engine log. I inferred the kept order fromGPU 0: RTX 4070 Ti(it was the 2080 Ti under 0.1.41).--vram-reserve-mibseparately.Not tested:
--batch, the--layer-split 37near-tie alternative, our other two dual-card configs (still onas_given).This matches @MarsLuay's result above on a 3080 Ti 12 GB + V100 32 GB pair: the larger card keeps the last stage on both pairs.
Thanks for the quick fix!