[MRV2] Miscellaneous code cleanup (#57980)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user