[Model Runner V2] Spec decode rejection sampler greedy support (#37238)

Signed-off-by: Giancarlo Delfin <gdelfin@inferact.ai>
This commit is contained in:
Giancarlo Delfin
2026-03-18 15:59:03 -07:00
committed by GitHub
parent 9482b0b085
commit 04244fd0e1
2 changed files with 207 additions and 71 deletions
+1 -3
View File
@@ -821,9 +821,7 @@ class GPUModelRunner(LoRAModelRunnerMixin):
logits,
input_batch,
# Draft logits are needed for probabilistic rejection sampling.
self.req_states.draft_logits[input_batch.idx_mapping]
if self.req_states.draft_logits is not None
else None,
self.req_states.draft_logits,
)
# Get the number of sampled and rejected tokens.