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
97a9465b
Unverified
Commit
97a9465b
authored
Jun 11, 2025
by
Robert Shaw
Committed by
GitHub
Jun 11, 2025
Browse files
[UX] Add Feedback During CUDAGraph Capture (#19501)
Signed-off-by:
rshaw@neuralmagic.com
<
robertgshaw2@gmail.com
>
parent
c7ea0b56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+4
-1
No files found.
vllm/v1/worker/gpu_model_runner.py
View file @
97a9465b
...
...
@@ -12,6 +12,7 @@ import numpy as np
import
torch
import
torch.distributed
import
torch.nn
as
nn
from
tqdm
import
tqdm
import
vllm.envs
as
envs
from
vllm.attention
import
AttentionType
,
get_attn_backend
...
...
@@ -2034,7 +2035,9 @@ class GPUModelRunner(LoRAModelRunnerMixin):
# can reuse the memory pool allocated for the large shapes.
with
graph_capture
(
device
=
self
.
device
):
skip_attn
=
not
self
.
vllm_config
.
compilation_config
.
full_cuda_graph
for
num_tokens
in
reversed
(
self
.
cudagraph_batch_sizes
):
for
num_tokens
in
tqdm
(
reversed
(
self
.
cudagraph_batch_sizes
),
desc
=
"Capturing CUDA graphs"
,
total
=
len
(
self
.
cudagraph_batch_sizes
)):
for
_
in
range
(
self
.
vllm_config
.
compilation_config
.
cudagraph_num_of_warmups
):
self
.
_dummy_run
(
num_tokens
,
skip_attn
=
skip_attn
)
...
...
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