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
c878b43b
Unverified
Commit
c878b43b
authored
Feb 18, 2026
by
Woosuk Kwon
Committed by
GitHub
Feb 18, 2026
Browse files
[Model Runner V2] Remove unnecessary copies in PW CUDA graph capture (#34849)
Signed-off-by:
Woosuk Kwon
<
woosuk@inferact.ai
>
parent
2b84ac66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
vllm/v1/worker/gpu/cudagraph_utils.py
vllm/v1/worker/gpu/cudagraph_utils.py
+1
-3
No files found.
vllm/v1/worker/gpu/cudagraph_utils.py
View file @
c878b43b
...
@@ -218,13 +218,11 @@ class CudaGraphManager:
...
@@ -218,13 +218,11 @@ class CudaGraphManager:
batch_descriptor
=
batch_descriptor
,
batch_descriptor
=
batch_descriptor
,
slot_mapping
=
slot_mappings
,
slot_mapping
=
slot_mappings
,
):
):
hidden_states
=
model
(
model
(
input_ids
=
input_ids
,
input_ids
=
input_ids
,
positions
=
positions
,
positions
=
positions
,
inputs_embeds
=
inputs_embeds
,
inputs_embeds
=
inputs_embeds
,
)
)
assert
self
.
hidden_states
is
not
None
self
.
hidden_states
[:
num_tokens
]
=
hidden_states
@
torch
.
inference_mode
()
@
torch
.
inference_mode
()
def
capture
(
def
capture
(
...
...
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