mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4915] [Engine] --layer-split auto never trims CUDA0's dense weights: with an explicit split, 2x 2080 Ti gets +945 expert slots on CUDA0 and +6-12% decode #2258
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#2258
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 @rafatxf on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4915
Area
[Engine]
What do you want to do?
--trim-stage-weights/STRATA_STAGE_TRIM=1(#559, #639) never trims CUDA0 under--layer-split auto, which is the default:The comment above that line explains why. CUDA0's arena is built before the split search, and CUDA0 is "the cheapest card to leave alone". On a 2-card Qwen3.8-Flash-Next split that last part does not hold. CUDA0 is where most of the trim's VRAM is. Giving the split explicitly, so that CUDA0 trims too, is the largest decode gain I found on this rig.
I'd like CUDA0 to trim under
autoas well. One way is to load CUDA0's dense weights after the split search, as the later cards already do when the trim is asked. If that is too invasive, a startup line or setup hint that names the explicit splitautopicked would already help people find it.Rig and settings.
--max-context 393216 --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.7 --pcie-frac 0.30 --pipeline-windows 2 --resident-budget-gib 29 --adapt-async 1 --adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97.STRATA_SM75_PERF=1 STRATA_EXP_MODE=8 STRATA_IQ256_GATHER=1 STRATA_IQ_MT_MIN=1.--layer-split autopicks K=24 here, so the explicit arm is--layer-split 24.Expert-cache slots (engine log):
STRATA_STAGE_TRIM=1,--layer-split autoSTRATA_STAGE_TRIM=1,--layer-split 24Decode at 1024 new tokens, in tok/s. Each arm is a fresh engine with every arm starting from a dropped page cache. Run-to-run noise between engine starts is about ±5%. The CPU column is the CPU-lane expert computations for the code prompt.
auto(3)--layer-split 24(3)The explicit split cuts the CPU-lane expert computations by another 12-20% against
autoon every prompt. On this box the CPU lane sets the decode window: each layer waits about 0.2 ms for its 1-2 CPU experts.autofrom the explicit split.What do you do today instead?
I run
--layer-split 24explicitly withSTRATA_STAGE_TRIM=1. That works, but it gives upauto's re-planning when the context or the cards change.Reproduction status: measured locally on the rig above; every number is from my runs.