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
affd1906
Commit
affd1906
authored
Sep 13, 2023
by
Casper Hansen
Browse files
Correct example
parent
219ccb33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/basic_generate_safetensors.py
examples/basic_generate_safetensors.py
+1
-1
No files found.
examples/basic_generate_safetensors.py
View file @
affd1906
...
...
@@ -4,7 +4,7 @@ from transformers import AutoTokenizer, TextStreamer
quant_path
=
"casperhansen/opt-125m-awq"
# Load model
model
=
AutoAWQForCausalLM
.
from_quantized
(
quant_path
,
fuse_layers
=
True
,
use_
safetensors
=
True
)
model
=
AutoAWQForCausalLM
.
from_quantized
(
quant_path
,
fuse_layers
=
True
,
safetensors
=
True
)
tokenizer
=
AutoTokenizer
.
from_pretrained
(
quant_path
,
trust_remote_code
=
True
)
streamer
=
TextStreamer
(
tokenizer
,
skip_special_tokens
=
True
)
...
...
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