You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] AWQ format=GEMV on a bf16 model crashes when layer 0 is packed, after calibration has run: the GEMV kernels are fp16-only and nothing checks or casts up front #4394
Severity: low–medium. Status: confirmed on a Radeon AI PRO R9700 at def6e61. On CUDA it is likely the same, since AwqGEMVLinear.SUPPORTS_DTYPES=[fp16]. Kind: pre-existing; 842d666 fails the same way.
Where
nn_modules/qlinear/gemv_awq.py:79 and :364: SUPPORTS_DTYPES=[torch.float16].
NotImplementedError: AwqGEMVTritonLinear only supports [torch.float16]: actual dtype = torch.bfloat16.
It is raised in layer-0 finalize, after the AWQ search has already run.
Expected: load the model in fp16 for GEMV, or reject the config at config/load time, before calibration.
Workaround:GPTQModel.load(..., dtype=torch.float16) works. ppl is 24.71 with AWQ_GEMV_TRITON, against 24.32 for GEMM.
Related (low, possibly by design)
On ROCm, loading a GEMV checkpoint with backend=AUTO raises NotImplementedError in models/loader.py:1379 (_reject_native_awq_gemv_on_rocm). This happens even though AWQ_GEMV_TRITON declares ROCm support and works when requested explicitly. AUTO could select it instead; #4107 only covered the quantize-side AUTO choice.
Found during an AI-assisted review (Claude Code, round 12) of def6e61; repros were run at that commit (A/B against 842d666 where noted) on RTX 4090/5090 (CUDA 13) and/or Radeon AI PRO R9700 (ROCm) unless marked static/suspected.
Taking this. I'll investigate against current main, add a targeted regression test, and open a PR. Will report back here if the claim turns out to be invalid or already fixed.
Fixed in #4420: AWQ GEMV/GEMV_FAST/LLM_AWQ configs now reject a non-fp16 target dtype at load time (before calibration), with dtype=torch.float16 named as the fix.
Activity
Qubitium commentedon Nov 16, 2026
Taking this. I'll investigate against current
main, add a targeted regression test, and open a PR. Will report back here if the claim turns out to be invalid or already fixed.Qubitium commentedon Nov 16, 2026
Fixed in #4420: AWQ GEMV/GEMV_FAST/LLM_AWQ configs now reject a non-fp16 target dtype at load time (before calibration), with
dtype=torch.float16named as the fix.fix(awq): resolve fp16-only GEMV dtype before calibration (#4394) (#4424
fix: restore base modules and re-pick CPU kernels after weight-only q…