mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4699] [CLOSED] [Engine] use fused grouped experts on DGX Spark #5140
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#5140
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4699
Author: @InB4DevOps
Created: 10/30/2026
Status: ❌ Closed
Base:
main← Head:perf/sm121-fused-expert-mode8📄 Description
Problem and result
DGX Spark's sm_121 decode path kept grouped native experts on mode 0 even though the existing mode 8 kernels reduce the dominant expert work on GB10. This change selects mode 8 by default only on sm_121 when the sm_121 performance defaults are enabled.
On one NVIDIA GB10, a fixed-work 512-token Qwen3.8-Flash-Next IQ3_S full-engine decode measured +11.69% paired median throughput and +11.23% geometric mean over eight balanced pairs, with 6/8 wins. Both execution orders exceeded 3% (AB +15.98% median, BA +10.04%). Every run had the same output hash and the same verifier work (
T1:1 T4:124 T6:3); no errors or OOMs occurred.Approach
Reuse the existing mode 8 grouped-expert implementation, which keeps each group's activations in shared memory and fuses SwiGLU and q8_1 work. No kernel arithmetic changes.
The selection is limited to compute capability 12.1 and preserves the existing controls:
STRATA_SM121_PERF=0restores mode 0.STRATA_DEFAULTS=026restores mode 0.STRATA_EXP_MODEremains the highest-priority override.No matching open or closed issue/PR was found for sm_121 mode 8, fused experts, or DGX Spark q8_1 expert dispatch.
Performance validation
Environment: Linux 7.0.0-1019-nvidia aarch64, NVIDIA GB10 (sm_121), driver 580.178.04. Model: Qwen3.8-Flash-Next IQ3_S, 64K context, INT8 KV with 32K resident KV, MTP/speculation, all 24,576 experts resident, RAM PLE I/O, greedy output.
The fixed-work benchmark used base
870aedd9plus a temporary measurement-only oracle-precedence change, with explicitSTRATA_EXP_MODE=0and8. Mode 8's kernel code was unchanged by this PR; this PR only selects it on sm_121. MTP still ran while oracle drafts forced identical verifier work. The instrumentation was removed before this commit. Runs alternated AB/BA on the same day and binary. Throughput is decode tokens/s.Each arm used this invocation, substituting
0or8forMODE:On submitted commit
76c0aa60, focused G=90/T=4 expert measurements confirmed that automatic sm_121 dispatch selects mode 8 and remains bitwise equal:The off switches reproduced mode 0 within ±0.4% and remained bitwise equal.
Validation
Passed
CUDA production, benchmark, and defaults targets built successfully.
HIP engine compilation passed in the
rocm/dev-ubuntu-24.04:10.1.0-fullcontainer on an x86_64 GitHub runner. The tested tree was submitted source commit76c0aa60plus only the disposable workflow file: Actions run 41050903589.5/5 tests passed.
Passed.
Failed
The broad build reached an unrelated existing ARM configuration failure:
mmq_nvfp4_paritypasses unsupported-mf16c. The affected CUDA library and focused targets above built successfully.The first disposable HIP CI attempt stopped before configuration because the ROCm container did not include CMake. After installing the standard build tools, the unchanged source passed in the linked run above.
Not run
HIP runtime execution was not run because no AMD GPU was available. The changed dispatch is gated to NVIDIA compute capability 12.1; no AMD runtime behavior is selected.
Limits
The default change applies only to measured sm_121 hardware. IQ3_XXS regressed 4.2% in the focused G=90/T=4 microbenchmark, while the mixed production IQ3_S model improved in the fixed-work full-engine test. No performance claim is made for other architectures or workloads.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.