Skip to content

Add gfx950 BF16 GEMM tuning configs (16 shapes, 203 configs) - #55

Merged
sunway513 merged 2 commits into
mainfrom
feat/gfx950-bf16-gemm-tuning
Apr 27, 2026
Merged

sunway513 merged 2 commits into
mainfrom
feat/gfx950-bf16-gemm-tuning

Conversation

@sunway513

Copy link
Copy Markdown
Owner

BF16 GEMM tuning configs for MI355X (gfx950) covering 16 operator shapes.

23.6% geomean improvement over hipBLASLt alone. ASM wins 454/826 configs.

Upstream target: ROCm/aiter

Tuned 203 configs (16 unique N,K shapes × 13 batch sizes) on MI355X using
GemmTuner with --mp 8 --iters 200 --warmup 50.

Shapes cover: DeepSeek-R1 (kv_proj, o_proj), GPT-OSS-120B, Qwen3-30B-A3B,
Qwen3.5-35B-A3B, Qwen3-Next-80B, LFM-2-24B, small MoE gate projections.

Best-of-3 backend selection (ASM vs hipBLASLt vs Triton) shows 23.6% geomean
improvement over hipBLASLt alone across 826 tested configs.

TODO: Remaining 76 (N,K) shapes need tuning (tuner hung after 16 shapes).
Priority: N=28672 (Llama gate_up), N=36864 (DeepSeek gate_up), N=106496 (405B).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:sglang SGLang integration tests
ci:atom ATOM benchmark (DeepSeek-R1 + GPT-OSS)
ci:vllm vLLM benchmark
ci:all All of the above

Add labels via the sidebar or gh pr edit 55 --add-label <label>

Added 21 shapes from hipBLASLt-only retry (bypassing ASM tile failures).
Total: 36/92 unique (N,K) shapes tuned.

Remaining 56 shapes need further investigation — filed ROCm#2515.
Root causes: ASM tile alignment for non-standard N, grid overflow for
large M with small tiles, tuner not falling through to hipBLASLt.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sunway513
sunway513 merged commit d4e820a into main Apr 27, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant