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
d6cf1442
Commit
d6cf1442
authored
Sep 20, 2023
by
Casper Hansen
Browse files
Disable fused layers
parent
90bf52c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/eval.py
examples/eval.py
+1
-1
No files found.
examples/eval.py
View file @
d6cf1442
...
...
@@ -12,7 +12,7 @@ def run_eval(model_path, quant_file, device, tasks, task_batch_size, task_n_shot
if
task_use_pretrained
:
model
=
AutoAWQForCausalLM
.
from_pretrained
(
model_path
)
else
:
model
=
AutoAWQForCausalLM
.
from_quantized
(
model_path
,
quant_file
)
model
=
AutoAWQForCausalLM
.
from_quantized
(
model_path
,
quant_file
,
fuse_layers
=
False
)
tokenizer
=
AutoTokenizer
.
from_pretrained
(
model_path
,
trust_remote_code
=
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