[MRV2] Miscellaneous code cleanup (#57980)

This commit is contained in:
Nick Hill
2026-09-23 01:51:52 -07:00
committed by GitHub
parent 36bc694889
commit afec265bca
24 changed files with 163 additions and 326 deletions
+3 -10
View File
@@ -29,10 +29,7 @@ class ECConnector:
) -> Generator[ECConnectorOutput | None, None, None]:
yield None
def no_forward(
self,
scheduler_output: "SchedulerOutput",
) -> ModelRunnerOutput:
def no_forward(self, scheduler_output: "SchedulerOutput") -> ModelRunnerOutput:
return EMPTY_MODEL_RUNNER_OUTPUT
@@ -84,10 +81,7 @@ class ActiveECConnector(ECConnector):
output.ec_connector_worker_meta = ec_connector.build_connector_worker_meta()
ec_connector.clear_connector_metadata()
def no_forward(
self,
scheduler_output: "SchedulerOutput",
) -> ModelRunnerOutput:
def no_forward(self, scheduler_output: "SchedulerOutput") -> ModelRunnerOutput:
# EC send/recv even if no work to do.
with self.maybe_get_output(scheduler_output) as ec_connector_output:
pass
@@ -99,8 +93,7 @@ NO_OP_EC_CONNECTOR = ECConnector()
def get_ec_connector(
vllm_config: VllmConfig,
encoder_cache: "EncoderCache | None",
vllm_config: VllmConfig, encoder_cache: "EncoderCache | None"
) -> ECConnector:
if (
not has_ec_transfer()