Repository navigation
Conversation
The gfx942 table does not cover MI355X. These rows are the tuner picks for the TP1, TP2, TP4, and TP8 widths Qwen3.8-27B-FP8 actually runs. Co-authored-by: Cursor <[email protected]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
READY FOR HUMAN REVIEWPR Self-ReviewRevision Author self-review accepted. Readiness report: Author answers
Show the author's self-review answersBehavior and intentValidation and unverified scopePR-specific questionChanged op testsPR state
Copilot findings
Code and op-test hygiene
Required CI
Shadow mode reports what would block but keeps the status successful. Set |
Co-authored-by: Bipradip Chowdhury <[email protected]> Signed-off-by: Abraham Zewoudie <[email protected]>
|
|
Hi, I tested 35b2b12 on an MI355X using the same CI wheel for both arms and switching only the merged tuning table. The new CK rows can silently corrupt valid output when the lookup pads M. For example, TP1 gate_up at (M, N, K) = (32767, 34816, 5120) picks the new M=32768 CK row and produces about 30,000 out-of-tolerance elements. This reproduces in eager execution and graph replay. The existing FlyDSL path agrees with an independent FP32 reference rounded to BF16 at the affected positions. Tuning rows CK masks invalid stores by adding 0x80000000 to a 32-bit byte offset. In these large outputs, the offset for a padded row already exceeds 2 GiB. The addition wraps and writes into valid output. CK store implementation Please drop the 18 affected CK rows. In this diff, they are the added ck rows with (M - 1) * N * 2 > 2**31 for BF16 output. I reproduced the issue at M = tuned_M - 1 for all 18 rows. Removing those rows restored the original dispatch and eliminated the out-of-tolerance elements in all 18 cases. |
These rows satisfy (M-1)*N*2 > 2**31 for BF16 output. When M is padded, CK's masked-store offset (+0x80000000 on a 32-bit byte offset) wraps and writes into valid output. Removing them restores the original dispatch for those shapes; all other gfx950 rows and all 45 gfx942 rows are unchanged. Reported by @yifehuan in review. Co-authored-by: Cursor <[email protected]>
|
Hi @yifehuan. thanks for the detailed repro. We dropped the 18 rows in |
The helper had grown to ~450 lines plus ~450 lines of tests, mostly special cases for renames, moves, multi-file groups, ambiguity and summary counts. It is an advisory hint the reviewer checks against the diff, so drop them: a tuned CSV pairs with the one untuned CSV in its folder whose name has the same tokens, and the four mismatch kinds are set differences over the rows the PR changed. Same findings on recent tuning merges (ROCm#8016, ROCm#8161, ROCm#7109, ROCm#8566, ROCm#8490); renames and moves are left to the reviewer. Also drop the triage audit plumbing for tuning_coverage.txt (A5 findings are backed through verdicts like any other rule), the .toml/tuning JSON triggers (aiter tracks no tuning .toml files) and the unrelated pre-commit change. Key columns are no longer dropped for the whole pair when one untuned cell is blank, which hid real changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Motivation
a8w8_blockscale_tuned_gemm_qwen38_27b.csvon main only has gfx942 / 304 CU rows. Qwen3.8-27B-FP8 on MI355X (gfx950, 256 CUs) therefore misses this table and falls back to the default a8w8 blockscale kernel for every TP width.Added tuning data
809 gfx950 rows appended to
aiter/configs/model_configs/a8w8_blockscale_tuned_gemm_qwen38_27b.csv. The existing 45 gfx942 rows are unchanged. Every added kernel name already appears in another tuned table on main, and every row has tunererrRatio0.An earlier revision had 827 rows. Review found 18 CK rows (gfx950, K=5120) where
(M-1) * N * 2 > 2**31at BF16 output. For those shapes, a padded row's 32-bit byte offset exceeds 2 GiB, and CK's masked-store offset wraps into valid output. Those 18 rows are removed, and the shapes fall back to the default a8w8 blockscale kernel.37 shapes were left out because
a8w8_blockscale_tuned_gemm_qwen3_14b.csvalready has the same(gfx950, cu_num=256, M, N, K)and a fasteruson 36 of them. Adding them would make the model-config merge reject the file. The omitted shapes are5120×17408,7168×5120, and34816×5120at the M values that table already covers. The one shape where this tune was faster (M=16, 7168×5120, 11.38 µs vs 12.15 µs) is omitted for the same reason.Serving
TP4, isolated GEMM-tuning ratchet on MI355X, ISL 1024 / OSL 1024, mean of reps 2–3:
TP1, TP2, and TP8 rows are the same tuner output that the gemm-tuned images served. They do not have a separate isolated serving A/B in this PR.
Test plan
*a8w8_blockscale_tuned_gemm*.csvhas no duplicate(gfx, cu_num, M, N, K)Reviewed revision
17d69db493f1Behavior and intent
Adds 809 gfx950 (MI355X, cu_num=256) rows to
a8w8_blockscale_tuned_gemm_qwen38_27b.csv. No code changes. The existing 45 gfx942 rows are unchanged. Main has only gfx942 rows, so Qwen3.8-27B-FP8 on MI355X falls back to the default a8w8 blockscale kernel at every TP width. The table is keyed on (gfx, cu_num, M, N, K), so the new rows only match gfx950 with cu_num=256.Validation and unverified scope
Commands:
a8w8_blockscale_tuned_gemm_qwen38_27b.csvwith Python'scsvmodule. Result: 854 rows, 0 duplicates.git diff origin/main -- aiter/configs/model_configs/a8w8_blockscale_tuned_gemm_qwen38_27b.csv | grep '^-[^-]'. Result: no output.vllm serve Qwen/Qwen3.8-27B-FP8 --tensor-parallel-size {1,2,4,8} ...withAITER_LOG_TUNED_CONFIG=1, then 32 completion requests at ISL 1024 / OSL 1024. Shapes matched from[aiter] shape is ... found padded_M ... is tunedlog lines.Validated:
17d69db493f1), vLLM 0.34.1rc1.dev100+gc2cc003c5 (vllm/vllm-openai-rocm:nightly), both arms fresh, same load:M=32768, N=34816, K=5120) was on a removed row, so 441 of the remaining 809 rows are hit. TP2, TP4, and TP8 counts are unchanged, because the removed rows weren't hit at those widths.Unverified:
PR-specific question
Workload key: Qwen/Qwen3.8-27B-FP8 a8w8 blockscale linear layers (qkv, o_proj, gate_up, down_proj, GDN in_proj) at the (N, K) and M values in the PR table, on gfx950 with cu_num=256. The 37 keys already covered by
a8w8_blockscale_tuned_gemm_qwen3_14b.csvare omitted, so the merge doesn't see duplicate keys. The control-vs-PR run above shows unrelated shapes keep their selection: all 314 changed selections (rerun 2026-11-26) involve a PR row, and there are 0 unexplained differences.Changed op tests
None.