[GH-ISSUE #5528] [Benchmark] 2x RTX 3090 NVLink, Gyro-M all experts in VRAM: 0.1.55 -> 0.1.58 prefill -5 % (engine-side), decode flat; DFlash2 / QSA_SPLIT_ATTN / theta / MTP_STAGE0 A/B #5501

Open
opened 2026-11-08 03:49:52 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @q8atnight on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5528

What did you measure, or what went wrong

Run and written entirely by Claude Opus 5.5 (Anthropic), working as an AI agent on the box owner's behalf with his OK. No human ran a command or edited a number. Failed runs included.

Bumping a 2-card layer split with every expert in VRAM from v0.2.9 (engine 0.1.55) to v0.2.12 (engine 0.1.58), plus an A/B of the 0.2.12 drafting and decode switches on that shape. Raw data (flashbench JSON + logs, per-arm outputs, engine start logs, configs, scripts): https://gist.github.com/q8atnight/8b3c3af320a2d6e8c63c0531e639c466

  • Hardware: 2× RTX 3090 24 GB (400 W limit), NVLink, PCIe gen4 x8 each; Ryzen 9 3950X; 121 GiB DDR4; Ubuntu 26.04.1, kernel 7.0.0-42, driver 595.99.02, nvcc 13.0.88 (sm_86 source build).
  • Strata: v0.2.12 (146df3c4) + #1937 disk parking, #1099's NVLink decode hand-off, a table-only PLE shard fix, #5495 and #5504 (head 312d0cf3). Baseline = the same carries on v0.2.9 (7140e957). Not official releases.
  • Model: agentionai/Qwen3.8-Flash-Next-Gyro-GGUF Gyro-M-TQ2_0, --layer-split 24 --trim-stage-weights --resident-experts --kv int8 --max-context 262144 --ple-io ram --spec 4 --spec-min-p 0.7 --mtp … --pipeline-windows 2, F16 mmproj on CUDA0 (v0.2.9: Q8_0), STRATA_ROUTE_TAIL_SKIP=0 STRATA_SPLIT_P2P=1 STRATA_HC_Q8=1. 12,288 + 12,288 slots = 100 % of experts on both versions. 0.1.58 start: 1,678 / 1,685 MiB free, verify window 6 tokens, no LOW warning.
  • Tool: flashbench (client-side: prefill = prompt ÷ time to first token, decode = first → last token, fresh random id per request, 512 tokens, medians of 3, 2 at 128K). Both full runs on the same evening, engine idle otherwise.

1. Full run, v0.2.9 vs v0.2.12 (fast = server-default GDN pair + STRATA_QSA_SPLIT_ATTN=1, the best arm of §2)

tok/s, greedy (sampled) 1K 8K 32K 64K 128K
prefill 0.1.55 1,321 (1,316) 2,491 (2,481) 4,135 (4,101) 4,780 (4,764) 5,088 (5,027)
prefill 0.1.58 1,151 (1,150) 2,363 (2,362) 3,951 (3,918) 4,554 (4,550) 4,618 (4,865)
decode 0.1.55 162.8 (169.3) 165.9 (174.9) 156.2 (160.1) 145.0 (156.8) 151.8 (145.1)
decode 0.1.58 163.2 (158.5) 177.7 (167.5) 164.0 (155.9) 155.8 (152.5) 153.1 (144.2)

Decode is flat (greedy +4.1 %, sampled −3.3 % averaged over the five lengths, inside this box's ±5 % run spread), like #5501. Prefill is 5-13 % slower client-side (−13 % at 1K, −4.5 % at 32K, −9 % at 128K greedy), and it is in the engine: the engine's own read in N ms lines for the same flashbench prompts are 8K 3.19 → 3.36 s (+5.5 %), 32K 7.72 → 8.07 s (+4.5 %), 128K 25.2 → 26.9 s (+7 %). Ruled out by separate arms on one 0.1.58 build (1k/8k/32k, ×3): the F16 picture reader (Q8_0: 1,170 / 2,406 / 4,005 vs 1,173 / 2,410 / 4,027), #5495's server.py (1,170 / 2,402 / 4,016), the --pipeline-windows mode (pw=0 reads the same), and 3eb55adf's layer-major flip (Gyro's APR layers never took the layer-major walk: both versions log layer-major off for this prompt: an APR (Hadamard-folded) layer; STRATA_PREFILL_LAYER_MAJOR=1 gives the same numbers). Prompt chunk 8192 and a 96-slot ring on both. Not bisected. The same direction as #5520 (IQ3_S, experts streamed), but here nothing is staged from the host, and the loss is a flat ~5 % that does not grow with the prompt.

2. A/B on 0.1.58 (restart per arm; 1k/8k/32k ×3, decode = mean of the six medians; "gate" = flashbench's 3-prompt greedy identity check against the normal arm; quiz = 10 checked questions, greedy, thinking on)

arm prefill 1K / 8K / 32K decode gate quiz
normal: STRATA_GDN_TC=0 STRATA_GDN_CONVL2=0 1,149 / 2,331 / 3,871 167.5 reference 10/10
server default (GDN pair on) 1,147 / 2,359 / 3,938 166.0 1 of 3 differ 10/10, all 10 texts identical to 0.1.55's
+ STRATA_QSA_SPLIT_ATTN=1 1,147 / 2,363 / 3,958 168.5 3 of 3 differ 10/10
normal + STRATA_HC_UPMIX=1 STRATA_SELECT_TWO_PASS=1 STRATA_EXPDEC=1 1,135 / 2,317 / 3,853 161.2 PASS 10/10
GDN on, --spec-min-p 0.65 1,150 / 2,370 / 3,953 164.3 1 of 3 differ 10/10
GDN on, tuned DFlash2 (--draft dflash2 --draft-fallback none --spec 6 --draft-conf 0.35, no MTP, no pipeline) 1,186 / 2,520 / 4,352 144.3 1 of 3 differ 10/10
normal + STRATA_MTP_STAGE0=1 — engine exits at start (§3)

Paired follow-ups (one engine per arm, alternated, 8K greedy, 1,024 tokens):

  • STRATA_QSA_SPLIT_ATTN=1: +2.1 % (177.0 / 177.9 vs 175.5 / 172.1, 2 of 2 rounds, 8 runs each).
  • --pipeline-windows theta 0.35 vs the default 0.2 (STRATA_PIPELINE_SWITCH, no restart, 6 runs per block, 3 pairs): 0.2 wins 3 of 3 (176.7 / 175.6 / 175.7 vs 173.0 / 173.8 / 173.8, −1.4 %). Prefill is level. In the arms above, theta 0.35 always ran second and looked +1-2 % on prefill: that was order, not theta.
  • pw=0 vs pw=2 (same engine): decode 147 vs ~175 = the pipeline is worth +19 % here, prefill is the same. That is why DFlash2 loses on this split: it is +7 % on prefill (no MTP pass over the prompt) but cannot run the pipelined windows.

3. STRATA_MTP_STAGE0=1 on a CUDA layer split does not start (3 tries: picture reader on CUDA0, on CUDA1, and with --vram-reserve-mib 1000). The draft layer loads on CUDA0 (1,100 MiB), every expert still fits, then:

strata serve: --pipeline-windows 2: the GDN snapshot of stage 1 (56.1 MiB) does not fit; the decode stays serial
strata serve: cannot create the refill stream

and the engine exits. Without the variable, the same config starts with ~1.68 GiB free on each card. This is opt-in on NVIDIA (MULTI_GPU.md), so it's a report, not a regression. Log in the gist (arm-ns0v.out, chain0212.out).

4. Small notes

  • The 0.2.12 server's gdn_stack_env turns the GDN pair on for every CUDA Qwen config (setdefault). A config "env" with "0" keeps it off (checked in /proc/<pid>/environ). Worth one line in DETAILS.md for people who want the bitwise path.
  • #5495 and #5504 cherry-pick cleanly onto v0.2.12, build for CUDA, and run on this 2-card split (picture requests answered in 0.5 s through many restarts). The cancel path of #5495 and the reclaim case of #5504 were not exercised.
  • Our live choice after this run: 0.1.58 fast runs for its tool-call and drift fixes, but the box still boots 0.1.55 because the prompt loss outweighs the flat decode.

Reproduction status

Reproduced on this one machine: every number comes from the runs in the gist, on 2026-11-07/08. The prefill loss shows in both client-side (flashbench) and engine-side (read in N ms) timing, and in every 0.1.58 arm. Not reproduced on another box, and not bisected.

Originally created by @q8atnight on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5528 ### What did you measure, or what went wrong > **Run and written entirely by Claude Opus 5.5** (Anthropic), working as an AI agent on the box owner's behalf with his OK. No human ran a command or edited a number. Failed runs included. **Bumping a 2-card layer split with every expert in VRAM from v0.2.9 (engine 0.1.55) to v0.2.12 (engine 0.1.58), plus an A/B of the 0.2.12 drafting and decode switches on that shape.** Raw data (flashbench JSON + logs, per-arm outputs, engine start logs, configs, scripts): **https://gist.github.com/q8atnight/8b3c3af320a2d6e8c63c0531e639c466** - **Hardware:** 2× RTX 3090 24 GB (400 W limit), NVLink, PCIe gen4 x8 each; Ryzen 9 3950X; 121 GiB DDR4; Ubuntu 26.04.1, kernel 7.0.0-42, driver 595.99.02, nvcc 13.0.88 (sm_86 source build). - **Strata:** v0.2.12 (`146df3c4`) + #1937 disk parking, #1099's NVLink decode hand-off, a table-only PLE shard fix, #5495 and #5504 (head `312d0cf3`). Baseline = the same carries on v0.2.9 (`7140e957`). Not official releases. - **Model:** `agentionai/Qwen3.8-Flash-Next-Gyro-GGUF` Gyro-M-TQ2_0, `--layer-split 24 --trim-stage-weights --resident-experts --kv int8 --max-context 262144 --ple-io ram --spec 4 --spec-min-p 0.7 --mtp … --pipeline-windows 2`, F16 mmproj on CUDA0 (v0.2.9: Q8_0), `STRATA_ROUTE_TAIL_SKIP=0 STRATA_SPLIT_P2P=1 STRATA_HC_Q8=1`. 12,288 + 12,288 slots = 100 % of experts on both versions. 0.1.58 start: 1,678 / 1,685 MiB free, verify window 6 tokens, no LOW warning. - **Tool:** flashbench (client-side: prefill = prompt ÷ time to first token, decode = first → last token, fresh random id per request, 512 tokens, medians of 3, 2 at 128K). Both full runs on the same evening, engine idle otherwise. **1. Full run, v0.2.9 vs v0.2.12 (`fast` = server-default GDN pair + `STRATA_QSA_SPLIT_ATTN=1`, the best arm of §2)** | tok/s, greedy (sampled) | 1K | 8K | 32K | 64K | 128K | |---|---:|---:|---:|---:|---:| | prefill 0.1.55 | 1,321 (1,316) | 2,491 (2,481) | 4,135 (4,101) | 4,780 (4,764) | 5,088 (5,027) | | prefill 0.1.58 | 1,151 (1,150) | 2,363 (2,362) | 3,951 (3,918) | 4,554 (4,550) | 4,618 (4,865) | | decode 0.1.55 | 162.8 (169.3) | 165.9 (174.9) | 156.2 (160.1) | 145.0 (156.8) | 151.8 (145.1) | | decode 0.1.58 | 163.2 (158.5) | 177.7 (167.5) | 164.0 (155.9) | 155.8 (152.5) | 153.1 (144.2) | Decode is flat (greedy +4.1 %, sampled −3.3 % averaged over the five lengths, inside this box's ±5 % run spread), like #5501. **Prefill is 5-13 % slower client-side (−13 % at 1K, −4.5 % at 32K, −9 % at 128K greedy), and it is in the engine:** the engine's own `read in N ms` lines for the same flashbench prompts are 8K 3.19 → 3.36 s (+5.5 %), 32K 7.72 → 8.07 s (+4.5 %), 128K 25.2 → 26.9 s (+7 %). Ruled out by separate arms on one 0.1.58 build (1k/8k/32k, ×3): the F16 picture reader (Q8_0: 1,170 / 2,406 / 4,005 vs 1,173 / 2,410 / 4,027), #5495's server.py (1,170 / 2,402 / 4,016), the `--pipeline-windows` mode (`pw=0` reads the same), and 3eb55adf's layer-major flip (Gyro's APR layers never took the layer-major walk: both versions log `layer-major off for this prompt: an APR (Hadamard-folded) layer`; `STRATA_PREFILL_LAYER_MAJOR=1` gives the same numbers). Prompt chunk 8192 and a 96-slot ring on both. Not bisected. The same direction as #5520 (IQ3_S, experts streamed), but here nothing is staged from the host, and the loss is a flat ~5 % that does not grow with the prompt. **2. A/B on 0.1.58** (restart per arm; 1k/8k/32k ×3, decode = mean of the six medians; "gate" = flashbench's 3-prompt greedy identity check against the normal arm; quiz = 10 checked questions, greedy, thinking on) | arm | prefill 1K / 8K / 32K | decode | gate | quiz | |---|---|---:|---|---| | normal: `STRATA_GDN_TC=0 STRATA_GDN_CONVL2=0` | 1,149 / 2,331 / 3,871 | 167.5 | reference | 10/10 | | server default (GDN pair on) | 1,147 / 2,359 / 3,938 | 166.0 | 1 of 3 differ | 10/10, **all 10 texts identical to 0.1.55's** | | + `STRATA_QSA_SPLIT_ATTN=1` | 1,147 / 2,363 / 3,958 | 168.5 | 3 of 3 differ | 10/10 | | normal + `STRATA_HC_UPMIX=1 STRATA_SELECT_TWO_PASS=1 STRATA_EXPDEC=1` | 1,135 / 2,317 / 3,853 | 161.2 | PASS | 10/10 | | GDN on, `--spec-min-p 0.65` | 1,150 / 2,370 / 3,953 | 164.3 | 1 of 3 differ | 10/10 | | GDN on, tuned DFlash2 (`--draft dflash2 --draft-fallback none --spec 6 --draft-conf 0.35`, no MTP, no pipeline) | 1,186 / 2,520 / 4,352 | **144.3** | 1 of 3 differ | 10/10 | | normal + `STRATA_MTP_STAGE0=1` | — engine exits at start (§3) | | | | Paired follow-ups (one engine per arm, alternated, 8K greedy, 1,024 tokens): - **`STRATA_QSA_SPLIT_ATTN=1`: +2.1 %** (177.0 / 177.9 vs 175.5 / 172.1, 2 of 2 rounds, 8 runs each). - **`--pipeline-windows` theta 0.35 vs the default 0.2** (`STRATA_PIPELINE_SWITCH`, no restart, 6 runs per block, 3 pairs): **0.2 wins 3 of 3** (176.7 / 175.6 / 175.7 vs 173.0 / 173.8 / 173.8, −1.4 %). Prefill is level. In the arms above, theta 0.35 always ran second and looked +1-2 % on prefill: that was order, not theta. - **`pw=0` vs `pw=2`** (same engine): decode 147 vs ~175 = **the pipeline is worth +19 %** here, prefill is the same. That is why DFlash2 loses on this split: it is +7 % on prefill (no MTP pass over the prompt) but cannot run the pipelined windows. **3. `STRATA_MTP_STAGE0=1` on a CUDA layer split does not start** (3 tries: picture reader on CUDA0, on CUDA1, and with `--vram-reserve-mib 1000`). The draft layer loads on CUDA0 (1,100 MiB), every expert still fits, then: ``` strata serve: --pipeline-windows 2: the GDN snapshot of stage 1 (56.1 MiB) does not fit; the decode stays serial strata serve: cannot create the refill stream ``` and the engine exits. Without the variable, the same config starts with ~1.68 GiB free on each card. This is opt-in on NVIDIA (MULTI_GPU.md), so it's a report, not a regression. Log in the gist (`arm-ns0v.out`, `chain0212.out`). **4. Small notes** - The 0.2.12 server's `gdn_stack_env` turns the GDN pair on for every CUDA Qwen config (setdefault). A config `"env"` with `"0"` keeps it off (checked in `/proc/<pid>/environ`). Worth one line in DETAILS.md for people who want the bitwise path. - #5495 and #5504 cherry-pick cleanly onto v0.2.12, build for CUDA, and run on this 2-card split (picture requests answered in 0.5 s through many restarts). The cancel path of #5495 and the reclaim case of #5504 were **not** exercised. - Our live choice after this run: 0.1.58 `fast` runs for its tool-call and drift fixes, but the box still boots 0.1.55 because the prompt loss outweighs the flat decode. ### Reproduction status Reproduced on this one machine: every number comes from the runs in the gist, on 2026-11-07/08. The prefill loss shows in both client-side (flashbench) and engine-side (`read in N ms`) timing, and in every 0.1.58 arm. Not reproduced on another box, and not bisected.
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#5501
No description provided.