Repository navigation
test(kernels): classify the portable CPU readers in the fusion inventory (#4599, #4736) - #4774
Merged
Merged
Conversation
…4736) The two new readers are registered kernels, so the fusion inventory must account for them, and #4737's convention is that each compile-level declaration is pinned by a measured case in the per-family matrix. - tests/module_tree/test_fusion_kernel_backends.py: add the three CPU-only portable readers (GEMV #4554, GEMV_FAST and LLM_AWQ #4736) to EXCLUDED with the reason they have no fused executor adapter. The test fails on this branch without the entry. - tests/kernels/test_kernel_compile_levels_awq.py: add CPU cases for the two new readers. Both measure eager + dynamo + aot_eager, matching the declared AOT_EAGER; inductor/cudagraph are device-only skips and capture is not claimed. No runtime code change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the kernel-inventory gap left by #4753 (and the pre-existing one from #4599).
Problem
tests/module_tree/test_fusion_kernel_backends.py::test_every_registered_gptq_awq_kernel_has_an_explicit_fusion_contractis red on
main:Every registered GPTQ/AWQ kernel must be either admitted by the fusion executor
(
kernel_specs()) or listed inEXCLUDEDwith a reason. The portable CPUreaders added in #4599 (
AwqGEMVTorchLinear) and #4753(
AwqGEMVFastTorchLinear,LLMAwqTorchLinear) are in neither.While reviewing #4753 I also found that its two new
AOT_EAGERdeclarationswere not pinned by a measured case, which #4737 makes the convention for every
kernel.
Changes
tests/module_tree/test_fusion_kernel_backends.py: add the three CPU-onlyportable readers to
EXCLUDED. They dequantize to a dense tile per forward,so no fused executor group can consume their packed storage.
tests/kernels/test_kernel_compile_levels_awq.py: add CPU cases forAwqGEMVFastTorchLinearandLLMAwqTorchLinear. Both measureeager+dynamo+aot_eager, matching the declaredAOT_EAGER(inductor/cudagraph are device-only skips; capture is not claimed).
No runtime code change.
Tests
main(a55bca3ac): the fusion assertion above.tests/module_tree/test_fusion_kernel_backends.py+tests/kernels/test_kernel_compile_levels_awq.py+tests/kernels/test_kernel_compile_protocol.py-> 87 passed, 271 skipped(Linux aarch64, CPU-only; the CUDA cases are skipped without a device).
AOT_EAGERon CPU.ruff checkclean.