Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
02a43f82
Unverified
Commit
02a43f82
authored
Nov 23, 2024
by
Michael Goin
Committed by
GitHub
Nov 22, 2024
Browse files
Update default max_num_batch_tokens for chunked prefill to 2048 (#10544)
parent
cfea9c04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/config.py
vllm/config.py
+3
-3
No files found.
vllm/config.py
View file @
02a43f82
...
@@ -1133,9 +1133,9 @@ class SchedulerConfig:
...
@@ -1133,9 +1133,9 @@ class SchedulerConfig:
# max_num_batched_tokens.
# max_num_batched_tokens.
self
.
max_num_batched_tokens
=
max
(
self
.
max_model_len
,
2048
)
self
.
max_num_batched_tokens
=
max
(
self
.
max_model_len
,
2048
)
else
:
else
:
#
It is the values that have the best
balance between ITL
#
This value is chosen to have a
balance between ITL
# and TTFT
on A100
. Note it is not optimized for throughput.
# and TTFT. Note it is not optimized for throughput.
self
.
max_num_batched_tokens
=
512
self
.
max_num_batched_tokens
=
2048
else
:
else
:
# If max_model_len is too short, use 2048 as the default value
# If max_model_len is too short, use 2048 as the default value
# for higher throughput.
# for higher throughput.
...
...
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