Repository navigation
[Test] [AMD] aiter: Run the HD128 ASM prefill test on gfx950 with a routed pool - #48438
Conversation
test_minimax_hd128_asm_prefill skips everywhere but gfx950, yet it was registered for the MI300 suite, so CI never ran it. On gfx950 all three cases fail on main: the backend reads the cache through token_to_kv_pool.layer_router, which the test's stand-in pool does not have. The test now builds its pool with a PlainPoolRouter and runs in the MI35x suite.
|
@zijiecode could you take a look? The HD128 ASM prefill test you added in #41707 has been skipping in the MI300 suite, and on gfx950 it broke when the backend started reading the cache through |
|
/tag-and-rerun-ci |
zijiecode
left a comment
There was a problem hiding this comment.
Thanks for picking this up. The fix looks good to me.
|
@HaiShaw could you merge this when you have a moment? zijiecode has approved it and no check has failed; seven are still waiting for runners, among them |
# Conflicts: # test/registered/amd/test_minimax_hd128_asm_prefill.py
|
@HaiShaw a note on this PR: it now also fixes a red test on |
There was a problem hiding this comment.
Independent CI evidence from #48404 supports this fix. I reviewed the test-only diff against the current KV routing API and the existing _FakeKVPool pattern in test_aiter_fp8_kv_scales_paths.py.
- On #48404 head
64bbfed2, the AMD MI35x job failed inTestMiniMaxHD128AsmPrefill.test_first_chunk_reads_fp8_poolwith exactlyAttributeError: 'types.SimpleNamespace' object has no attribute 'layer_router'. - Traceback:
AiterAttnBackend.forward_extend() -> self.kv_layers.read(layer.layer_id).kv() -> BaseAttnBackend.kv_layers -> token_to_kv_pool.layer_router. The failure happens before the attention kernel is exercised. - The test file is byte-identical on upstream main and #48404 (same blob), and #48404 changes only EPLB argument validation / recorder tests. This independently corroborates that the CI failure is upstream, not an EPLB regression.
- The proposed
_PoolsuppliesPlainPoolRouter(self, "full")and the key/value accessors needed byKVLayer.kv(), matching the established fake-pool pattern. Production code is untouched. The author's reported 3 passing cases on MI355X are consistent with this fix (I have not separately rerun them).
LGTM for the scoped test fix. This is currently blocking unrelated PRs, including #48404; merging #48438 should clear this specific upstream AMD failure, subject to the remaining CI checks.
|
Follow-up to my review with CI evidence from this PR's own run (head
This strengthens the APPROVED assessment of the scoped |
BBuf
left a comment
There was a problem hiding this comment.
[BBuf Review Agent] LGTM. Let's wait for the MI35x CI.
|
/rerun-failed-ci |
|
Follow-up from #48404: the EPLB recorder-mode validation fix has now been merged into Before merging, its AMD MI35x stage-B job reproduced the same existing failure in The targeted test has already been shown passing with #48438's |
Motivation
test/registered/amd/test_minimax_hd128_asm_prefill.py, added with the MiniMax-M3 HD128 ASM prefill in #41707, checks that route with an fp8 cache and non-unit KV scales. ItssetUpClassskips on anything but gfx950, but the file is registered forstage-b-test-1-gpu-small-amd, which runs on MI300, so CI never runs it.On gfx950 all three cases fail on main: the backend now reads the cache through
token_to_kv_pool.layer_router(kv_layers), and the test's stand-in pool, aSimpleNamespacewith onlyget_kv_buffer, has no router.Modifications
test/registered/amd/test_minimax_hd128_asm_prefill.py: the stand-in pool is a small class with aPlainPoolRouter, like_FakeKVPoolintest_aiter_fp8_kv_scales_paths.py, and the file is registered forstage-b-test-1-gpu-small-amd-mi35x, the gfx950 suite.Nothing outside the test changes.
Accuracy Tests
One MI355X (gfx950). On main (854bf5a) the three cases fail with
AttributeError: 'types.SimpleNamespace' object has no attribute 'layer_router'; with this change, on main at 61a3c7f, they pass (3 passed in 21.06s).Speed Tests and Profiling
Test-only change; the MI35x suite gains the file's 45 s estimate.
Setup: the
lmsysorg/sglang-rocmrocm720-mi35x image of 2026-11-03, with sglang from source andblake3installed.Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): ✅ Run #42186051179
Latest PR Test (Extra): ❌ Run #42186051206
Latest PR Test (AMD ROCm 10): ❌ Run #42186051113
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: