Skip to content

ci: Kimi-K2.5-MXFP4 downstream accuracy gates for AITER (ATOM + vLLM + SGLang) on MI350X - #3441

Merged
sunway513 merged 8 commits into
ROCm:mainfrom
sunway513:ci/downstream-vllm-kimi-mi350x
Jun 1, 2026
Merged

sunway513 merged 8 commits into
ROCm:mainfrom
sunway513:ci/downstream-vllm-kimi-mi350x

Conversation

@sunway513

@sunway513 sunway513 commented May 31, 2026 •

Copy link
Copy Markdown
Collaborator

What

AITER downstream Kimi-K2.5-MXFP4 accuracy regression across all three serving stacks on linux-aiter-do-mi350x runners, built against the official nightly downstream images. An AITER kernel regression that breaks Kimi e2e is caught here.

Backend Base image Launch Blocking gsm8k (flex-extract)
ATOM (in-tree) rocm/atom-dev:latest atom_test.sh (atom-test.yaml) yes via ATOM models_accuracy.json
vLLM (upstream) rocm/vllm-dev:nightly (floating) kimi_vllm_accuracy.sh yes 0.9409 ref
SGLang (upstream) lmsysorg/sglang-rocm:v0.5.12.post1-rocm720-mi35x-20260531 kimi_sglang_accuracy.sh yes 0.9272 measured

Each kimi-downstream job: pull official image → build the PR's AITER from source (gfx950, runtime) → run gsm8k 3-shot → gate on >= 0.92.

Reproduced + fixed both downstream failures (MI350X gfx950 TP8)

vLLM — the TP8 worker crash was --load-format fastsafetensors: rocm/vllm-dev:nightly doesn't bundle the fastsafetensors package, so every worker died at weight load with an ImportError (surfaced only as "WorkerProc initialization failed"). Removing the flag is the whole fix; default safetensors loads the 521GB checkpoint in ~27s/worker. Reference accuracy 0.9409.

SGLang — two upstream-SGLang bugs on this Kimi-K2.5 path (not AITER):

  1. MoE loader crash: shared-experts fusion vs unfused per-expert Quark MXFP4 shard shape (_load_w13 copy_ 3584 vs 7168) → --disable-shared-experts-fusion.
  2. Default triton/fused-MLA path crashes on Kimi-K2.5 head dims ([8,128] vs [8,64]); fp8 KV cache instead dies in decode on the triton fp8 dot → --attention-backend aiter + bf16 KV (drop --kv-cache-dtype fp8_e4m3). This routes MLA through the PR's AITER kernels end to end. Measured gsm8k 0.9272 (full 1319-request run, survived). SGLang lane is now blocking.

Notes

  • vLLM base kept on floating rocm/vllm-dev:nightly (the point is to catch AITER↔nightly regressions). SGLang has no floating nightly tag → pinned to the newest MI35X/ROCm7.2 dated build.
  • linux-aiter-do-mi350x-{8,4} must have amd/Kimi-K2.5-MXFP4 cached at /models (521 GB; mounted).
  • Triggers: ci:atom (ATOM) / ci:kimi ci:vllm ci:sglang ci:all (downstream), push to main, nightly schedule, manual dispatch.

🤖 Generated with Claude Code

@github-actions

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 3441 --add-label <label>

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

Adds a new matrix entry to the AITER ATOM downstream accuracy gate so that the Kimi-K2.5-MXFP4 model is exercised on the linux-aiter-do-mi350x-8 8-GPU runner under the existing ci:atom / ci:all PR labels (and push/schedule/workflow_dispatch). The accuracy threshold of 0.92 is set below the verified gsm8k 3-shot flexible-extract score of 0.9409 to give margin against noise.

