Repository navigation
[Config] Add MI350P (gfx950, 128 CU) a8w8 blockscale GEMM configs for Gemma-4-31B FP8-block - #7254
Conversation
… Gemma-4-31B FP8-block
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
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 |
There was a problem hiding this comment.
🔵 Needs a closer look
The CK/CKTile configurations were tuned on an older AITER revision, so confirming correctness and latency benefits on the current revision requires MI350P hardware validation unavailable in this review.
No open issues 🎉
What changed in this PR
Adds MI350P-specific tuning data to Aiter’s existing Gemma-4-31B FP8 block-scale GEMM configuration, allowing matching workloads to select tuned kernels instead of defaults.
Changes:
- Adds 84 configurations for gfx950 GPUs with 128 compute units across six projection shapes.
- Selects CK for 50 configurations and CK-Tile for 34.
- Preserves existing gfx942 rows and leaves runtime code unchanged.
| File | Description |
|---|---|
aiter/configs/model_configs/a8w8_blockscale_tuned_gemm_gemma4_31b.csv |
Appends MI350P-specific kernel selections and tuning measurements. |
Review effort: Balanced
a8w8_blockscale_untuned_gemm_gemma4_31b.csv lists the 98 shapes of a8w8_blockscale_tuned_gemm_gemma4_31b.csv (the gfx942 rows from ROCm#5062 and the new MI350P rows), so a retune keeps them.
Summary
Adds 84 tuned CK / CK-Tile a8w8 blockscale GEMM rows for Gemma-4-31B FP8-block on MI350P (gfx950, 128 CUs) to the existing
a8w8_blockscale_tuned_gemm_gemma4_31b.csv(which today only holds gfx942/304-CU rows from #5062).Motivation
On MI350P every dense projection of
RedHatAI/gemma-4-31B-it-FP8-blockprintednot found tuned config in a8w8_blockscale_tuned_gemm.csv, will use default config: the table has nocu_num=128rows, so lookup misses and the default kernel runs. That makes the FP8-block checkpoint slower than BF16 on this part.Changes
aiter/configs/model_configs/a8w8_blockscale_tuned_gemm_gemma4_31b.csv: +84 rows,gfx950,128, the six Gemma-4-31B projection shapes (N,K) = (16384,5376) (20480,5376) (43008,5376) (5376,16384) (5376,21504) (5376,8192), M on theget_padded_mladder 1..16384. 50 rows pickck, 34 pickcktile.aiter/configs/model_configs/a8w8_blockscale_untuned_gemm_gemma4_31b.csv(new): the 98 shapes of the tuned file (these MI350P rows plus the gfx942 rows from [CK] Add tuned CK a8w8 blockscale GEMM configs for Gemma-4-31B FP8-block #5062, which had no untuned list), as the tuner's input, so a retune keeps them.csrc/ck_gemm_a8w8_blockscale/gemm_a8w8_blockscale_tune.py(warmup 5, iters 51). No code change; gfx942 rows untouched.Performance (if applicable)
vLLM nightly 335dd77b, TP1,
ROCM_AITER_UNIFIED_ATTN, fp8 KV,--language-model-only, max-num-batched-tokens 16384. Prefill 8000/50 (peak total tok/s over conc 2-64), decode 50/4096 (peak output tok/s over conc 32-1024). Same image both arms; the only change is these rows (passed viaAITER_CONFIG_GEMM_A8W8_BLOCKSCALE).Testing
GSM8K 5-shot (strict): 0.957 before, 0.958 after.
Documentation
Config rows only.
Dependencies
Breaking Changes
None. Rows are keyed on
cu_num=128, so other GPUs are unaffected.PR Self-Review
Reviewed revision
14607ad
Behavior and intent
On MI350P (gfx950, 128 CUs) the six Gemma-4-31B FP8-block projection GEMMs (
gemm_a8w8_blockscale) now hit a tuned CK / CK-Tile row. Today the file only has gfx942 (304 CU) rows, so every MI350P lookup misses, logs "not found tuned config" and runs the default kernel, which makes the FP8-block checkpoint slower than BF16 on MI350P.Validation and unverified scope
csrc/ck_gemm_a8w8_blockscale/gemm_a8w8_blockscale_tune.py(warmup 5, iters 51); every row haserrRatio0.0.vllm bench serveprefill 8000/50 and decode 50/4096 sweeps, same image both arms, rows on vs off: prefill peak +79%, decode peak +35%; GSM8K 5-shot 0.957 -> 0.958.ck, 4cktile) exist with the samekernelIdand name in the current main instance lists (checked against main 551c50e).cu_num=128).PR-specific question
The rows are keyed on
(gfx950, cu_num=128, M, N, K)for (N, K) = (16384, 5376), (20480, 5376), (43008, 5376), (5376, 16384), (5376, 21504), (5376, 8192), M on the padded ladder 1 to 16384. The file is picked up by the existing*a8w8_blockscale_tuned_gemm*merge inaiter/jit/core.py. The diff only adds lines (+84 tuned rows, plus the new untuned list), and none of the 84 keys exists in any tuned a8w8 blockscale CSV on main (rechecked against main a0bae86), so every other shape and GPU keeps its current row or default.Changed op tests
None.