Repository navigation
[K3][gfx1250] Bring c997 TP1 FP8 GEMM and exact-M tuning to k3-455-dev - #8978
Merged
Merged
Conversation
…loads, retuned rows (#8778 @ ea7a5d8) #8778 (aoli26; base main; open) applied to k3-455-dev as its net change on its 19 files at head ea7a5d8 (2026-11-26T14:47:07Z), 3-way against the PR's main base adbb6ac. The 8 files k3-455-dev had changed (all only by #8246 @ 15808c7) take the PR's version, so all 19 files equal the PR head. It carries the newer #8246 (ccc4270), the table PRs #8579 / #8586 / #8601 and main's #8566 (its compute guard, which #8778 replaces); no other main change rides in. Validated in the K3 1P1D integration branch (aiter zejun/k3-455-dev 627e1eb) on 16 MI455X (wuhuikx/LLM-Booster#578). The PR head has moved on since (204ce9d: merges of #8246 @ 0d6cf15 and of main, which brings #8737); those can follow when #8778 lands. Co-authored-by: zejunchen-zejun <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
zejunchen-zejun
added a commit
to ROCm/ATOM
that referenced
this pull request
Dec 1, 2026
…4 747 tok/s/GPU (ASM prefill until LLM-Booster #273) (#4023) * recipes: 455-k3-recipe.md as run on 12-01 (1P1D on e15; ASM prefill until LLM-Booster #273) Squashes the 11-28 rewrite (1126 image, #813 config F on P, S1F on D) with what the 12-01 runs on four Helios trays (P = PP8 x TP1 on e15-09 + 07, D = DP8 EP8 on e15-05 + 06) showed: - Results, MLPerf Endpoints agentic, whole window: c1024 747 tok/s/GPU (22.4 tok/s/user, TTFT p50 6.23 s, TPOT p50 25.0 ms), c512 590, c192 383; DSpark acceptance 0.39-0.43; GSM8K 0.9621. The 11-22 G13 numbers stay as the reference. - P's FP8 prefill attention on ASM (P_PREFILL_ATTN, default asm): on the FlyDSL path a prefill that hits a cached prefix comes out wrong on k3-455-dev (#273), which the multi-turn benchmark hits on almost every turn (DSpark acceptance 5%, c1024 521 tok/s/GPU). Plus a multi-turn check next to GSM8K. - Software: k3-455-dev (with gyu's prefill stack since 11-30) + #3948 (PP mailbox) + ROCm/aiter#8978 (#8778) + #4021 (test); the runs used zejun/k3-455-dev of both repos. - Host rules from the crashes: one boot batch and amdgpu loaded on all four at the same moment, once per boot (a reload failed with smu -62); tcp_mtu_probing=1 against a content-dependent packet loss that hung D's gloo all_gather; TIKTOKEN_CACHE_DIR= (a crash left a 0-byte tiktoken cache entry that broke every later start). - Knobs: DSPARK_K, DSPARK_CONFIG. The warmup stops ~3 min after it stops issuing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 c192 on DSpark k=6 (439 tok/s/GPU vs 383 at k=4) DSPARK_K now defaults to 6 at POINT=c192 and stays 4 at c512 / c1024. 12-01, same deployment otherwise (P on ASM prefill): c192 439 tok/s/GPU, 56.9 tok/s/user, TTFT p50 0.97 s, TPOT p50 14.3 ms, acceptance 0.32 per token (k=4: 383, 47.0, 0.99 s, 13.8 ms, 0.43). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Preserve the existing dev wrappers and bucket tables. Add 162 accepted retuned exact configurations and 3 c997-default compatibility records, with CPU dispatch coverage for all 675 measured points. Backport the three kernel files from c99781c without merging main history. Integrated-head GPU validation remains outstanding.
Contributor
|
Updated in bbce9a5: refreshes the native gfx1250 GEMM implementation to the measured #8778 snapshot CPU validation: 12 source-AST metadata/dispatch tests pass; independent CPU checks of the actual selectors/parsers match the accepted final kernel parameters for all 675 measured shape/M cases. Full runtime tests and GPU compilation, correctness and performance remain unverified for this integrated commit. The performance report contains the frozen c997 benchmark results, not GPU results for |
Open
4 of 10 tasks
gbyu-amd
pushed a commit
that referenced
this pull request
Dec 3, 2026
#8978) * K3 TP1 a8w8 GEMM: compute N tail, underfilled tiles, aligned A-scale loads, retuned rows (#8778 @ ea7a5d8) #8778 (aoli26; base main; open) applied to k3-455-dev as its net change on its 19 files at head ea7a5d8 (2026-11-26T14:47:07Z), 3-way against the PR's main base adbb6ac. The 8 files k3-455-dev had changed (all only by #8246 @ 15808c7) take the PR's version, so all 19 files equal the PR head. It carries the newer #8246 (ccc4270), the table PRs #8579 / #8586 / #8601 and main's #8566 (its compute guard, which #8778 replaces); no other main change rides in. Validated in the K3 1P1D integration branch (aiter zejun/k3-455-dev 627e1eb) on 16 MI455X (wuhuikx/LLM-Booster#578). The PR head has moved on since (204ce9d: merges of #8246 @ 0d6cf15 and of main, which brings #8737); those can follow when #8778 lands. Co-authored-by: zejunchen-zejun <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> * Update K3 FP8 kernels to c997 and add exact-M tuning Preserve the existing dev wrappers and bucket tables. Add 162 accepted retuned exact configurations and 3 c997-default compatibility records, with CPU dispatch coverage for all 675 measured points. Backport the three kernel files from c99781c without merging main history. Integrated-head GPU validation remains outstanding. --------- Co-authored-by: aoli26 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Zhang <[email protected]> (cherry picked from commit 1cc9d02) Rebase onto main 12-03: the 19 files keep this commit's content; only main's later changes are added: the AOT launcher factories of #8678 (mxfp8 / batched wrappers launch gemm_a8w8_launcher.lazy(), _gemm_a8w8_compute_bound_launcher.lazy(), splitk_reduce_launcher.lazy(); _lazy_import keeps _data_ptr), #7449's deferred split-K entry points and #8636's ragged-K fallback. gemm_a8w8_gfx1250.py: this commit's rank0 split-K epilogue and flush_addr (it already carries #8737's flush). gemm_op_a8w8.py: main's #8566 guard in get_mxscale_bpreshuffle_config (no padded row below a compute kernel's M tile) is removed, as on the #8778 head, because the c997 compute kernel serves underfilled tiles; test_gemm_host_dispatch_cache.py takes #8778's test_mxscale_compute_row_serves_underfilled_m_tile in place of main's two guard tests. kimik3 mxscale tuned CSV: this commit's rows (626 changed or added) replayed by key; the result equals this commit's table. Rebase onto main 12-03: main #7449 moved the bpreshuffle row lookup into _bpreshuffle_config(XQ, WQ); this commit's Kimi-K3 exact-row lookup there needs x_scale, w_scale and Y, so _bpreshuffle_config takes them (the deferred split-K path passes a meta tensor of the output's shape and dtype, so it picks the same row as gemm_a8w8_bpreshuffle). Rebase onto main 12-03: op_tests/test_gemm_a8w8_mxfp8_bpreshuffle.py counts reduce launches through splitk_reduce_launcher.lazy (main #8678 replaced _compile_splitk_reduce).
gbyu-amd
pushed a commit
to ROCm/ATOM
that referenced
this pull request
Dec 3, 2026
…4 747 tok/s/GPU (ASM prefill until LLM-Booster #273) (#4023) * recipes: 455-k3-recipe.md as run on 12-01 (1P1D on e15; ASM prefill until LLM-Booster #273) Squashes the 11-28 rewrite (1126 image, #813 config F on P, S1F on D) with what the 12-01 runs on four Helios trays (P = PP8 x TP1 on e15-09 + 07, D = DP8 EP8 on e15-05 + 06) showed: - Results, MLPerf Endpoints agentic, whole window: c1024 747 tok/s/GPU (22.4 tok/s/user, TTFT p50 6.23 s, TPOT p50 25.0 ms), c512 590, c192 383; DSpark acceptance 0.39-0.43; GSM8K 0.9621. The 11-22 G13 numbers stay as the reference. - P's FP8 prefill attention on ASM (P_PREFILL_ATTN, default asm): on the FlyDSL path a prefill that hits a cached prefix comes out wrong on k3-455-dev (#273), which the multi-turn benchmark hits on almost every turn (DSpark acceptance 5%, c1024 521 tok/s/GPU). Plus a multi-turn check next to GSM8K. - Software: k3-455-dev (with gyu's prefill stack since 11-30) + #3948 (PP mailbox) + ROCm/aiter#8978 (#8778) + #4021 (test); the runs used zejun/k3-455-dev of both repos. - Host rules from the crashes: one boot batch and amdgpu loaded on all four at the same moment, once per boot (a reload failed with smu -62); tcp_mtu_probing=1 against a content-dependent packet loss that hung D's gloo all_gather; TIKTOKEN_CACHE_DIR= (a crash left a 0-byte tiktoken cache entry that broke every later start). - Knobs: DSPARK_K, DSPARK_CONFIG. The warmup stops ~3 min after it stops issuing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * recipes: 455-k3 c192 on DSpark k=6 (439 tok/s/GPU vs 383 at k=4) DSPARK_K now defaults to 6 at POINT=c192 and stays 4 at c512 / c1024. 12-01, same deployment otherwise (P on ASM prefill): c192 439 tok/s/GPU, 56.9 tok/s/user, TTFT p50 0.97 s, TPOT p50 14.3 ms, acceptance 0.32 per token (k=4: 383, 47.0, 0.99 s, 13.8 ms, 0.43). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit ccdf37a)
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.
This updates the existing K3 TP1 FP8 backport with the measured implementation from c99781c9 and the final exact-M configurations from the 675-point retuning report. It preserves the earlier #8978 changes and the
k3-455-devlaunch wrappers; it does not merge the fullmainor c997 branch history.The implementation update copies three kernel files from c997: the generic split-K cluster barrier handling, disjoint LDS flush scratch/output offsets, and the output flush shared with the fused split-K epilogue. The existing tuner catalogs and host launch/cache paths are retained.
The separate exact-M table covers measured gfx1250 / CU256, E4M3fn inputs and BF16 output through the native preshuffled E8M0 and per-token/per-channel entry points. There are 165 exact records: 162 accepted retuned configurations and 3 c997-default compatibility records (
mla_q_bM256;ffn_downM120/M128). Those three preserve the measured c997 default when the older dev tables select differently; they are not additional tuning gains. Across 15 FP8 families and 45 M values through 16384, the final recommendation remains 162 retuned / 513 default points. Existing bucket tables are unchanged, unmeasured M falls through to the original selection, and explicit tuning files and power selection keep priority.Validation for this update:
aiterruntime test invocation was not run locally because the Windows preparation environment lacks Torch/FlyDSL. The tests are included inop_tests/test_gemm_host_dispatch_cache.pyfor the normal project environment.The original backport by zejunchen-zejun brought #8778 by aoli26 at ea7a5d8 onto
k3-455-dev, including its N-tail, underfilled-tile and aligned-scale changes. Its previously reported K3 1P1D branch (627e1ebd7, imagegfx1250-atom-k3-20261126) achieved GSM8K 5-shot strict-match 0.9621 ± 0.0053. That is historical validation of the earlier integration, not validation of this update; related model results remain tracked in #578.