[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

Open
opened 2026-11-04 01:57:00 +07:00 by bsakaguchi · 3 comments
Owner

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

  • 6× Tesla V100-SXM2-16GB (sm_70): cards 0-3 one NVLink island, cards 4-5 the second pair, one PCIe crossing between the islands; VM on Proxmox (CPU type=host, NUMA on), 88 GB RAM, engine from source, CUDA 12, -DCMAKE_CUDA_ARCHITECTURES=70
  • Qwen3.8-Flash-Next GSQ-RCO IQ3_S + --native, --batch 4, layer split 9,18,27,35,43, --kv int8 --kv-resident 262144 --max-context 262144 --prefill auto:32768, --trim-stage-weights, --vision, STRATA_NO_LARGEPAGES=1
  • Load: 4 concurrent streaming clients, prompts of 25,955 tokens each, four runs per arm, per-slot results identical within an arm

A/B on engine 0.1.54 (v0.2.8), same boot

STRATA_DEFAULTS | 4 prompts, total | prompt read, per slot | whole-box VRAM -- | -- | -- | -- unset (0.2.8 defaults) | 197.0 s | 578-581 tok/s | 88 / 96 GB 026 | 126.5 s | 845-867 tok/s | 80 / 96 GB

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.

Originally created by @Barmallini on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4687 <h2>Reproduction status</h2> <p>Measured locally, A/B/A on one boot (three engine starts total, results stable across starts).</p> <p>Related: filed after #4410 was closed as machine-specific. That report was single-stream <strong>decode</strong> on sm_75 and was retracted (thermal downclock + run-to-run noise on the reporter's side). This is a different effect: <strong>prompt reading and concurrent throughput</strong> on sm_70 with a <strong>6-card</strong> layer split, deterministic, with large non-overlapping margins, plus an objective VRAM symptom.</p> <p>Also related: <strong>#4292</strong> (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 <code>026</code>).</p> <h2>Hardware and config</h2> <ul><li>6× Tesla V100-SXM2-16GB (sm_70): cards 0-3 one NVLink island, cards 4-5 the second pair, one PCIe crossing between the islands; VM on Proxmox (CPU type=host, NUMA on), 88 GB RAM, engine from source, CUDA 12, <code>-DCMAKE_CUDA_ARCHITECTURES=70</code></li><li>Qwen3.8-Flash-Next GSQ-RCO IQ3_S + <code>--native</code>, <code>--batch 4</code>, layer split <code>9,18,27,35,43</code>, <code>--kv int8 --kv-resident 262144 --max-context 262144 --prefill auto:32768</code>, <code>--trim-stage-weights</code>, <code>--vision</code>, <code>STRATA_NO_LARGEPAGES=1</code></li><li>Load: 4 concurrent streaming clients, prompts of 25,955 tokens each, four runs per arm, per-slot results identical within an arm</li></ul> <h2>A/B on engine 0.1.54 (v0.2.8), same boot</h2> <div class="_tableScroll_rve47_199 md-table-wide" tabindex="0"> STRATA_DEFAULTS | 4 prompts, total | prompt read, per slot | whole-box VRAM -- | -- | -- | -- unset (0.2.8 defaults) | 197.0 s | 578-581 tok/s | 88 / 96 GB 026 | 126.5 s | 845-867 tok/s | 80 / 96 GB </div> <p>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 <strong>−31% prompt throughput and +55% wall time</strong> at four concurrent 26K prompts, and the regression passed from 0.1.52 to 0.1.54 unchanged.</p> <h2>The VRAM symptom</h2> <p>With the new defaults the whole-box usage jumps <strong>80 → 88 GB of 96</strong> with identical arguments otherwise, and returns to 80 with <code>026</code>. 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.</p> <h2>Which switch is guilty - not narrowed yet</h2> <p>The regression is prefill-side, which points at the layer-major prefill (documented for <strong>two</strong> 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.</p> <p>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) <code>STRATA_PREFILL_LAYER_MAJOR=0</code>, (2) <code>STRATA_BATCH_GROUPS_NV_SERIAL=1</code>, (3) both. Say if a different order or a different protocol would be more useful.</p>
Author
Owner

@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, then STRATA_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=026 is the right setting for you (in the Terminal's Advanced table: "Qwen: 0.2.6 behaviour").

<!-- gh-comment-id:6542509803 --> @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`, then `STRATA_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=026` is the right setting for you (in the Terminal's Advanced table: "Qwen: 0.2.6 behaviour").
Author
Owner

@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):

Configuration Wall time VRAM used (nvidia-smi at peak)
shipped 0.1.55 defaults 195.6 s 13.2–13.9 GiB per card
defaults + STRATA_PREFILL_LAYER_MAJOR=0 124.4 s 13.2–13.9 GiB per card
defaults + STRATA_BATCH_GROUPS_NV_SERIAL=1 190.3 s 13.2–13.9 GiB per card
both flags 123.3 s 13.2–13.9 GiB per card
STRATA_DEFAULTS=026 (our running profile) 122.4 s 13.1–13.9 GiB per card

Conclusions

  • STRATA_PREFILL_LAYER_MAJOR is 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_SERIAL is not involved: with it alone the run stays at 190.3 s.
  • Both flags together behave like layer-major-off alone (123.3 s), i.e. the effects are not additive — layer-major accounts for everything.
  • On 0.1.55 we do not see the +8 GB VRAM difference that the 0.2.8 defaults showed (expert cache fills to 100% residency in every configuration above; VRAM per card stays ~13.2–13.9 GiB used). The 88-vs-80 GB figure was from our 0.2.8 runs; on 0.1.55 the VRAM side looks fixed or at least masked.

Notes

  • Every number above is a clean run (no compilation or other load on the box; we initially had one contaminated run and re-measured).
  • The engine prints layer-major super-chunk lines on the defaults path; on LAYER_MAJOR=0 runs those disappear, so the flag takes effect as expected on sm_70.
  • Staying on 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.

<!-- gh-comment-id:6543034666 --> @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`): | Configuration | Wall time | VRAM used (nvidia-smi at peak) | |---|---|---| | shipped 0.1.55 defaults | 195.6 s | 13.2–13.9 GiB per card | | defaults + `STRATA_PREFILL_LAYER_MAJOR=0` | **124.4 s** | 13.2–13.9 GiB per card | | defaults + `STRATA_BATCH_GROUPS_NV_SERIAL=1` | 190.3 s | 13.2–13.9 GiB per card | | both flags | 123.3 s | 13.2–13.9 GiB per card | | `STRATA_DEFAULTS=026` (our running profile) | 122.4 s | 13.1–13.9 GiB per card | ### Conclusions - **`STRATA_PREFILL_LAYER_MAJOR` is 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_SERIAL` is not involved**: with it alone the run stays at 190.3 s. - Both flags together behave like layer-major-off alone (123.3 s), i.e. the effects are not additive — layer-major accounts for everything. - On 0.1.55 we do not see the +8 GB VRAM difference that the 0.2.8 defaults showed (expert cache fills to 100% residency in every configuration above; VRAM per card stays ~13.2–13.9 GiB used). The 88-vs-80 GB figure was from our 0.2.8 runs; on 0.1.55 the VRAM side looks fixed or at least masked. ### Notes - Every number above is a clean run (no compilation or other load on the box; we initially had one contaminated run and re-measured). - The engine prints layer-major super-chunk lines on the defaults path; on `LAYER_MAJOR=0` runs those disappear, so the flag takes effect as expected on sm_70. - Staying on `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. ---
Author
Owner

@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):

