Skip to content

[Config] Tune Preshuffled A8W8 GEMM for DSR1 Shapes on gfx1250 - #7477

Merged
demonsan merged 1 commit into
mainfrom
farlukas/dsr1-fp8-tuning
Nov 5, 2026
Merged

demonsan merged 1 commit into
mainfrom
farlukas/dsr1-fp8-tuning

Conversation

@farlukas

@farlukas farlukas commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Tune preshuffled a8w8 GEMM CSV for DSR1 shapes on gfx1250.

Motivation

There are no tuned configs for DSR1 shapes on gfx1250.

Changes

  • aiter/configs/model_configs/dsv3_a8w8_bpreshuffle_tuned_gemm.csv:
    • q_b_proj: N=6114, K=1536
    • kv_b_proj: N=8192, K=512
    • o_proj: N=7168, K=4096

Performance (if applicable)

Hardware Workload/configuration Before After Change
gfx1250 q_b_proj, M=1, N=6144, K=1536 3.59 µs
gfx1250 q_b_proj, M=2, N=6144, K=1536 3.73 µs
gfx1250 q_b_proj, M=4, N=6144, K=1536 3.64 µs
gfx1250 q_b_proj, M=8, N=6144, K=1536 3.67 µs
gfx1250 q_b_proj, M=16, N=6144, K=1536 3.64 µs
gfx1250 q_b_proj, M=32, N=6144, K=1536 3.82 µs
gfx1250 q_b_proj, M=64, N=6144, K=1536 4.04 µs
gfx1250 q_b_proj, M=128, N=6144, K=1536 4.26 µs
gfx1250 q_b_proj, M=256, N=6144, K=1536 5.23 µs
gfx1250 q_b_proj, M=512, N=6144, K=1536 6.05 µs
gfx1250 q_b_proj, M=1024, N=6144, K=1536 8.26 µs
gfx1250 q_b_proj, M=2048, N=6144, K=1536 11.80 µs
gfx1250 q_b_proj, M=4096, N=6144, K=1536 21.39 µs
gfx1250 q_b_proj, M=8192, N=6144, K=1536 38.43 µs
gfx1250 kv_b_proj, M=1, N=8192, K=512 3.37 µs
gfx1250 kv_b_proj, M=2, N=8192, K=512 3.41 µs
gfx1250 kv_b_proj, M=4, N=8192, K=512 3.43 µs
gfx1250 kv_b_proj, M=8, N=8192, K=512 3.44 µs
gfx1250 kv_b_proj, M=16, N=8192, K=512 3.47 µs
gfx1250 kv_b_proj, M=32, N=8192, K=512 3.45 µs
gfx1250 kv_b_proj, M=64, N=8192, K=512 3.57 µs
gfx1250 kv_b_proj, M=128, N=8192, K=512 3.79 µs
gfx1250 kv_b_proj, M=256, N=8192, K=512 3.99 µs
gfx1250 kv_b_proj, M=512, N=8192, K=512 4.33 µs
gfx1250 kv_b_proj, M=1024, N=8192, K=512 5.11 µs
gfx1250 kv_b_proj, M=2048, N=8192, K=512 7.70 µs
gfx1250 kv_b_proj, M=4096, N=8192, K=512 12.80 µs
gfx1250 kv_b_proj, M=8192, N=8192, K=512 22.72 µs
gfx1250 o_proj, M=1, N=7168, K=4096 4.78 µs
gfx1250 o_proj, M=2, N=7168, K=4096 4.81 µs
gfx1250 o_proj, M=4, N=7168, K=4096 4.82 µs
gfx1250 o_proj, M=8, N=7168, K=4096 4.86 µs
gfx1250 o_proj, M=16, N=7168, K=4096 4.94 µs
gfx1250 o_proj, M=32, N=7168, K=4096 5.54 µs
gfx1250 o_proj, M=64, N=7168, K=4096 6.37 µs
gfx1250 o_proj, M=128, N=7168, K=4096 7.30 µs
gfx1250 o_proj, M=256, N=7168, K=4096 9.17 µs
gfx1250 o_proj, M=512, N=7168, K=4096 12.29 µs
gfx1250 o_proj, M=1024, N=7168, K=4096 16.06 µs
gfx1250 o_proj, M=2048, N=7168, K=4096 26.02 µs
gfx1250 o_proj, M=4096, N=7168, K=4096 48.11 µs
gfx1250 o_proj, M=8192, N=7168, K=4096 92.97 µs

Testing

  • Unit tests added or updated
  • Performance benchmarks run
  • Tested on MI250X
  • Tested on MI300X
  • Tested on MI455

Documentation

  • Docstrings updated
  • User guide updated
  • Performance guide updated
  • No documentation change is needed, with the reason stated below

Only a tuning change.

Dependencies

  • No new third-party dependencies added
  • New dependencies are listed and justified below

Breaking Changes

PR Self-Review

Reviewed revision

Behavior and intent

Validation and unverified scope

PR-specific question

Changed op tests

@farlukas
farlukas marked this pull request as ready for review November 4, 2026 21:18
@farlukas
farlukas requested a review from a team November 4, 2026 21:18
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

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

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the gfx1201 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 7477 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

@aiter-bot

Copy link
Copy Markdown

NOT READY FOR HUMAN REVIEW

PR Self-Review

Revision f844e0c82f18 · mode shadow

Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision.

Questions to answer in the PR description

  1. What behavior does this PR change, and why is the existing behavior insufficient?
  2. What did you validate, and what remains unverified? Include commands, hardware/configuration and results.
  3. Which exact workload keys consume these configuration changes, and what evidence shows that unrelated shapes keep their previous selection?
  4. For every changed op_tests/ file, what behavior does it cover and why is it not redundant? Write None if no op test changed.

Edit the PR Self-Review section in the PR description. Include the current revision SHA; this comment refreshes automatically.

Missing or invalid answers

  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA
  • FAIL — Behavior and intent has no substantive answer
  • FAIL — Validation and unverified scope has no substantive answer
  • FAIL — PR-specific question has no substantive answer

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

@github-actions github-actions Bot changed the title Tune Preshuffled A8W8 GEMM for DSR1 Shapes on gfx1250 [Config] Tune Preshuffled A8W8 GEMM for DSR1 Shapes on gfx1250 Nov 4, 2026
@github-actions github-actions Bot added the Config label Nov 4, 2026
@zufayu
zufayu requested a review from demonsan November 5, 2026 01:19

@demonsan demonsan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@demonsan
demonsan merged commit 4ec2c37 into main Nov 5, 2026
@demonsan
demonsan deleted the farlukas/dsr1-fp8-tuning branch November 5, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants