Skip to content

fix: drop group_size=32 from AwqMacheteLinear, which native Machete rejects (#4218) - #4267

Merged
Qubitium merged 1 commit into
mainfrom
pr/4218
Nov 16, 2026
Merged

Qubitium merged 1 commit into
mainfrom
pr/4218

Conversation

@Qubitium

Copy link
Copy Markdown
Collaborator

Summary

AwqMacheteLinear advertised group_size=32 but the native Machete kernel requires group_size % 64 == 0, so AUTO ranked it first for AWQ gs=32 and the first forward failed on Hopper.

What Changed

  • gptqmodel/nn_modules/qlinear/machete_awq.py: SUPPORTS_GROUP_SIZE = [-1, 64, 128] (matches MacheteLinear), with a comment.
  • Added tests/kernels/test_awq_machete_group_size.py (validate + AUTO ranking with mocked availability).

Tests

pytest tests/kernels/test_awq_machete_group_size.py -q   # 6 passed
ruff check <changed files>   # clean

Native Machete was not executed (no SM90, extension unbuilt); the selection test asserts the bad candidate is dropped for gs=32 and kept for gs=64.

Fixes #4218

Model Support / Module Plan

N/A — no new model types or registry entries.

Verification environment

No compiled GPTQModel extensions are built in this environment (Machete/Marlin/QQQ-CUDA unavailable), so hardware-specific paths are called out explicitly above. The 19 fix branches from this sprint merge cleanly into one integration branch; the combined run was 195 passed, 2 skipped, ruff check clean.

@Qubitium
Qubitium merged commit a2e1761 into main Nov 16, 2026
6 checks passed
@Qubitium
Qubitium deleted the pr/4218 branch November 16, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] AwqMacheteLinear declares group_size=32, which the native Machete kernel can't run; AUTO ranks it first for AWQ gs=32

1 participant