Skip to content

[CK] [FlyDSL] Mxfp8 w_scale 1*32 - #6191

Closed
solinzby1 wants to merge 3 commits into
mainfrom
mxfp8_32
Closed

solinzby1 wants to merge 3 commits into
mainfrom
mxfp8_32

Conversation

@solinzby1

Copy link
Copy Markdown
Contributor

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

@solinzby1
solinzby1 requested review from a team and a balanced review from Copilot October 7, 2026 01:42
@github-actions

github-actions Bot commented Oct 7, 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
multigpu 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: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
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 6191 --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.

@github-actions github-actions Bot changed the title Mxfp8 w_scale 1*32 [CK] [FlyDSL] Mxfp8 w_scale 1*32 Oct 7, 2026

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

The benchmark accepts non-preshuffled 1x32 runs that pass incompatible scales to the 128x128 backend.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds 1x32 MXFP8 scaling to the gfx950 FlyDSL preshuffled GEMM path alongside existing 128x128 scaling.

Changes:

  • Threads scale-block selection through dispatch, kernels, tuning, and ahead-of-time compilation.
  • Adds 1x32 benchmark preparation and tuned configurations.
File Description
op_tests/​test_gemm_a8w8_blockscale.py Adds scale-block selection and scale shuffling.
csrc/​ck_gemm_a8w8_blockscale/​gemm_a8w8_blockscale_tune.py Tunes both scale layouts.
aiter/​ops/​gemm_op_a8w8.py Dispatches by inferred scale layout.
aiter/​ops/​flydsl/​mxscale_preshuffle_kernels.py Validates and forwards scale-block contracts.
aiter/​ops/​flydsl/​kernels/​gemm/​mxscale_preshuffle.py Updates scale addressing and small-row stores.
aiter/​ops/​flydsl/​gemm_tune/​flydsl_gemm_mxscale_preshuffle_common.py Defines scale contracts and candidate eligibility.
aiter/​configs/​model_configs/​dsv4_a8w8_blockscale_mxscale_bpreshuffle_tuned_gemm.csv Adds 1x32 tuned configurations.
aiter/​aot/​flydsl/​gemm.py Compiles layout-specific kernel variants.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +490 to +491
if not args.flydsl:
parser.error(f"--w_scale_block {args.w_scale_block} requires --flydsl")
Copilot AI balanced review requested due to automatic review settings October 7, 2026 11:43

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

The new half-step K path needs automated correctness coverage for both added scale layouts.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)

Comment on lines +194 to +195
half_tail = K % BK != 0
if half_tail:
@solinzby1
solinzby1 requested a review from amd-ruitang3 October 8, 2026 01:02
@zufayu
zufayu requested a review from coderfeli October 8, 2026 02:09
@zufayu
zufayu requested review from xytpai and yadaish October 15, 2026 07:17
@zufayu
zufayu removed the request for review from yadaish October 29, 2026 10:17
@amd-ruitang3
amd-ruitang3 removed their request for review November 3, 2026 05:35
@zufayu
zufayu requested review from aoli26 and yadaish and removed request for coderfeli November 11, 2026 06:48
@zufayu zufayu assigned aoli26 and unassigned coderfeli Nov 11, 2026
@zufayu
zufayu requested a review from coderfeli November 11, 2026 06:48
@solinzby1 solinzby1 closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants