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
121db653
Commit
121db653
authored
Sep 06, 2025
by
王敏
Browse files
解决大EP mtp报错问题
parent
8f66f64b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/v1/worker/gpu_model_runner.py
vllm/v1/worker/gpu_model_runner.py
+3
-1
No files found.
vllm/v1/worker/gpu_model_runner.py
View file @
121db653
...
...
@@ -2005,7 +2005,9 @@ class GPUModelRunner(LoRAModelRunnerMixin):
num_reqs
=
min
(
num_tokens
,
max_num_reqs
)
min_tokens_per_req
=
num_tokens
//
num_reqs
if
not
is_profile
and
self
.
speculative_config
is
not
None
and
self
.
speculative_config
.
num_lookahead_slots
>
0
:
if
not
is_profile
and
self
.
speculative_config
is
not
None
\
and
self
.
speculative_config
.
num_lookahead_slots
>
0
\
and
num_tokens
>=
(
1
+
self
.
speculative_config
.
num_lookahead_slots
):
min_tokens_per_req
=
(
1
+
self
.
speculative_config
.
num_lookahead_slots
)
num_reqs
=
num_tokens
//
min_tokens_per_req
num_scheduled_tokens_list
=
[
min_tokens_per_req
]
*
num_reqs
...
...
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