[PR #4737] [CLOSED] [Engine] overlap mixer work by default on DGX Spark #5152

Closed
opened 2026-11-07 16:33:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4737
Author: @InB4DevOps
Created: 10/30/2026
Status: ❌ Closed

Base: main ← Head: perf/sm121-side-mixer


📄 Description

Problem and result

DGX Spark's sm_121 table did not select the existing exact side-mixer scheduling path. Mode 2 moves input-only QSA/GDN work onto branches of the verify graph without changing its arithmetic.

On one NVIDIA GB10, a fixed-work 512-token Qwen3.8-Flash-Next IQ3_S full-engine decode measured +6.681% paired median throughput and +6.670% geometric mean over eight balanced pairs, with 7/8 wins. Both execution orders exceeded 3% (AB +11.602% median, BA +6.681%). Every run had the same output hash and verifier work; no errors or OOMs occurred.

Change

Set STRATA_SIDE_MIXER=2 in the compute-capability 12.1 source-default table and update its focused test and DGX Spark documentation.

The existing controls are preserved:

  • STRATA_SM121_PERF=0 disables the sm_121 table.
  • STRATA_DEFAULTS=026 disables the sm_121 table.
  • An explicit STRATA_SIDE_MIXER value remains higher priority.
  • Other CUDA architectures are unchanged.

The benchmark forced the same STRATA_EXP_MODE=8 in both arms, so this is the incremental result atop the grouped-expert mode in #4699. This PR remains a separate source change against main and does not contain that optimization.

Fixed-work benchmark

  • Date/hardware: 30 October 2026, NVIDIA GB10 (DGX Spark, sm_121)
  • Model: Qwen3.8-Flash-Next IQ3_S
  • Comparison: STRATA_SIDE_MIXER=0 vs STRATA_SIDE_MIXER=2
  • Shared controls: STRATA_SM121_PERF=1 STRATA_EXP_MODE=8 STRATA_SPEC_T_CYCLE=4
  • Work: 512 fixed continuation tokens, --spec 4 --spec-min-p 0.5, 16 fresh processes
  • Pair order: AB, BA, AB, BA, AB, BA, AB, BA
  • Baseline median: 67.982 tok/s
  • Mode-2 median: 75.549 tok/s

Pair throughput ratios (mode 2 / mode 0):

+30.205%  +3.212%  -23.938%  +2.826%
 +2.819% +16.974%  +20.385% +10.150%

Acceptance statistics:

  • paired median: +6.681%
  • geometric mean: +6.670%
  • AB median: +11.602%
  • BA median: +6.681%
  • wins: 7/8

All 16 runs produced:

  • output SHA-256: 95d9d5e1aa6f14c1b3d570c03b3b998dafb2d9e05f974fd83ce7aa8a91e2b86a
  • verifier work: T1:1 T2:0 T3:0 T4:124 T5:0 T6:3
  • follow check: 0 of 512 emitted tokens differ from the argmax

The paired logs are in sm121_side_mixer_mode8_fixedwork_20261030 on the benchmark host.

Before changing source, I searched open and closed issues/PRs for:

  • DGX Spark side mixer
  • sm_121 STRATA_SIDE_MIXER
  • side mixer GB10

No matching issue or PR was found.

Validation

  • built strata, verify_parity, spec_verify_parity, and nv_defaults_test
  • verify_parity: pass
  • spec_verify_parity: pass
  • nv_defaults_test: pass
  • git diff --check: pass
  • rebuilt-engine dispatch smoke: automatic sm_121 startup reported five defaults including SIDE_MIXER; explicit STRATA_SIDE_MIXER=0 was preserved and both runs completed

Known environment limitations:

  • Nsight Compute counters are unavailable on this host (ERR_NVGPUCTRPERM).
  • HIP was not built because this host has no ROCm/hipcc; HIP requires CI or another host.
  • The broad build-spark target has a pre-existing unrelated ARM failure where mmq_nvfp4_parity receives unsupported -mf16c; the focused targets above build successfully.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4737 **Author:** [@InB4DevOps](https://github.com/InB4DevOps) **Created:** 10/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `perf/sm121-side-mixer` --- ### 📄 Description ## Problem and result DGX Spark's sm_121 table did not select the existing exact side-mixer scheduling path. Mode 2 moves input-only QSA/GDN work onto branches of the verify graph without changing its arithmetic. On one NVIDIA GB10, a fixed-work 512-token Qwen3.8-Flash-Next IQ3_S full-engine decode measured **+6.681% paired median throughput** and **+6.670% geometric mean** over eight balanced pairs, with 7/8 wins. Both execution orders exceeded 3% (AB **+11.602%** median, BA **+6.681%**). Every run had the same output hash and verifier work; no errors or OOMs occurred. ## Change Set `STRATA_SIDE_MIXER=2` in the compute-capability 12.1 source-default table and update its focused test and DGX Spark documentation. The existing controls are preserved: - `STRATA_SM121_PERF=0` disables the sm_121 table. - `STRATA_DEFAULTS=026` disables the sm_121 table. - An explicit `STRATA_SIDE_MIXER` value remains higher priority. - Other CUDA architectures are unchanged. The benchmark forced the same `STRATA_EXP_MODE=8` in both arms, so this is the incremental result atop the grouped-expert mode in #4699. This PR remains a separate source change against `main` and does not contain that optimization. ## Fixed-work benchmark - Date/hardware: 30 October 2026, NVIDIA GB10 (DGX Spark, sm_121) - Model: Qwen3.8-Flash-Next IQ3_S - Comparison: `STRATA_SIDE_MIXER=0` vs `STRATA_SIDE_MIXER=2` - Shared controls: `STRATA_SM121_PERF=1 STRATA_EXP_MODE=8 STRATA_SPEC_T_CYCLE=4` - Work: 512 fixed continuation tokens, `--spec 4 --spec-min-p 0.5`, 16 fresh processes - Pair order: AB, BA, AB, BA, AB, BA, AB, BA - Baseline median: 67.982 tok/s - Mode-2 median: 75.549 tok/s Pair throughput ratios (mode 2 / mode 0): ```text +30.205% +3.212% -23.938% +2.826% +2.819% +16.974% +20.385% +10.150% ``` Acceptance statistics: - paired median: **+6.681%** - geometric mean: **+6.670%** - AB median: **+11.602%** - BA median: **+6.681%** - wins: **7/8** All 16 runs produced: - output SHA-256: `95d9d5e1aa6f14c1b3d570c03b3b998dafb2d9e05f974fd83ce7aa8a91e2b86a` - verifier work: `T1:1 T2:0 T3:0 T4:124 T5:0 T6:3` - follow check: `0 of 512 emitted tokens differ from the argmax` The paired logs are in `sm121_side_mixer_mode8_fixedwork_20261030` on the benchmark host. ## Existing-work search Before changing source, I searched open and closed issues/PRs for: - `DGX Spark side mixer` - `sm_121 STRATA_SIDE_MIXER` - `side mixer GB10` No matching issue or PR was found. ## Validation - built `strata`, `verify_parity`, `spec_verify_parity`, and `nv_defaults_test` - `verify_parity`: pass - `spec_verify_parity`: pass - `nv_defaults_test`: pass - `git diff --check`: pass - rebuilt-engine dispatch smoke: automatic sm_121 startup reported five defaults including `SIDE_MIXER`; explicit `STRATA_SIDE_MIXER=0` was preserved and both runs completed Known environment limitations: - Nsight Compute counters are unavailable on this host (`ERR_NVGPUCTRPERM`). - HIP was not built because this host has no ROCm/`hipcc`; HIP requires CI or another host. - The broad `build-spark` target has a pre-existing unrelated ARM failure where `mmq_nvfp4_parity` receives unsupported `-mf16c`; the focused targets above build successfully. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:33:06 +07:00
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#5152
No description provided.