Repository navigation
[Triton/Gluon] [Bench] Remove bench_gemm_afp4wfp4_pre_quant_atomic - #6073
Conversation
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.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
There was a problem hiding this comment.
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.
|
@nidal567 @brunomazzottiamd we might need to add a bench for a16wfp4 gemm. Please note. |
Motivation
bench_gemm_afp4wfp4_pre_quant_atomic.pyfails on every run before it measures anything:It imports
generate_gemm_afp4wfp4_pre_quant_inputsfrom a test module that no longer exists. The DS FP4 fusion work (#1371, #1434) renamed that test totest_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:
Technical Details
op_tests/op_benchmarks/triton/bench_gemm_afp4wfp4_pre_quant_atomic.py.gemm_afp4wfp4_pre_quant_atomicentry fromop_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 inaiter/ops/triton/__init__.pyand the tuning harness are left alone. Removing the op is a separate change.Test Plan
git grep bench_gemm_afp4wfp4_pre_quant_atomicbench_schema.yamlwithyaml.safe_load.Test Result
git grepfinds no other references to the bench.bench_schema.yamlstill parses. Nothing in the repo reads it by name.