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
04024282
Unverified
Commit
04024282
authored
Oct 25, 2025
by
Lehua Ding
Committed by
GitHub
Oct 24, 2025
Browse files
[Perf][Async Scheduling] Remove CPU->GPU sync in dummy_run (#27455)
Signed-off-by:
Lehua Ding
<
lehuading@tencent.com
>
parent
17af6aa0
Changes
1
Hide 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 @
04024282
...
@@ -3492,7 +3492,10 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
...
@@ -3492,7 +3492,10 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
self
.
eplb_step
(
is_dummy
=
True
,
is_profile
=
is_profile
)
self
.
eplb_step
(
is_dummy
=
True
,
is_profile
=
is_profile
)
logit_indices
=
np
.
cumsum
(
num_scheduled_tokens
)
-
1
logit_indices
=
np
.
cumsum
(
num_scheduled_tokens
)
-
1
return
hidden_states
,
hidden_states
[
logit_indices
]
logit_indices_device
=
torch
.
from_numpy
(
logit_indices
).
to
(
self
.
device
,
non_blocking
=
True
)
return
hidden_states
,
hidden_states
[
logit_indices_device
]
@
torch
.
inference_mode
()
@
torch
.
inference_mode
()
def
_dummy_sampler_run
(
def
_dummy_sampler_run
(
...
...
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