Changes:

  • Add a Kimi-K2.5-MXFP4 matrix entry (TP8, --kv_cache_dtype fp8 --trust-remote-code, HSA_NO_SCRATCH_RECLAIM=1) to atom_benchmark in atom-test.yaml.
  • Set accuracy threshold to 0.92 and pin the job to the linux-aiter-do-mi350x-8 runner with run_on_pr: true.

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

Comment thread .github/workflows/atom-test.yaml Outdated
Comment on lines +78 to +86
- model_name: "Kimi-K2.5-MXFP4"
label: MI350X
model_path: "amd/Kimi-K2.5-MXFP4"
extraArgs: "--kv_cache_dtype fp8 -tp 8 --trust-remote-code"
env_vars: |
HSA_NO_SCRATCH_RECLAIM=1
accuracy_test_threshold: "0.92"
runner: linux-aiter-do-mi350x-8
run_on_pr: true
@sunway513 sunway513 changed the title ci(atom-downstream): add Kimi-K2.5-MXFP4 TP8 accuracy gate on MI350X ci: Kimi-K2.5-MXFP4 downstream accuracy gates for AITER (ATOM + vLLM + SGLang) on MI350X May 31, 2026
sunway513 added 3 commits May 31, 2026 18:23
Add Kimi-K2.5-MXFP4 to the ATOM downstream accuracy matrix so AITER
changes are regression-checked against the Kimi e2e workload.

Verified on MI355X (gfx950) 2026-05-30 with rocm/atom-dev:vllm-latest
(aiter ef114b0), vllm serve TP8: gsm8k 3-shot flexible-extract 0.9409,
matching the amd/Kimi-K2.5-MXFP4 reference. Runs on the requested
linux-aiter-do-mi350x-8 runner; threshold 0.92 leaves margin.

Triggered with the existing ci:atom / ci:all labels (and on push/
schedule/workflow_dispatch).
… on MI350X

Complements the ATOM in-tree gate in atom-test.yaml so AITER is
regression-checked against Kimi-K2.5-MXFP4 across all three downstream
serving stacks.

New workflow kimi-downstream.yaml rebuilds the PR's AITER (gfx950) into
the backend image and runs gsm8k via the in-image launch scripts:
- vllm:  atom-dev:vllm-latest + atom_oot_test.sh (vllm serve), blocking,
         threshold 0.92 (verified 0.9409 on MI355X, aiter ef114b0)
- sglang: atom-dev:sglang-latest + atom_sglang_test.sh, continue-on-error
          (non-blocking) -- SGLang currently can't load AMD Quark MXFP4
          per-expert weights; kept as a visible signal until that loader
          bug is fixed.

Runs on linux-aiter-do-mi350x-8 under ci:kimi / ci:vllm / ci:sglang /
ci:all labels (and push/schedule/workflow_dispatch).
Move the downstream Kimi-K2.5 gates off the AMD-internal atom-dev:*-latest
images onto the official nightly downstream containers, so the gate
validates AITER against what actually ships:
- vLLM:   rocm/vllm-dev:nightly (upstream-native KimiK25ForConditionalGeneration)
- SGLang: lmsysorg/sglang-rocm:v0.5.12.post1-rocm720-mi35x-20260531
          (no floating nightly tag exists; pin latest MI35X/ROCm7.2 build)

These images lack the ATOM launch scripts + lm_eval, so add self-contained
launchers (.github/scripts/kimi_{vllm,sglang}_accuracy.sh) that vllm serve /
sglang.launch_server + lm_eval gsm8k and print KIMI_FLEX_EXTRACT. The PR's
AITER is built from source into the image at runtime (gfx950), avoiding any
torch ABI mismatch. SGLang stays non-blocking (loader bug).
@sunway513
sunway513 force-pushed the ci/downstream-vllm-kimi-mi350x branch from e9afe5f to 1ec891b Compare May 31, 2026 18:23
sunway513 added 4 commits May 31, 2026 19:47
…ghtly images

Reproduced both gate failures on MI350X (gfx950) TP8 and fixed them.

