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
755d78b4
Commit
755d78b4
authored
Nov 27, 2025
by
zhuwenwen
Browse files
Merge branch 'v0.9.2-dev-wm-1127' into 'v0.9.2-dev'
[fix]解决宽松mtp1报错 See merge request dcutoolkit/deeplearing/vllm!272
parents
afd18c9c
deae0a22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
vllm/v1/spec_decode/eagle.py
vllm/v1/spec_decode/eagle.py
+6
-1
vllm/zero_overhead/v1/eagle.py
vllm/zero_overhead/v1/eagle.py
+6
-1
No files found.
vllm/v1/spec_decode/eagle.py
View file @
755d78b4
...
...
@@ -239,12 +239,17 @@ class EagleProposer:
if
envs
.
VLLM_REJECT_SAMPLE_OPT
:
draft_prob
=
logits
.
softmax
(
dim
=-
1
,
dtype
=
torch
.
float32
)
draft_probs_list
=
[
draft_prob
]
# Early exit if there is only one draft token to be generated.
if
self
.
num_speculative_tokens
==
1
:
# [batch_size, 1]
if
envs
.
VLLM_REJECT_SAMPLE_OPT
:
return
draft_token_ids
.
view
(
-
1
,
1
),
draft_prob
.
view
(
-
1
,
1
,
logits
.
shape
[
-
1
])
return
draft_token_ids
.
view
(
-
1
,
1
)
if
envs
.
VLLM_REJECT_SAMPLE_OPT
:
draft_probs_list
=
[
draft_prob
]
# TODO: Currently, MTP module released by deepseek only has
# one layer. Adapt this code to support multiple layers once
...
...
vllm/zero_overhead/v1/eagle.py
View file @
755d78b4
...
...
@@ -166,12 +166,17 @@ class V1ZeroEagleProposer(EagleProposer):
if
envs
.
VLLM_REJECT_SAMPLE_OPT
:
draft_prob
=
logits
.
softmax
(
dim
=-
1
,
dtype
=
torch
.
float32
)
draft_probs_list
=
[
draft_prob
]
# Early exit if there is only one draft token to be generated.
if
self
.
num_speculative_tokens
==
1
:
# [batch_size, 1]
if
envs
.
VLLM_REJECT_SAMPLE_OPT
:
return
draft_token_ids
.
view
(
-
1
,
1
),
draft_prob
.
view
(
-
1
,
1
,
logits
.
shape
[
-
1
])
return
draft_token_ids
.
view
(
-
1
,
1
)
if
envs
.
VLLM_REJECT_SAMPLE_OPT
:
draft_probs_list
=
[
draft_prob
]
# TODO: Currently, MTP module released by deepseek only has
# one layer. Adapt this code to support multiple layers once
...
...
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