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
48be2ee2
Commit
48be2ee2
authored
Sep 09, 2023
by
Casper Hansen
Browse files
Default to GEMM
parent
c58ec73b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/basic_quant.py
examples/basic_quant.py
+1
-1
No files found.
examples/basic_quant.py
View file @
48be2ee2
...
@@ -3,7 +3,7 @@ from transformers import AutoTokenizer
...
@@ -3,7 +3,7 @@ from transformers import AutoTokenizer
model_path
=
'lmsys/vicuna-7b-v1.5'
model_path
=
'lmsys/vicuna-7b-v1.5'
quant_path
=
'vicuna-7b-v1.5-awq'
quant_path
=
'vicuna-7b-v1.5-awq'
quant_config
=
{
"zero_point"
:
True
,
"q_group_size"
:
128
,
"w_bit"
:
4
,
"version"
:
"GEM
V
"
}
quant_config
=
{
"zero_point"
:
True
,
"q_group_size"
:
128
,
"w_bit"
:
4
,
"version"
:
"GEM
M
"
}
# Load model
# Load model
model
=
AutoAWQForCausalLM
.
from_pretrained
(
model_path
)
model
=
AutoAWQForCausalLM
.
from_pretrained
(
model_path
)
...
...
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