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
89f3feae
Unverified
Commit
89f3feae
authored
Nov 02, 2023
by
Casper
Committed by
GitHub
Nov 02, 2023
Browse files
Fix init quant (#136)
parent
eea08aa6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
awq/quantize/quantizer.py
awq/quantize/quantizer.py
+1
-1
No files found.
awq/quantize/quantizer.py
View file @
89f3feae
...
...
@@ -332,7 +332,7 @@ class AwqQuantizer:
clear_memory
()
if
"attention_mask"
i
n
layer_kwargs
.
keys
()
:
if
layer_kwargs
.
get
(
"attention_mask"
)
i
s
not
None
:
layer_kwargs
[
"attention_mask"
]
=
layer_kwargs
[
"attention_mask"
].
to
(
"cuda"
)
return
modules
,
layer_kwargs
,
inps
...
...
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