Inline the single-use split-prefill setup at its caller (#25722)

This commit is contained in:
fzyzcjy
2026-05-19 09:21:29 +08:00
committed by GitHub
parent 1f3e5aa1e0
commit 3fd6a58e6c
2 changed files with 4 additions and 9 deletions
@@ -2078,11 +2078,6 @@ class ScheduleBatch(ScheduleBatchDisaggregationDecodeMixin):
req.mamba_last_track_seqlen = mamba_track_seqlen_aligned
mamba_track_seqlens_cpu.append(mamba_track_seqlen)
def prepare_for_split_prefill(self):
self.prepare_for_extend()
# For split prefill, we need to set the forward mode to SPLIT_PREFILL
self.forward_mode = ForwardMode.SPLIT_PREFILL
def mix_with_running(self, running_batch: "ScheduleBatch"):
self.forward_mode = ForwardMode.MIXED
running_bs = running_batch.batch_size()