Pass per-forward overrides to ForwardBatch.init_new as explicit arguments (#30670)
This commit is contained in:
@@ -120,7 +120,11 @@ class TestForwardSplitPrefill(CustomTestCase):
|
||||
batch.forward_mode = ForwardMode.SPLIT_PREFILL
|
||||
|
||||
# Create forward batch
|
||||
forward_batch = ForwardBatch.init_new(batch, self.model_runner)
|
||||
forward_batch = ForwardBatch.init_new(
|
||||
batch,
|
||||
self.model_runner,
|
||||
return_hidden_states_before_norm=False,
|
||||
)
|
||||
|
||||
return forward_batch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user