Repository navigation
ci(atom-downstream): fix MiniMax-M2.7 via HSA_NO_SCRATCH_RECLAIM - #3474
Merged
Merged
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
sunway513
force-pushed
the
fix/minimax-scratch-reclaim
branch
from
June 1, 2026 20:14
367ce62 to
9a57308
Compare
Contributor
There was a problem hiding this comment.
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_varsinjection in the ATOM model-matrix generator to setHSA_NO_SCRATCH_RECLAIM=1for 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:atomdefault set, and elsewhere this PR introduces a newci:performancelabel. The CI guide comment in.github/workflows/pr-welcome-comment.yamlstill documentsci:atomas only "DeepSeek-R1-0528, GPT-OSS-120B" and doesn't mentionci: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
force-pushed
the
fix/minimax-scratch-reclaim
branch
4 times, most recently
from
June 1, 2026 23:39
fe1e16f to
69b4759
Compare
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
force-pushed
the
fix/minimax-scratch-reclaim
branch
from
June 2, 2026 00:00
69b4759 to
7d5a074
Compare
valarLip
approved these changes
Jun 2, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
model_env_overrides) in theload-atom-modelsgenerator that injectsHSA_NO_SCRATCH_RECLAIM=1for MiniMax-M2.7.
env_varsalready declared in theATOM model config (newline-separated
KEY=VALUE), so existingper-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_fulllabel (TP2,linux-aiter-do-mi350x-2), not on every PR. With this fix the fullInferenceX 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_fullto exercise MiniMax-M2.7 (and the rest ofthe frontier set) end-to-end on the MI350X pool.