model: support Step-3.5-Flash (#18084)
Co-authored-by: ltd0924 <ltd0924@sina.com>
This commit is contained in:
@@ -466,11 +466,12 @@ class MultiLayerEagleDraftWorker(BaseDraftWorker):
|
||||
draft_logits_output.topk_index,
|
||||
)
|
||||
else:
|
||||
draft_logits_output, _ = self.draft_runner_list[step].forward(
|
||||
draft_logits_output = self.draft_runner_list[step].forward(
|
||||
forward_batch, skip_attn_backend_init=True
|
||||
)
|
||||
probs = torch.softmax(
|
||||
draft_logits_output.next_token_logits[select_index], dim=-1
|
||||
draft_logits_output.logits_output.next_token_logits[select_index],
|
||||
dim=-1,
|
||||
)
|
||||
ret_topk_p, ret_topk_index = fast_topk(probs, self.topk, dim=-1)
|
||||
if forward_batch.extend_seq_lens is not None:
|
||||
|
||||
Reference in New Issue
Block a user