Repository navigation
ci: Kimi-K2.5-MXFP4 downstream accuracy gates for AITER (ATOM + vLLM + SGLang) on MI350X - #3441
Merged
Merged
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
Contributor
There was a problem hiding this comment.
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-MXFP4matrix entry (TP8,--kv_cache_dtype fp8 --trust-remote-code,HSA_NO_SCRATCH_RECLAIM=1) toatom_benchmarkinatom-test.yaml. - Set accuracy threshold to 0.92 and pin the job to the
linux-aiter-do-mi350x-8runner withrun_on_pr: true.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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 |
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
force-pushed
the
ci/downstream-vllm-kimi-mi350x
branch
from
May 31, 2026 18:23
e9afe5f to
1ec891b
Compare
…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).
vgokhale
approved these changes
Jun 1, 2026
This was referenced Jun 1, 2026
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
AITER downstream Kimi-K2.5-MXFP4 accuracy regression across all three serving stacks on
linux-aiter-do-mi350xrunners, built against the official nightly downstream images. An AITER kernel regression that breaks Kimi e2e is caught here.rocm/atom-dev:latestatom_test.sh(atom-test.yaml)models_accuracy.jsonrocm/vllm-dev:nightly(floating)kimi_vllm_accuracy.shlmsysorg/sglang-rocm:v0.5.12.post1-rocm720-mi35x-20260531kimi_sglang_accuracy.shEach
kimi-downstreamjob: 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:nightlydoesn't bundle thefastsafetensorspackage, 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):
_load_w13copy_ 3584 vs 7168) →--disable-shared-experts-fusion.[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
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 haveamd/Kimi-K2.5-MXFP4cached at/models(521 GB; mounted).ci:atom(ATOM) /ci:kimici:vllmci:sglangci:all(downstream), push to main, nightly schedule, manual dispatch.🤖 Generated with Claude Code