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
ebe8fc3f
Unverified
Commit
ebe8fc3f
authored
Feb 03, 2024
by
Casper
Committed by
GitHub
Feb 03, 2024
Browse files
Fix n_samples (#326)
parent
cc75d0e8
Changes
1
Hide 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 @
ebe8fc3f
...
...
@@ -418,7 +418,7 @@ class AwqQuantizer:
return
best_max_val
.
squeeze
(
1
)
def
init_quant
(
self
,
n_samples
=
2
,
seqlen
=
512
):
def
init_quant
(
self
,
n_samples
=
128
,
seqlen
=
512
):
modules
=
self
.
awq_model
.
get_model_layers
(
self
.
model
)
samples
=
get_calib_dataset
(
data
=
self
.
calib_data
,
...
...
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