Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
3529c061
"vscode:/vscode.git/clone" did not exist on "3c312e215c6aae05b4df97f1543dcb428053776b"
Unverified
Commit
3529c061
authored
Nov 03, 2025
by
Liangsheng Yin
Committed by
GitHub
Nov 03, 2025
Browse files
[spec v2] Fix output repetition by speculative sampling error (#12561)
parent
ffb32a85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
python/sglang/srt/speculative/eagle_info_v2.py
python/sglang/srt/speculative/eagle_info_v2.py
+1
-3
No files found.
python/sglang/srt/speculative/eagle_info_v2.py
View file @
3529c061
...
...
@@ -290,9 +290,7 @@ class EagleVerifyInputV2Mixin:
),
)
target_probs
=
target_probs
.
reshape
(
bs
,
self
.
draft_token_num
,
-
1
)
# This is currently not used
draft_probs
=
torch
.
empty_like
(
target_probs
)
draft_probs
=
torch
.
zeros_like
(
target_probs
)
# coins for rejection sampling
coins
=
torch
.
rand_like
(
candidates
,
dtype
=
torch
.
float32
,
device
=
device
)
...
...
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