Skip to content

[Triton/Gluon] [Bench] Remove bench_gemm_afp4wfp4_pre_quant_atomic - #6073

Merged
azaidy merged 1 commit into
mainfrom
remove/bench-gemm-afp4wfp4-pre-quant-atomic
Oct 5, 2026
Merged

azaidy merged 1 commit into
mainfrom
remove/bench-gemm-afp4wfp4-pre-quant-atomic

Conversation

@zhanglx13

Copy link
Copy Markdown
Contributor

Motivation

bench_gemm_afp4wfp4_pre_quant_atomic.py fails on every run before it measures anything:

ModuleNotFoundError: No module named 'op_tests.triton_tests.gemm.basic.test_gemm_afp4wfp4_pre_quant_atomic'

It imports generate_gemm_afp4wfp4_pre_quant_inputs from a test module that no longer exists. The DS FP4 fusion work (#1371, #1434) renamed that test to test_gemm_a16wfp4.py. We see the failure in a weekly gfx950 Triton perf run.

#2601 tried to restore the helper. It was closed with this note from @azaidy:

This is a deprecated kernel wrapper - its superseded by gemm_a16wfp4 and will be removed. The solution is to delete the bench as well.

Technical Details

  • Delete op_tests/op_benchmarks/triton/bench_gemm_afp4wfp4_pre_quant_atomic.py.
  • Remove its gemm_afp4wfp4_pre_quant_atomic entry from op_tests/op_benchmarks/triton/bench_schema.yaml.

The deprecated op itself, aiter/ops/triton/gemm/basic/gemm_afp4wfp4_pre_quant_atomic.py, and its references in aiter/ops/triton/__init__.py and the tuning harness are left alone. Removing the op is a separate change.

Test Plan

  • git grep bench_gemm_afp4wfp4_pre_quant_atomic
  • Load bench_schema.yaml with yaml.safe_load.

Test Result

  • git grep finds no other references to the bench.
  • bench_schema.yaml still parses. Nothing in the repo reads it by name.

The benchmark cannot run: it imports generate_gemm_afp4wfp4_pre_quant_inputs
from op_tests.triton_tests.gemm.basic.test_gemm_afp4wfp4_pre_quant_atomic,
a module that no longer exists. The DS FP4 fusion work (#1371, #1434)
renamed that test to test_gemm_a16wfp4.py, so every run fails with
ModuleNotFoundError.

#2601 tried to restore the helper. It was closed because
gemm_afp4wfp4_pre_quant is a deprecated wrapper, superseded by
gemm_a16wfp4 and slated for removal, and the bench should be deleted.
This does that, and drops the bench's entry from bench_schema.yaml.
@zhanglx13
zhanglx13 requested review from a team and a balanced review from Copilot October 2, 2026 00:22
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Oct 2, 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 6073 --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 [Triton] [Bench] Remove bench_gemm_afp4wfp4_pre_quant_atomic [Triton/Gluon] [Bench] Remove bench_gemm_afp4wfp4_pre_quant_atomic Oct 2, 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

🟢 Approval recommended

The benchmark and its schema metadata are removed consistently without affecting the retained deprecated operation.

Review effort: Balanced
Findings: None

What changed in this PR

Removes a broken benchmark for a deprecated GEMM wrapper.

Changes:

  • Deletes the obsolete benchmark script.
  • Removes its benchmark schema entry.
File Description
op_tests/​op_benchmarks/​triton/​bench_gemm_afp4wfp4_pre_quant_atomic.py Deletes the unusable benchmark.
op_tests/​op_benchmarks/​triton/​bench_schema.yaml Removes the corresponding schema entry.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@zufayu
zufayu requested review from a team and Dewei-Wang-sh October 2, 2026 00:32

@azaidy azaidy 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!

@azaidy

azaidy commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

@nidal567 @brunomazzottiamd we might need to add a bench for a16wfp4 gemm. Please note.

@azaidy
azaidy merged commit eacab04 into main Oct 5, 2026
@azaidy
azaidy deleted the remove/bench-gemm-afp4wfp4-pre-quant-atomic branch October 5, 2026 22:45
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.

4 participants