Repository navigation
[Triton/Gluon] [Config] Add Qwen3.8-27B bf16 GEMM tunings for gfx950 - #6156
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
04405f8 to
03f370a
Compare
03f370a to
bbdfd91
Compare
Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Ethan Ky <[email protected]>
bbdfd91 to
00ff8d4
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
Hardware-specific dispatch and performance behavior requires final gfx950 validation despite no static configuration errors found.
0 open findings
What changed in this PR
Adds gfx950 BF16 GEMM dispatch and Triton tuning data for Qwen3.8-27B projection shapes.
Changes:
- Adds 56 Qwen3.8-27B tuned dispatch rows and corresponding tuning inputs.
- Adds six shape-specific Triton GEMM configuration tables.
- Covers decode and prefill batch sizes from M=16 through M=8192.
| File | Description |
|---|---|
aiter/configs/bf16_untuned_gemm.csv |
Adds 56 target GEMM shapes. |
aiter/configs/model_configs/qwen3_8_27b_bf16_tuned_gemm.csv |
Adds backend selections and measurements. |
.../GEMM-A16W16-N=96-K=5120.json |
Tunes the narrow BA projection. |
.../GEMM-A16W16-N=5120-K=6144.json |
Tunes output projections. |
.../GEMM-A16W16-N=5120-K=17408.json |
Tunes the down projection. |
.../GEMM-A16W16-N=14336-K=5120.json |
Tunes the QKV projection. |
.../GEMM-A16W16-N=16384-K=5120.json |
Tunes the QKVZ projection. |
.../GEMM-A16W16-N=34816-K=5120.json |
Tunes the gate/up projection. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Motivation
Qwen3.8-27B BF16 on MI355x served has no bf16 GEMM rows in
aiter/configs, so serving with vLLM logsnot found tuned config ... using torchfor every projection and falls back to hipBLASLt's heuristic.The affected shapes (bf16 in/out, no bias,
scaleAB=0,bpreshuffle=0, gfx950 / cu_num 256):in_proj_qkvzin_proj_bain_proj_qkvz+in_proj_bafused (ATOM layout)out_proj/o_projqkv_projgate_up_projdown_projTechnical Details
Config changes:
aiter/configs/model_configs/qwen3_8_27b_bf16_tuned_gemm.csv: 56 rows (the seven tuned shapes atM = 16, 32, 48, 64, 1024, 2048, 4096, 8192).
aiter/configs/bf16_untuned_gemm.csv: 56 new shapesaiter/ops/triton/configs/gfx950/triton/gemm/gemm_a16w16/: six new per-shape Triton configs(with the
M_LEQ_16/32/64/1024/8192buckets from a sweep with Triton tuning harness and every other bucket copied fromDEFAULT.json).Tuned on MI355X (gfx950, cu_num 256), ROCm 7.2.3 / hipBLASLt 1.2.70203, aiter v0.1.22.post1:
Test Plan
python3 -m unittest op_tests.tuning_tests.test_config_shape_collision -vpython3 -m unittest op_tests.tuning_tests.test_csv_validation -vTest Result
Mean kernel times (over all GDN/attention layers in a step):
in_proj_qkvzqkv_projgate_up_projout_proj/o_projdown_projin_proj_qkvzgate_up_projout_proj/o_projout_proj/o_projbf16gemm_fp32bf16_tn_48x64_splitk_cleanqkv_projbf16gemm_bf16_tn_256x256gate_up_projbf16gemm_bf16_tn_256x256qkv_projbf16gemm_bf16_tn_256x256gate_up_projbf16gemm_bf16_tn_256x256The remaining shapes record
torch: no asm or Triton candidate beat it.test_config_shape_collision: 20 tests OK.test_csv_validation: 18 tests OK.Submission Checklist