Repository navigation
fix(mla): refresh gfx950 MLA HSACO for large page_id KV addressing - #4452
Merged
Merged
Conversation
Rebuild mi350 MLA decode kernels with 64-bit paged KV byte offsets and add test_mla_ltx co_fix regression for boundary/page16m validation on gfx950.
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the MLA long-context/large-page-id decode test harness to exercise rebuilt gfx950 MLA .co variants (including CPRR/override routing) and to validate boundary/page16m addressing with a safe default ctx that meets kernel requirements.
Changes:
- Add a
--preset-group co_fixsweep (plus--list-co-fixand aggregate report output) to regression-test a curated matrix of rebuilt.cofiles. - Update point-case generation and single-point runs to default
ctxtomax(4, decode_qlen)instead of1, avoiding invalidctx < decode_qlenconfigurations. - Extend
.coselection and asm invocation to support CPRR/CP metadata (cprr,g_kv_indptr,cp_world_size,cp_rank) and optional.cooverrides / ref skipping for specific runs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fangche123
force-pushed
the
chefang_mla_fix_global
branch
from
July 30, 2026 06:59
c77b90a to
ea12f2c
Compare
…dundant address recomputation
shengnxu
approved these changes
Aug 5, 2026
3 of 13 tasks
xiaohuguo2023
added a commit
to xiaohuguo2023/InferenceX
that referenced
this pull request
Aug 12, 2026
…5a env build to skill.md Documents the aiter side of the ASM-MLA env, which was missing: * §0a aiter change recipe: cherry-pick ROCm/aiter#4452 (64-bit paged-KV byte offsets — asm_mla.cu s_MQA fix + 26 gfx950 MLA .co) onto the K3 base build (00cbe979f -> 6fc5733b7); .co load by path, asm_mla.cu needs an aiter rebuild; /aiter-latest bind-mount; optional tuned-GEMM config install. * §0b aiperf 818c3a5a venv build (the pinned submodule that allows --trace-idle-gap-cap-seconds; be758d62 rejects it). Also corrected §2 sweep to build_replay_cmd's real flags and pointed AIPERF at the 818c3a5a venv. Signed-off-by: Xiaohu Guo <[email protected]>
xiaohuguo2023
added a commit
to xiaohuguo2023/vllm
that referenced
this pull request
Aug 26, 2026
…Cm/aiter#4452 for >4 GB paged-KV addressing at long context which is included in aiter main since a63ede7. Signed-off-by: Xiaohu Guo <[email protected]>
6 of 7 tasks
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.
Rebuild mi350 MLA decode kernels with 64-bit paged KV byte offsets and add test_mla_ltx co_fix regression for boundary/page16m validation on gfx950.
Motivation
On gfx950 (MI350), MLA decode kernels used 32-bit truncated math when computing paged KV byte offsets from page_id. When the KV pool exceeds 4GB or page_id is large (e.g. 16M), the kernel reads wrong KV data and fails numerical checks.
This PR refreshes the affected gfx950 MLA .co binaries rebuilt from mi350 sp3 with 64-bit page offset fix (v_mul_lo_u32 / v_mul_hi_u32), extending coverage beyond the earlier qh16 fp8 q1 PS fix (#4341).
Technical Details
Test Plan
python3 op_tests/test_mla_ltx.py --preset qh64_fp8_q1 --suites boundary page16m --ctx 4 --ps ps --lse off
python3 op_tests/test_mla_ltx.py --preset qh16_fp8_q4 --suites boundary page16m --ctx 4 --ps ps --lse off
python3 op_tests/test_mla_ltx.py --page-base 19000000 --ctx 4 --preset qh64_fp8_q1 --ps ps --lse off
Test Result
n16,4 change buffer_load to global_load
configs = number of test configurations in that group: 3 batch sizes (32 / 64 / 128) × 5 context lengths (1024 / 5000 / 8192 / 16384 / 32768) = 15 per group, 105 in total. All speedup and delta figures are aggregated over those configurations.

Submission Checklist