Skip to content

ci(atom-downstream): fix MiniMax-M2.7 via HSA_NO_SCRATCH_RECLAIM - #3474

Merged
valarLip merged 1 commit into
mainfrom
fix/minimax-scratch-reclaim
Jun 2, 2026
Merged

valarLip merged 1 commit into
mainfrom
fix/minimax-scratch-reclaim

Conversation

@sunway513

@sunway513 sunway513 commented Jun 1, 2026 •

Copy link
Copy Markdown
Collaborator

What

Fix the one InferenceX frontier model still failing the ATOM downstream
accuracy gate: MiniMax-M2.7. Follow-up to #3441 (now merged).

Root cause

HSA scratch reclaim corrupts MiniMax-M2.7's MoE scratch buffers on
gfx950. The run completes but produces garbage, so it misses the gsm8k
accuracy threshold. (Same fix validated previously in the Bedrock
benchmark runs.)

Change

  • Add a per-model env override map (model_env_overrides) in the
    load-atom-models generator that injects HSA_NO_SCRATCH_RECLAIM=1
    for MiniMax-M2.7.
  • The value is merged with any env_vars already declared in the
    ATOM model config (newline-separated KEY=VALUE), so existing
    per-model env is preserved. Other models are untouched.

Single-commit, single-file change (.github/workflows/atom-test.yaml).

Coverage

MiniMax-M2.7 runs under the ci:atom_full label (TP2,
linux-aiter-do-mi350x-2), not on every PR. With this fix the full
InferenceX frontier set on the ATOM lane (DeepSeek-V4-Pro,
Qwen3.5-397B-A17B-FP8, GLM-5.1-FP8, MiniMax-M2.7) is green.

Validation

This PR carries ci:atom_full to exercise MiniMax-M2.7 (and the rest of
the frontier set) end-to-end on the MI350X pool.

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 3474 --add-label <label>

@sunway513
sunway513 force-pushed the fix/minimax-scratch-reclaim branch from 367ce62 to 9a57308 Compare June 1, 2026 20:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates CI to improve downstream validation coverage and stabilize ATOM accuracy for a specific model on MI350X/gfx950 by injecting a required HSA runtime environment override.

Changes:

  • Add per-model env_vars injection in the ATOM model-matrix generator to set HSA_NO_SCRATCH_RECLAIM=1 for MiniMax-M2.7, while preserving any existing per-model env.
  • Introduce new Kimi-K2.5 downstream GitHub Actions workflows for accuracy and performance, plus companion scripts for vLLM and SGLang.
  • Temporarily disable the DeepSeek-V3.2 SGLang downstream accuracy run in the test selector due to a known hang.

Reviewed changes

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/atom-test.yaml Adds per-model runner/env override plumbing and expands the always-on default model set.
.github/workflows/kimi-downstream.yaml New workflow to run Kimi-K2.5 gsm8k accuracy gates in official vLLM/SGLang images.
.github/workflows/kimi-perf-downstream.yaml New workflow to run Kimi-K2.5 throughput sweep + regression floor gating.
.github/scripts/sglang_downstream.py Disables DSv3.2 accuracy scheduling/PR runs with an inline tracking note.
.github/scripts/kimi_vllm_accuracy.sh New self-contained vLLM-based gsm8k accuracy runner for Kimi-K2.5.
.github/scripts/kimi_vllm_perf.sh New vLLM throughput sweep runner emitting a parseable c=64 throughput metric.
.github/scripts/kimi_sglang_accuracy.sh New self-contained SGLang-based gsm8k accuracy runner for Kimi-K2.5.
.github/scripts/kimi_sglang_perf.sh New SGLang throughput sweep runner emitting a parseable c=64 throughput metric.
Comments suppressed due to low confidence (1)

.github/workflows/atom-test.yaml:88

  • This workflow now includes Kimi-K2.5 in the always-on ci:atom default set, and elsewhere this PR introduces a new ci:performance label. The CI guide comment in .github/workflows/pr-welcome-comment.yaml still documents ci:atom as only "DeepSeek-R1-0528, GPT-OSS-120B" and doesn't mention ci:performance, so contributors will be misled about what labels do.
          default_models = [
              {"model_name": "DeepSeek-R1-0528"},
              {"model_name": "gpt-oss-120b"},
              # Kimi-K2.5 ATOM (in-tree) downstream gate. Config (model_path,
              # extraArgs -tp4, threshold) is pulled from ATOM models_accuracy.json.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sunway513
sunway513 force-pushed the fix/minimax-scratch-reclaim branch 4 times, most recently from fe1e16f to 69b4759 Compare June 1, 2026 23:39
MiniMax was the one InferenceX frontier model not passing the ATOM
downstream accuracy gate. Target the deployable MXFP4 variant
(amd/MiniMax-M2.7-MXFP4) and fix three issues, all via override maps in
the load-atom-models generator so the ATOM models_accuracy.json is
untouched:

1. Selection: the MXFP4 variant is test_level=nightly, so the
   ci:atom_full pr/main filter skipped it. Force-include it via
   full_atom_extra_models.

2. Compile: MiniMax's trust_remote_code modeling breaks ATOM's
   torch.compile/inductor path during warmup (BackendCompilerFailed ->
   FileNotFoundError '<frozen posixpath>'). --enforce-eager only disables
   cudagraph capture in ATOM, so append '-tp 2 --enforce-eager --level 0'
   (NO_COMPILATION) to bypass the failing backend. (The BF16 110B variant
   additionally does not fit TP2 -> KV-cache HIP OOM; MXFP4 fits with room
   to spare.)

3. Env: inject HSA_NO_SCRATCH_RECLAIM=1 (MoE scratch corruption on gfx950),
   merged with any env_vars already declared in the ATOM config.

Validated on linux-aiter-do-mi350x-2: gsm8k 3-shot flexible-extract
0.8999 >= 0.8872 threshold (strict-match 0.9280). With this, the full
InferenceX frontier set on the ATOM lane is covered.
@sunway513
sunway513 force-pushed the fix/minimax-scratch-reclaim branch from 69b4759 to 7d5a074 Compare June 2, 2026 00:00
@valarLip
valarLip merged commit c983539 into main Jun 2, 2026
77 of 87 checks passed
@valarLip
valarLip deleted the fix/minimax-scratch-reclaim branch June 2, 2026 05:22
amirumoAMD pushed a commit that referenced this pull request Jun 2, 2026
…3474)

MiniMax was the one InferenceX frontier model not passing the ATOM
downstream accuracy gate. Target the deployable MXFP4 variant
(amd/MiniMax-M2.7-MXFP4) and fix three issues, all via override maps in
the load-atom-models generator so the ATOM models_accuracy.json is
untouched:

1. Selection: the MXFP4 variant is test_level=nightly, so the
   ci:atom_full pr/main filter skipped it. Force-include it via
   full_atom_extra_models.

2. Compile: MiniMax's trust_remote_code modeling breaks ATOM's
   torch.compile/inductor path during warmup (BackendCompilerFailed ->
   FileNotFoundError '<frozen posixpath>'). --enforce-eager only disables
   cudagraph capture in ATOM, so append '-tp 2 --enforce-eager --level 0'
   (NO_COMPILATION) to bypass the failing backend. (The BF16 110B variant
   additionally does not fit TP2 -> KV-cache HIP OOM; MXFP4 fits with room
   to spare.)

3. Env: inject HSA_NO_SCRATCH_RECLAIM=1 (MoE scratch corruption on gfx950),
   merged with any env_vars already declared in the ATOM config.

Validated on linux-aiter-do-mi350x-2: gsm8k 3-shot flexible-extract
0.8999 >= 0.8872 threshold (strict-match 0.9280). With this, the full
InferenceX frontier set on the ATOM lane is covered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants