Repository navigation
docs(benchmarks): attribute the GB10 decode drops via post-reboot re-measurement - #757
Conversation
…measurement (#755) Post-reboot singles for the four #755 subjects, two controls, and the seven-model SSM/hybrid cluster (13 checkpoints, 21 committed runs) settle the 2026-07-12 sweep anomalies: - gemma-4-26b-a4b-it(-qat): recovered at or above the 0.3.1 records (59.88 / 53.68 medians, n=3 each, +-0.5% spread); the sweep-day drop was the stale ~5.5-day host/driver state. - glm4-flash / mamba2-130m: no regression to recover from. Identical 100-token greedy runs span 39.2-54.8 tok/s (bimodal) on a fresh boot, and the 0.3.1 records sit inside the fast mode. Kill-switch A/B rules out #740 (MLXCEL_QMV_MULTIROW=0) and #727 (MLXCEL_SSM_CUDA_KERNEL=0); slow-mode runs were sampled at pinned 2411-2424 MHz SM clocks, so the flapping is host-level, not SM clock capping or a code path. - SSM/hybrid/NAS cluster: the 2-4x jump is real and attributed to the #727 fused SSM decode CUDA kernel (landed 2026-07-10, the day after the low 2026-07-09 singles); the earlier environmental explanation in the notable-changes list was wrong and is corrected on the record. Doc rows for the 13 models now carry the post-reboot values, and the notable-changes notes record the noise-floor guidance (single-run deltas within ~+-25% on launch-bound models are not regressions without repeats).
Implementation Review SummaryIntent
Data verification (docs vs committed CSVs)Cross-checked all 13 updated
Notable-changes bullets
model_tests.mdNemotron-H-30B GB10 column updated to 87.41 (matches CSV); the ¶ footnote is internally consistent and now carries the #727/#755 attribution. Table integrityAll edited rows in both files are well-formed 5-column rows (6 pipes) matching their headers. No broken pipes. The VLM image-input table rows for gemma-4-26b (54.60) and nemotron-omni (70.09) are a different test ( Acceptance criteria (#755)
Minor / non-blocking observations
Verification
Verdict: APPROVE. Every number in the two edited docs is internally consistent with the committed CSVs and the historical records, the #727 attribution timeline checks out against git history, and all five #755 acceptance criteria are satisfied. The three observations above are optional wording refinements, not blockers. |
…venance note Review follow-up on PR #757: the cluster's actual per-model span is 1.4-3.4x (plamo-2-1b sits at 1.36x, falcon-h1-tiny at 3.4x), and the model_tests.md GB10 provenance line now also excepts the Nemotron-H post-reboot single alongside the memory-gated rows.
Main advanced past this branch's base with the M5 Max 0.4.0-rc.1 refresh (#756), which touched the same Cross-Hardware Decode Comparison table and footnotes in docs/benchmark_results/model_tests.md that this PR's Nemotron-H-30B GB10 update also touches. Resolved by keeping main's refreshed M1 Ultra/M5 Max columns and prose, and layering this PR's GB10 Nemotron-H-30B value (87.41, post-reboot single per #755) and its footnote/harness-note update on top. docs/benchmark_results/model_tests_gb10.md and the 13 new benchmark CSVs from this branch are untouched by the merge.
PR Finalization CompleteSummary
All checks passing ( |
…measurement (lablup#757) ## Summary Closes lablup#755 with the post-reboot re-measurement it gated on, and a verdict: **none of the sweep drops is a code regression**. The gemma-4-26b pair was depressed by the stale ~5.5-day host/driver state and recovers decisively on a fresh boot; glm4-flash and mamba2-130m were never regressed, their sweep readings are single draws from a bimodal host-level throughput distribution whose fast mode reproduces the 0.3.1 records; and the same session's SSM-cluster re-verification shows the 1.4-3.4x "anomaly" is the intended lablup#727 fused-SSM-kernel improvement, misdiagnosed as environmental in the sweep notes. Doc rows for all 13 re-measured models now carry the post-reboot values, and the 21 committed runs live in `benchmarks/cuda_gb10_2026-07-12_postreboot_single_*.csv`. Host: fresh boot 2026-07-12 19:25 (uptime 7 min at first check), mlxcel 0.4.0-rc.1 at `fcb4c20`, MLX pin `57c66cac` (0.32.1), incremental `cargo build --release --features cuda` rebuilt clean before measuring. All script runs used `--cooldown 30`. ## Measurements ### lablup#755 subjects and controls (decode tok/s) | Model | 2026-06-17 (0.3.1) | 2026-07-12 sweep | Post-reboot | Verdict | |---|---|---|---|---| | gemma-4-26b-a4b-it-4bit | 58.59 | 50.19 | **59.88** (n=3: 59.57-60.07) | recovered, environmental | | gemma-4-26b-a4b-it-qat-4bit | 50.33 | 45.29 | **53.68** (n=3: 53.48-53.71) | recovered, environmental | | glm4-flash-4bit | 53.33 | 45.72 | **47.42** (n=3 templated: 46.42-50.07) | within noise floor (below) | | mamba2-130m | 181.05 | 162.23 | **202.98** (n=3: 147.98-204.77) | within noise floor | | qwen3-30b-a3b-4bit (control) | 90.70 | 92.41 | 94.39 | stable | | lfm2-8b-a1b-4bit (control) | 157.73 | 161.87 | 165.53 | stable | ### SSM-cluster re-verification (decode tok/s) | Model | 2026-06-17 | 2026-07-09 single | 2026-07-12 sweep | Post-reboot | |---|---|---|---|---| | granite-4.0-h-350m-4bit | 64.00 | 86.60 | 259.69 | 171.22 | | granite-4.0-h-tiny-4bit | 33.84 | - | 100.28 | 101.37 | | falcon-h1-tiny-90m-instruct-4bit | 102.99 | 110.42 | 413.00 | 354.43 | | nemotron-h-30b-4bit | 40.32 | - | 79.94 | 87.41 | | nemotron-nas-30b-4bit | 37.33 | - | 82.72 | 85.91 | | nemotron-3-nano-omni-30b (reasoning) | 38.45 | - | 80.86 | 82.88 | | plamo-2-1b | 34.36 | 35.14 | 44.54 | 46.84 | The cluster's gains persist on a fresh host, so they are release numbers, not an artifact. The attribution is a timeline fact the sweep notes missed: the low 2026-07-09 singles ran at 15:03, and lablup#727 (fused single-token SSM decode kernel, CUDA port; its own PR measured granite-350m at 4.5x) merged the next day at 16:45 on 2026-07-10. The "no SSM-related code has landed since" premise behind the environmental explanation was simply false, and this PR corrects it on the record. ## Attribution evidence for the non-recovering pair glm4-flash decode over twelve **identical** 100-token greedy runs on the freshly booted host (same binary, same prompt, `--no-chat-template`, identical generated tokens): 39.23, 54.80, 42.33, 52.33, 51.48, 52.86, 40.51, 42.12, 41.28, 49.29, 52.24, 42.54. The distribution is bimodal (a ~41 mode and a ~52.5 mode), and the 0.3.1 record (53.33) sits inside the fast mode. mamba2-130m shows the same flapping (147.98, then 202.98 / 204.77 / 208.25 back-to-back, vs the 181.05 record). There is no stable deficit to attribute; a single sweep run draws one sample from this distribution. The code suspects named in the issue are each ruled out: - **lablup#740 multirow qmv**: `MLXCEL_QMV_MULTIROW=0` reads 49.55, inside the baseline envelope; by design the path keeps `M*B == 1` classic decode on the stock kernel, so B=1 benches never exercise it. - **lablup#727 fused SSM kernel**: `MLXCEL_SSM_CUDA_KERNEL=0` on mamba2-130m reads 208.25 (unchanged); pure mamba2 never uses the fused kernel, exactly as the lablup#727 PR stated. - **lablup#732 single-dtype decode graph**: shipped trace tooling (`MLXCEL_TRACE_ASTYPE`) plus a default-off opt-in normalization (`MLXCEL_CUDA_F16_NORMALIZE`); nothing changes by default. The slow mode is not SM clock capping: sampling `clocks.sm` at 2 Hz during runs caught slow runs (41.28, 42.54 tok/s) at a pinned 2411-2424 MHz, the same clocks as fast runs. The CPU governor is `performance` at max frequency. The host-level mechanism behind the two modes remains unidentified, but the fast mode reproducing the 0.3.1 number rules out a code-level regression, which is what lablup#755 needed to establish. Two further observations recorded in the docs: - The 26B gemma MoE repeats within ±0.5% while the launch-bound small models flap by up to ±25%, so the noise floor is model-class-dependent: single-run deltas on small dense/SSM checkpoints and small MoEs should not be read as regressions without repeats. - glm4-flash's templated greedy output shortened from 100 tokens (0.3.1) to 18 (rc.1), a different greedy continuation rather than a failure, so its sweep-to-sweep decode averages additionally stopped being length-comparable. ## Changes - `benchmarks/cuda_gb10_2026-07-12_postreboot_single_*.csv` (13 files, 21 runs): the post-reboot singles, including the n=3 repeat sets for both gemma variants, glm4-flash, and mamba2-130m. Env-modified A/B runs are excluded from the CSVs and reported here instead. - `docs/benchmark_results/model_tests_gb10.md`: the 13 model rows now carry the post-reboot values (medians where n=3); the SSM-cluster notable-changes bullet is rewritten with the lablup#727 attribution and the correction of the earlier environmental claim; the moderate-drops bullet is rewritten as resolved with the evidence above and the noise-floor guidance. - `docs/benchmark_results/model_tests.md`: Nemotron-H-30B cross-hardware row updated to 87.41 and its footnote now carries the lablup#727/lablup#755 attribution instead of the re-verify caveat. ## Acceptance criteria (from lablup#755) - [x] Post-reboot single-model measurements recorded for the three subjects, mamba2-130m, and both controls (singles CSVs committed; numbers above) - [x] Verdict recorded: environmental for the gemma pair; no-regression (host run-to-run variance) for glm4-flash and mamba2-130m; the SSM-cluster side settled as a real lablup#727 improvement - [x] Doc rows and the unattributed-drop notes updated to the post-reboot values, with this issue referenced - [x] Kill-switch A/B and clock-sampling evidence recorded for the persisting readings (no code fix needed; nothing to fix) - [x] The notes in `docs/benchmark_results/model_tests_gb10.md` reference lablup#755 ## Test plan - [x] Incremental `cargo build --release --features cuda` clean before measuring (no source changes in this PR; docs and benchmark data only) - [x] 13 post-reboot singles + 8 repeat/variance runs + 3 kill-switch A/B runs + 6 clock-sampled runs on GB10 - [x] Doc tables cross-checked against the committed CSV rows
Summary
Closes #755 with the post-reboot re-measurement it gated on, and a verdict: none of the sweep drops is a code regression. The gemma-4-26b pair was depressed by the stale ~5.5-day host/driver state and recovers decisively on a fresh boot; glm4-flash and mamba2-130m were never regressed, their sweep readings are single draws from a bimodal host-level throughput distribution whose fast mode reproduces the 0.3.1 records; and the same session's SSM-cluster re-verification shows the 1.4-3.4x "anomaly" is the intended #727 fused-SSM-kernel improvement, misdiagnosed as environmental in the sweep notes. Doc rows for all 13 re-measured models now carry the post-reboot values, and the 21 committed runs live in
benchmarks/cuda_gb10_2026-07-12_postreboot_single_*.csv.Host: fresh boot 2026-07-12 19:25 (uptime 7 min at first check), mlxcel 0.4.0-rc.1 at
fcb4c20, MLX pin57c66cac(0.32.1), incrementalcargo build --release --features cudarebuilt clean before measuring. All script runs used--cooldown 30.Measurements
#755 subjects and controls (decode tok/s)
SSM-cluster re-verification (decode tok/s)
The cluster's gains persist on a fresh host, so they are release numbers, not an artifact. The attribution is a timeline fact the sweep notes missed: the low 2026-07-09 singles ran at 15:03, and #727 (fused single-token SSM decode kernel, CUDA port; its own PR measured granite-350m at 4.5x) merged the next day at 16:45 on 2026-07-10. The "no SSM-related code has landed since" premise behind the environmental explanation was simply false, and this PR corrects it on the record.
Attribution evidence for the non-recovering pair
glm4-flash decode over twelve identical 100-token greedy runs on the freshly booted host (same binary, same prompt,
--no-chat-template, identical generated tokens): 39.23, 54.80, 42.33, 52.33, 51.48, 52.86, 40.51, 42.12, 41.28, 49.29, 52.24, 42.54. The distribution is bimodal (a ~41 mode and a ~52.5 mode), and the 0.3.1 record (53.33) sits inside the fast mode. mamba2-130m shows the same flapping (147.98, then 202.98 / 204.77 / 208.25 back-to-back, vs the 181.05 record). There is no stable deficit to attribute; a single sweep run draws one sample from this distribution.The code suspects named in the issue are each ruled out:
MLXCEL_QMV_MULTIROW=0reads 49.55, inside the baseline envelope; by design the path keepsM*B == 1classic decode on the stock kernel, so B=1 benches never exercise it.MLXCEL_SSM_CUDA_KERNEL=0on mamba2-130m reads 208.25 (unchanged); pure mamba2 never uses the fused kernel, exactly as the perf(cuda/ssm): port the fused SSM decode kernel to CUDA #727 PR stated.MLXCEL_TRACE_ASTYPE) plus a default-off opt-in normalization (MLXCEL_CUDA_F16_NORMALIZE); nothing changes by default.The slow mode is not SM clock capping: sampling
clocks.smat 2 Hz during runs caught slow runs (41.28, 42.54 tok/s) at a pinned 2411-2424 MHz, the same clocks as fast runs. The CPU governor isperformanceat max frequency. The host-level mechanism behind the two modes remains unidentified, but the fast mode reproducing the 0.3.1 number rules out a code-level regression, which is what #755 needed to establish.Two further observations recorded in the docs:
Changes
benchmarks/cuda_gb10_2026-07-12_postreboot_single_*.csv(13 files, 21 runs): the post-reboot singles, including the n=3 repeat sets for both gemma variants, glm4-flash, and mamba2-130m. Env-modified A/B runs are excluded from the CSVs and reported here instead.docs/benchmark_results/model_tests_gb10.md: the 13 model rows now carry the post-reboot values (medians where n=3); the SSM-cluster notable-changes bullet is rewritten with the perf(cuda/ssm): port the fused SSM decode kernel to CUDA #727 attribution and the correction of the earlier environmental claim; the moderate-drops bullet is rewritten as resolved with the evidence above and the noise-floor guidance.docs/benchmark_results/model_tests.md: Nemotron-H-30B cross-hardware row updated to 87.41 and its footnote now carries the perf(cuda/ssm): port the fused SSM decode kernel to CUDA #727/perf(cuda): attribute the gemma-4-26b-a4b and glm4-flash decode drops from the 2026-07-12 GB10 sweep (re-measure after reboot first) #755 attribution instead of the re-verify caveat.Acceptance criteria (from #755)
docs/benchmark_results/model_tests_gb10.mdreference perf(cuda): attribute the gemma-4-26b-a4b and glm4-flash decode drops from the 2026-07-12 GB10 sweep (re-measure after reboot first) #755Test plan
cargo build --release --features cudaclean before measuring (no source changes in this PR; docs and benchmark data only)