mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4687] [Engine] 0.2.7/0.2.8 defaults (layer-major prefill + pipelined batch) regress 4-slot prompt throughput on a 6-card sm_70 split, and take +8 GB of VRAM - persistent in 0.1.54 #2141
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#2141
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 @Barmallini on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4687
Reproduction status
Measured locally, A/B/A on one boot (three engine starts total, results stable across starts).
Related: filed after #4410 was closed as machine-specific. That report was single-stream decode on sm_75 and was retracted (thermal downclock + run-to-run noise on the reporter's side). This is a different effect: prompt reading and concurrent throughput on sm_70 with a 6-card layer split, deterministic, with large non-overlapping margins, plus an objective VRAM symptom.
Also related: #4292 (2× V100 sm_70, layer split): engine 0.1.51 already read a 32K prompt ~5% slower than 0.1.43.1 - a smaller, earlier step of what looks like the same prefill-on-V100-splits trend this report measures at 6 cards (−31% with the 0.2.7 defaults, −0% with
026).Hardware and config
-DCMAKE_CUDA_ARCHITECTURES=70--native,--batch 4, layer split9,18,27,35,43,--kv int8 --kv-resident 262144 --max-context 262144 --prefill auto:32768,--trim-stage-weights,--vision,STRATA_NO_LARGEPAGES=1A/B on engine 0.1.54 (v0.2.8), same boot
Reference on the same rig: 0.2.6 (0.1.51) + 026 = 129-134 s; 0.2.7 (0.1.52) as shipped = 240.7 s; 0.2.7 + 026 = 125.8 s. So the defaults cost −31% prompt throughput and +55% wall time at four concurrent 26K prompts, and the regression passed from 0.1.52 to 0.1.54 unchanged.
The VRAM symptom
With the new defaults the whole-box usage jumps 80 → 88 GB of 96 with identical arguments otherwise, and returns to 80 with
026. Per-card it is ~+1.3 GB everywhere. It looks like the layer-major prefill buffers and the pipelined batch windows stay allocated on all cards; on a 2-card A6000/A4000 rig that memory buys speed, here it appears to add contention over the PCIe crossing between the two NVLink islands.Which switch is guilty - not narrowed yet
The regression is prefill-side, which points at the layer-major prefill (documented for two CUDA cards; our split is six cards with a PCIe crossing between islands - far outside both of the release's measurements) and/or the pipelined batch default (same two-card provenance). I have not run single-switch isolation yet.
I can run it: on this rig a 4×26K batch takes ~2 minutes per arm. My planned order, on top of the shipped defaults, one variable at a time: (1)
STRATA_PREFILL_LAYER_MAJOR=0, (2)STRATA_BATCH_GROUPS_NV_SERIAL=1, (3) both. Say if a different order or a different protocol would be more useful.@Niko1221 commented on GitHub (Oct 31, 2026):
Thanks for the A/B on one boot. Your numbers are clear (197 s against 126.5 s, and 88 against 80 GB). The 0.2.7 defaults were measured on two cards and we have no six-card machine, so your rig is the only way to find out which switch does it. Yes, please run the isolation in the order you planned:
STRATA_PREFILL_LAYER_MAJOR=0, thenSTRATA_BATCH_GROUPS_NV_SERIAL=1, then both, on top of the shipped defaults. If one of them gets back to about 126 s and 80 GB, that tells us what to change for splits of more than two cards. Until then,STRATA_DEFAULTS=026is the right setting for you (in the Terminal's Advanced table: "Qwen: 0.2.6 behaviour").@Barmallini commented on GitHub (Oct 31, 2026):
Isolation results (0.2.9 / engine 0.1.55, built from source)
Ran the single-switch isolation you asked for, on top of the shipped 0.1.55 defaults, same test as before (4 concurrent ~25,955-token prompts through the OpenAI API, wall time per slot; 6x V100-SXM2-16GB, split 9/9/9/8/8/5, int8 KV resident 262K,
--parallel 4 --batch 4):STRATA_PREFILL_LAYER_MAJOR=0STRATA_BATCH_GROUPS_NV_SERIAL=1STRATA_DEFAULTS=026(our running profile)Conclusions
STRATA_PREFILL_LAYER_MAJORis the culprit. Turning just that one off recovers the full regression on this 6-card sm_70 split: 195.6 -> 124.4 s, within noise of 026's 122.4 s.STRATA_BATCH_GROUPS_NV_SERIALis not involved: with it alone the run stays at 190.3 s.Notes
LAYER_MAJOR=0runs those disappear, so the flag takes effect as expected on sm_70.STRATA_DEFAULTS=026(+ 0.2.9's checkpoint-reuse flags) for daily use; happy to test a build where layer-major is disabled (or re-tuned) for splits of more than two cards.@Barmallini commented on GitHub (Oct 31, 2026):
Isolation results (0.2.9 / engine 0.1.55, built from source)
Ran the single-switch isolation you asked for, on top of the shipped 0.1.55 defaults, same test as before (4 concurrent ~25,955-token prompts through the OpenAI API, wall time per slot; 6x V100-SXM2-16GB, split 9/9/9/8/8/5, int8 KV resident 262K,
--parallel 4 --batch 4):Conclusions
STRATA_PREFILL_LAYER_MAJORis the culprit. Turning just that one off recovers the full regression on this 6-card sm_70 split: 195.6 -> 124.4 s, within noise of 026's 122.4 s.STRATA_BATCH_GROUPS_NV_SERIALis not involved: with it alone the run stays at 190.3 s.Notes
LAYER_MAJOR=0runs those disappear, so the flag takes effect as expected on sm_70.STRATA_DEFAULTS=026(+ 0.2.9's checkpoint-reuse flags) for daily use; happy to test a build where layer-major is disabled (or re-tuned) for splits of more than two cards.