Clean up eagle code (#2756)
This commit is contained in:
@@ -74,11 +74,6 @@ class LogitsMetadata:
|
||||
|
||||
@classmethod
|
||||
def from_forward_batch(cls, forward_batch: ForwardBatch):
|
||||
if forward_batch.spec_info:
|
||||
capture_hidden_mode = forward_batch.spec_info.capture_hidden_mode
|
||||
else:
|
||||
capture_hidden_mode = CaptureHiddenMode.NULL
|
||||
|
||||
if forward_batch.forward_mode.is_extend() and forward_batch.return_logprob:
|
||||
extend_return_logprob = True
|
||||
extend_return_top_logprob = any(
|
||||
@@ -98,7 +93,7 @@ class LogitsMetadata:
|
||||
|
||||
return cls(
|
||||
forward_mode=forward_batch.forward_mode,
|
||||
capture_hidden_mode=capture_hidden_mode,
|
||||
capture_hidden_mode=forward_batch.capture_hidden_mode,
|
||||
extend_return_logprob=extend_return_logprob,
|
||||
extend_return_top_logprob=extend_return_top_logprob,
|
||||
extend_seq_lens=forward_batch.extend_seq_lens,
|
||||
|
||||
Reference in New Issue
Block a user