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
637d4abd
Unverified
Commit
637d4abd
authored
Sep 04, 2023
by
Casper
Committed by
GitHub
Sep 04, 2023
Browse files
Merge pull request #21 from qwopqwop200/main
fuse_layers bug fix
parents
783afe50
9106ce29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
awq/models/base.py
awq/models/base.py
+4
-1
No files found.
awq/models/base.py
View file @
637d4abd
...
...
@@ -50,7 +50,10 @@ class BaseAWQForCausalLM(nn.Module):
self
.
_awq_quant
()
self
.
is_quantized
=
True
@
staticmethod
def
fuse_layers
(
model
):
pass
def
_awq_quant
(
self
):
assert
self
.
quant_config
[
"zero_point"
],
"We only support zero_point quantization now."
layers
=
self
.
get_model_layers
(
self
.
model
)
...
...
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