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] CUDA OOM during desc_act / act_group_aware Hessian permutation permutes W twice → scrambled weights #4168
Severity: high — silent corruption; only a WARN is logged Version: 7.11.0 @ 6c3421c
Summary
In GPTQ.quantize() the permutation block does W = W[:, perm] and then self.H = self.H[perm][:, perm] inside one try. The H permutation is the step likely to OOM: it needs two cols×cols temporaries, while W is only rows×cols.
When it OOMs, W has already been permuted. The except branch then runs W = W.to(cpu)[:, perm], permuting it a second time while H is permuted once. The rest of GPTQ runs with W and H on mismatched column orders.
quantization/gptq.py:2297-2310 (desc_act)
the same pattern in the act_group_aware branch just below (~2313-2330)
Found during an AI-assisted review (Claude Code) of 6c3421c; repros were run on RTX 4090/5090 (CUDA 13) and Radeon AI PRO R9700 (ROCm) unless marked static/suspected.
Activity
fix(gptq): permute W only once when the Hessian permutation OOMs (#4168…