make sure logit bias is applied during eagle spec decoding verification (#11555)
This commit is contained in:
@@ -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]),
|
||||||
|
|||||||
Reference in New Issue
Block a user