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
cc4d1002
Commit
cc4d1002
authored
Jan 22, 2026
by
王敏
Browse files
零消耗添加epsp
parent
855cb148
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/zero_overhead/v1/gpu_model_runner.py
vllm/zero_overhead/v1/gpu_model_runner.py
+1
-1
No files found.
vllm/zero_overhead/v1/gpu_model_runner.py
View file @
cc4d1002
...
@@ -465,7 +465,7 @@ class V1ZeroModelRunner(GPUModelRunner):
...
@@ -465,7 +465,7 @@ class V1ZeroModelRunner(GPUModelRunner):
num_scheduled_tokens
=
scheduler_output
.
total_num_scheduled_tokens
num_scheduled_tokens
=
scheduler_output
.
total_num_scheduled_tokens
# make sure that the padded length is divisible by attn_tp_size because we may need reduce-scatter across attn_tp dim.
# make sure that the padded length is divisible by attn_tp_size because we may need reduce-scatter across attn_tp dim.
if
self
.
ep_sp
:
if
self
.
ep_sp
or
self
.
enable_dp_attention
:
num_input_tokens
=
round_up
(
num_scheduled_tokens
,
tp_size
)
num_input_tokens
=
round_up
(
num_scheduled_tokens
,
tp_size
)
if
(
self
.
use_cuda_graph
if
(
self
.
use_cuda_graph
and
num_input_tokens
<=
self
.
cudagraph_batch_sizes
[
-
1
]):
and
num_input_tokens
<=
self
.
cudagraph_batch_sizes
[
-
1
]):
...
...
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