vLLM (rocm/vllm-dev:nightly): the worker crash was --load-format
fastsafetensors -- the official image doesn't ship the fastsafetensors
package, so every TP worker died at weight load with an ImportError
(surfaced only as 'WorkerProc initialization failed'). Drop the flag; the
default safetensors loader handles the 521GB checkpoint in ~27s/worker.
Reference accuracy 0.9409.

SGLang (lmsysorg/sglang-rocm:...mi35x-20260531): two upstream-SGLang bugs
on this Kimi-K2.5 path (not AITER):
  1) MoE loader crash with shared-experts fusion vs unfused per-expert
     Quark MXFP4 shard shape -> --disable-shared-experts-fusion.
  2) Default triton/fused-MLA path crashes on Kimi-K2.5 head dims (and fp8
     KV cache dies on the triton fp8 dot) -> --attention-backend aiter +
     bf16 KV (drop --kv-cache-dtype fp8_e4m3). This routes MLA through the
     PR's AITER kernels end to end. Measured gsm8k flexible-extract 0.9272.
SGLang lane is now blocking (continue_on_error: false).
Add DeepSeek-V4-Pro, Qwen3.5-397B-A17B-FP8, MiniMax-M2.7, GLM-5.1-FP8 to
the ATOM accuracy generator's default set, matching the model coverage of
SemiAnalysisAI/InferenceX on MI355X. All configs come from ATOM
models_accuracy.json; runners pinned to the AITER MI350X pool by TP size
(V4-Pro/GLM-5.1 -> do-mi350x-8, Qwen3.5-397B -> -4, MiniMax-M2.7 -> -2).

GLM-5.1-FP8 chosen over GLM-5-FP8 (GLM-5 has a known ATOM sparse-attn-
indexer crash near the gsm8k request count).
…ightly

New kimi-perf-downstream.yaml runs a Kimi-K2.5 throughput sweep
(ISL/OSL 1024/1024, concurrency 4..64) on linux-aiter-do-mi350x-8 and
gates on c=64 output tok/s. Triggered by ci:performance / ci:all label +
nightly schedule (20:43 UTC) + manual dispatch. Builds PR AITER from
source into the official nightly images, reusing the validated accuracy-gate
launch flags.

Validated on MI350X gfx950 TP8 (PR AITER built from source):
  vLLM   (rocm/vllm-dev:nightly)        c=64 3126.4 tok/s -> floor 2250
  SGLang (lmsysorg/sglang-rocm:...531)  c=64 3284.7 tok/s -> floor 2400
…i:atom_full

Move the InferenceX frontier models (DeepSeek-V4-Pro, Qwen3.5-397B-A17B-FP8,
GLM-5.1-FP8, MiniMax-M2.7) out of the always-on PR default set and back to
on-demand ci:atom_full coverage. Running all of them on every PR overloaded
the do-mi350x pool and flaked the Kimi accuracy + perf gates. The runner
pins (do-mi350x by TP size) are retained, so ci:atom_full still exercises
them on the AITER MI350X cluster. MiniMax-M2.7 (needs an ATOM-side
HSA_NO_SCRATCH_RECLAIM env) is therefore no longer red on every PR.
…ix lands

The DSv3.2 indexer eval hangs and hits the 3600s timeout (HIP backtrace) on
current AITER main. Verified the ROCm#3451 fix (cache_kernels.cu) cherry-picked
does not resolve it yet, so keep DeepSeek-V3.2 Accuracy disabled
(run_on_pr/run_on_schedule = False -> reported in the 'disabled' bucket, not
deleted) to keep the downstream signal clean. Re-enable once the DSv3.2
indexer kernel fix merges (ROCm#3451 / dsv32-indexer-fused-kernel-fixes).
@sunway513 sunway513 self-assigned this Jun 1, 2026
@sunway513
sunway513 merged commit d3cf090 into ROCm:main Jun 1, 2026
52 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants