[ModelRunnerV2] Avoid pipeline parallel bubbles (#42187)

Signed-off-by: Nick Hill <nickhill123@gmail.com>
This commit is contained in:
Nick Hill
2026-06-02 14:02:01 -07:00
committed by GitHub
parent 557781131a
commit e15f20258b
19 changed files with 615 additions and 144 deletions
+2 -7
View File
@@ -57,18 +57,13 @@ class ModelState(ABC):
return None
def postprocess_state(
self,
input_batch: InputBatch,
num_sampled: torch.Tensor,
self, idx_mapping: torch.Tensor, num_sampled: torch.Tensor
) -> None:
return None
@abstractmethod
def get_mm_embeddings(
self,
scheduled_encoder_inputs: dict[str, list[int]],
input_batch: InputBatch,
req_states: RequestState,
self, scheduled_encoder_inputs: dict[str, list[int]], input_batch: InputBatch
) -> torch.Tensor | None:
raise NotImplementedError