[Model Runner V2] Enable forcing a specific acceptance rate during rejection sampling (#38045)
Signed-off-by: Giancarlo Delfin <gdelfin@inferact.ai>
This commit is contained in:
@@ -85,9 +85,8 @@ class EagleSpeculator:
|
||||
self.max_num_tokens, self.hidden_size, dtype=self.dtype, device=device
|
||||
)
|
||||
|
||||
cache_draft_logits = self.speculative_config.rejection_sample_method != "strict"
|
||||
self.draft_logits: torch.Tensor | None = None
|
||||
if cache_draft_logits:
|
||||
if self.speculative_config.rejection_sample_method == "probabilistic":
|
||||
self.draft_logits = torch.zeros(
|
||||
self.max_num_reqs,
|
||||
self.num_speculative_steps,
|
||||
|
||||
Reference in New Issue
Block a user