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
fdff74d6
Commit
fdff74d6
authored
Sep 13, 2023
by
Casper Hansen
Browse files
Set the batch_size
parent
6e0bde15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/benchmark.py
examples/benchmark.py
+1
-1
No files found.
examples/benchmark.py
View file @
fdff74d6
...
@@ -43,7 +43,7 @@ def run_round(model_path, quant_file, n_generate, input_ids, batch_size):
...
@@ -43,7 +43,7 @@ def run_round(model_path, quant_file, n_generate, input_ids, batch_size):
print
(
f
" -- Loading model..."
)
print
(
f
" -- Loading model..."
)
model
=
AutoAWQForCausalLM
.
from_quantized
(
model
=
AutoAWQForCausalLM
.
from_quantized
(
model_path
,
quant_file
,
fuse_layers
=
True
,
model_path
,
quant_file
,
fuse_layers
=
True
,
max_new_tokens
=
n_generate
max_new_tokens
=
n_generate
,
batch_size
=
batch_size
)
)
print
(
f
" -- Warming up..."
)
print
(
f
" -- Warming up..."
)
...
...
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