make sure logit bias is applied during eagle spec decoding verification (#11555)

This commit is contained in:
Marin
2025-10-19 04:53:33 +02:00
committed by GitHub
parent b5e14b2b78
commit 1dacedd2db

View File

@@ -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]),