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
e184c9c5
Unverified
Commit
e184c9c5
authored
Sep 30, 2025
by
Lehua Ding
Committed by
GitHub
Sep 30, 2025
Browse files
[perf] Use CPU tensor to reduce GPU->CPU sync (#25884)
Signed-off-by:
Lehua Ding
<
lehuading@tencent.com
>
parent
d7e34b42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+1
-1
No files found.
vllm/v1/worker/gpu_model_runner.py
View file @
e184c9c5
...
@@ -2478,7 +2478,7 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
...
@@ -2478,7 +2478,7 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
effective_drafter_max_model_len
=
(
effective_drafter_max_model_len
=
(
self
.
speculative_config
.
draft_model_config
.
max_model_len
)
self
.
speculative_config
.
draft_model_config
.
max_model_len
)
input_fits_in_drafter
=
spec_decode_common_attn_metadata
and
(
input_fits_in_drafter
=
spec_decode_common_attn_metadata
and
(
spec_decode_common_attn_metadata
.
seq_len
s
.
max
()
+
spec_decode_common_attn_metadata
.
max_
seq_len
+
self
.
speculative_config
.
num_speculative_tokens
self
.
speculative_config
.
num_speculative_tokens
<=
effective_drafter_max_model_len
)
<=
effective_drafter_max_model_len
)
if
use_padded_batch_for_eagle
and
input_fits_in_drafter
:
if
use_padded_batch_for_eagle
and
input_fits_in_drafter
:
...
...
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