Skip to content

Commit

Permalink
FIX: 'awq_ext' is not defined error (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
younesbelkada committed May 1, 2024
1 parent 4fc6cc0 commit 76edff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awq/modules/linear/gemm.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def forward(
def backward(ctx, grad_output):
input, qweight, qzeros, scales, bias = ctx.saved_tensors

if awq_ext is None:
if not AWQ_INSTALLED:
raise ValueError(
"auto-awq kernels is needed to be installed to use `.backward()`. Make sure to install the auto-awq kernels"
" by following the installation guides in https://github.com/casper-hansen/AutoAWQ_kernels"
Expand Down

0 comments on commit 76edff6

Please sign in to comment.