Configuration | Wall time | VRAM used (nvidia-smi at peak) -- | -- | -- shipped 0.1.55 defaults | 195.6 s | 13.2–13.9 GiB per card defaults + STRATA_PREFILL_LAYER_MAJOR=0 | 124.4 s | 13.2–13.9 GiB per card defaults + STRATA_BATCH_GROUPS_NV_SERIAL=1 | 190.3 s | 13.2–13.9 GiB per card both flags | 123.3 s | 13.2–13.9 GiB per card STRATA_DEFAULTS=026 (our running profile) | 122.4 s | 13.1–13.9 GiB per card

Conclusions

  • STRATA_PREFILL_LAYER_MAJOR is 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_SERIAL is not involved: with it alone the run stays at 190.3 s.
  • Both flags together behave like layer-major-off alone (123.3 s), i.e. the effects are not additive — layer-major accounts for everything.
  • On 0.1.55 we do not see the +8 GB VRAM difference that the 0.2.8 defaults showed (expert cache fills to 100% residency in every configuration above; VRAM per card stays ~13.2–13.9 GiB used). The 88-vs-80 GB figure was from our 0.2.8 runs; on 0.1.55 the VRAM side looks fixed or at least masked.

Notes

  • Every number above is a clean run (no compilation or other load on the box; we initially had one contaminated run and re-measured).
  • The engine prints layer-major super-chunk lines on the defaults path; on LAYER_MAJOR=0 runs those disappear, so the flag takes effect as expected on sm_70.
  • Staying on 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.

<!-- gh-comment-id:6550631550 --> @Barmallini commented on GitHub (Oct 31, 2026): <h2>Isolation results (0.2.9 / engine 0.1.55, built from source)</h2> <p>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, <code>--parallel 4 --batch 4</code>):</p> <div class="_tableScroll_rve47_199 _tableFill_rve47_252"> Configuration | Wall time | VRAM used (nvidia-smi at peak) -- | -- | -- shipped 0.1.55 defaults | 195.6 s | 13.2–13.9 GiB per card defaults + STRATA_PREFILL_LAYER_MAJOR=0 | 124.4 s | 13.2–13.9 GiB per card defaults + STRATA_BATCH_GROUPS_NV_SERIAL=1 | 190.3 s | 13.2–13.9 GiB per card both flags | 123.3 s | 13.2–13.9 GiB per card STRATA_DEFAULTS=026 (our running profile) | 122.4 s | 13.1–13.9 GiB per card </div> <h3>Conclusions</h3> <ul><li><strong><code>STRATA_PREFILL_LAYER_MAJOR</code> is the culprit.</strong> Turning just that one off recovers the full regression on this 6-card sm_70 split: 195.6 -&gt; 124.4 s, within noise of 026's 122.4 s.</li><li><strong><code>STRATA_BATCH_GROUPS_NV_SERIAL</code> is not involved</strong>: with it alone the run stays at 190.3 s.</li><li>Both flags together behave like layer-major-off alone (123.3 s), i.e. the effects are not additive — layer-major accounts for everything.</li><li>On 0.1.55 we do not see the +8 GB VRAM difference that the 0.2.8 defaults showed (expert cache fills to 100% residency in every configuration above; VRAM per card stays ~13.2–13.9 GiB used). The 88-vs-80 GB figure was from our 0.2.8 runs; on 0.1.55 the VRAM side looks fixed or at least masked.</li></ul> <h3>Notes</h3> <ul><li>Every number above is a clean run (no compilation or other load on the box; we initially had one contaminated run and re-measured).</li><li>The engine prints layer-major super-chunk lines on the defaults path; on <code>LAYER_MAJOR=0</code> runs those disappear, so the flag takes effect as expected on sm_70.</li><li>Staying on <code>STRATA_DEFAULTS=026</code> (+ 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.</li></ul> <hr>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2141
No description provided.