Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
AutoAWQ
Commits
76edff62
Unverified
Commit
76edff62
authored
May 01, 2024
by
Younes Belkada
Committed by
GitHub
May 01, 2024
Browse files
FIX: 'awq_ext' is not defined error (#465)
parent
4fc6cc03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
awq/modules/linear/gemm.py
awq/modules/linear/gemm.py
+1
-1
No files found.
awq/modules/linear/gemm.py
View file @
76edff62
...
...
@@ -63,7 +63,7 @@ class WQLinearMMFunction(Function):
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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment