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
1dacedd2
Unverified
Commit
1dacedd2
authored
Oct 19, 2025
by
Marin
Committed by
GitHub
Oct 19, 2025
Browse files
make sure logit bias is applied during eagle spec decoding verification (#11555)
parent
b5e14b2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
python/sglang/srt/speculative/eagle_info.py
python/sglang/srt/speculative/eagle_info.py
+4
-1
No files found.
python/sglang/srt/speculative/eagle_info.py
View file @
1dacedd2
...
@@ -246,7 +246,10 @@ class EagleVerifyInput(SpecInput, EagleVerifyInputV2Mixin):
...
@@ -246,7 +246,10 @@ class EagleVerifyInput(SpecInput, EagleVerifyInputV2Mixin):
)
)
# Apply penalty
# Apply penalty
if
sampling_info
.
penalizer_orchestrator
.
is_required
:
if
(
sampling_info
.
penalizer_orchestrator
.
is_required
or
sampling_info
.
logit_bias
is
not
None
):
# This is a relaxed version of penalties for speculative decoding.
# This is a relaxed version of penalties for speculative decoding.
linear_penalty
=
torch
.
zeros
(
linear_penalty
=
torch
.
zeros
(
(
bs
,
logits_output
.
next_token_logits
.
shape
[
1
]),
(
bs
,
logits_output
.
next_token_logits
.
shape
[
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