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
1a2f8fb8
Unverified
Commit
1a2f8fb8
authored
Dec 09, 2024
by
youkaichao
Committed by
GitHub
Dec 09, 2024
Browse files
[v1] fix use compile sizes (#11000)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
cbcbdb1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
vllm/config.py
vllm/config.py
+1
-0
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+3
-0
No files found.
vllm/config.py
View file @
1a2f8fb8
...
...
@@ -2522,6 +2522,7 @@ class VllmConfig:
self
.
compilation_config
.
custom_ops
=
[
"none"
]
self
.
compilation_config
.
use_cudagraph
=
True
self
.
compilation_config
.
use_inductor
=
True
self
.
compilation_config
.
cudagraph_num_of_warmups
=
1
self
.
compilation_config
.
pass_config
.
enable_fusion
=
False
self
.
compilation_config
.
pass_config
.
enable_reshape
=
False
self
.
compilation_config
.
level
=
CompilationLevel
.
PIECEWISE
...
...
vllm/v1/worker/gpu_model_runner.py
View file @
1a2f8fb8
...
...
@@ -582,6 +582,9 @@ class GPUModelRunner:
# can reuse the memory pool allocated for the large shapes.
with
graph_capture
():
for
num_tokens
in
reversed
(
self
.
cudagraph_batch_sizes
):
for
_
in
range
(
self
.
vllm_config
.
compilation_config
.
cudagraph_num_of_warmups
):
self
.
_dummy_run
(
self
.
model
,
num_tokens
,
self
.
kv_caches
)
self
.
_dummy_run
(
self
.
model
,
num_tokens
,
self
.
kv_caches
)
end_time
=
time
.
perf_counter
()
...
...
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