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
059b1961
Commit
059b1961
authored
Dec 31, 2025
by
yangql
Browse files
增加mtp>1的pad
parent
19288a48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
vllm/v1/spec_decode/eagle.py
vllm/v1/spec_decode/eagle.py
+4
-0
vllm/zero_overhead/v1/eagle.py
vllm/zero_overhead/v1/eagle.py
+4
-0
No files found.
vllm/v1/spec_decode/eagle.py
View file @
059b1961
...
@@ -282,6 +282,10 @@ class EagleProposer:
...
@@ -282,6 +282,10 @@ class EagleProposer:
seq_lens
=
seq_lens
,
seq_lens
=
seq_lens
,
)
)
#增加mtp>1的pad
num_pad
,
num_tokens_across_dp
=
self
.
get_dp_padding
(
input_batch_size
)
input_batch_size
+=
num_pad
for
i
in
range
(
self
.
num_speculative_tokens
-
1
):
for
i
in
range
(
self
.
num_speculative_tokens
-
1
):
# Update the inputs.
# Update the inputs.
# cast to int32 is crucial when eagle model is compiled.
# cast to int32 is crucial when eagle model is compiled.
...
...
vllm/zero_overhead/v1/eagle.py
View file @
059b1961
...
@@ -203,6 +203,10 @@ class V1ZeroEagleProposer(EagleProposer):
...
@@ -203,6 +203,10 @@ class V1ZeroEagleProposer(EagleProposer):
seq_lens
=
seq_lens
,
seq_lens
=
seq_lens
,
)
)
#增加mtp>1的pad
num_pad
,
num_tokens_across_dp
=
self
.
get_dp_padding
(
input_batch_size
)
input_batch_size
+=
num_pad
for
i
in
range
(
self
.
num_speculative_tokens
-
1
):
for
i
in
range
(
self
.
num_speculative_tokens
-
1
):
# Update the inputs.
# Update the inputs.
# cast to int32 is crucial when eagle model is compiled.
# cast to int32 is crucial when eagle model is compiled.
...
...
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