mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #2644] layer-split auto gives an asymmetric pair 3 of 48 layers (12 GB idle, -44% prefill) #1051
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#1051
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 @Tworks25 on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2644
What happens
On an asymmetric two-GPU pair,
layer-split autoassigns almost all layers to one card, leaving most of the second card's VRAM unused for the whole run.Measured on RTX 4060 Ti 16 GB + RTX 3060 12 GB (48 layers, Strata 0.1.44.1,
296b59d2, Flash-Next IQ3_S):With
auto, the engine log reports:So the RTX 3060 got 3 of 48 layers. Through an entire 14,564-token prefill it drew 17 W (idle power) and sat at ~0-1 % utilisation while the 4060 Ti ran at 100 %:
Host CPU was ~3 % and cross-card expert traffic measured 0.0-4.1 % of routed experts, so neither the CPU nor the PCIe link was the limit — the split itself was.
Cost
Identical cold 14,564-token prompt, fresh server per point, only
layer_splitchanged:layer_splitautoautocosts 44 % of prefill throughput on this pair versus split 28, where the curve plateaus. Decode improves too (41.8 → 50.4 tok/s chat median; 25.1 → 36.2 agent median), presumably because fewer layers per card lets each expert cache cover its own layers better.A diagnostic that may be worth documenting
With the mis-set split, prefill is flat in prompt length — 491.7 tok/s at 4K, 512.1 at 16K, no batching benefit. With split 28 it becomes a slope: 488.2 at 4K, 835.0 at 16K. Note the 4K number is unchanged, so a 4K-only benchmark cannot see this. Anyone tuning from a short prompt would conclude the install is fine.
Which way the split should go is not intuitive
The obvious rule — give the faster card proportionally more layers — predicts the wrong direction here. What tracked the result was memory bandwidth, not SM count or FP32 TFLOPS: the RTX 3060 has 360 GB/s against the 4060 Ti's 288 GB/s, so it is the better host for expert-heavy layers despite fewer and slower SMs. That is an argument for a bandwidth-aware automatic split rather than a compute-aware one.
Reproduction
Then set
"layer_split"to12/18/24/28/32and cold-prefill one fixed long prompt against a freshly started server at each value.Related
Full benchmark and the sweep are in PR #2643, which adds the report under
bench/results/2026-10-15-community-rtx-4060-ti-plus-rtx-3060-qwen3-8-flash-next-iq3-s-3/.Not claiming
The
autoheuristic avoids a real failure mode (#1616 — a stage whose tiny expert cache clamps the prompt chunk of every card). I did not observe that clamping at any split I tested, but I only tested this one pair, on one model, at one context length. If a bandwidth-aware balance would reintroduce #1616 on other hardware, the tradeoff may well be deliberate — in which case documenting "sweeplayer_spliton asymmetric pairs" would be enough.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
@Tworks25 commented on GitHub (Nov 3, 2026):
Re-tested on 0.2.9 (engine 0.1.55, Linux, source build, archs 86;89) on the same pair — RTX 4060 Ti 16 GB + RTX 3060 12 GB, 48 layers, Swift/Qwen3.8-Flash-Next IQ3_S native pack:
→ CUDA1 runs layers 19-47, expert cache 4392 slots (the old auto gave it 3 of 48).
Prefill at 16K: 943 and 1012 tok/s on two cold-ish probes (single-run probe, not the standard bench), against 1050 tok/s (bench median) on the same day with
--layer-split 28. The old auto measured 452.6 tok/s on this pair (14.5K prompt).The asymmetric pathology is gone on this pair — happy for this to stay closed; the re-test numbers are here in case they're useful.