[ci] fix linter (#13701)

Signed-off-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
youkaichao
2025-02-22 20:28:59 +08:00
committed by GitHub
parent 3e472d882a
commit 2382ad29d1
5 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -1372,7 +1372,7 @@ class ParallelConfig:
@staticmethod
def has_unfinished_dp(dp_group: "ProcessGroup",
has_unfinished: bool) -> bool:
has_unfinished: bool) -> bool:
tensor = torch.tensor([has_unfinished],
dtype=torch.int32,
device="cpu")
+1
View File
@@ -518,6 +518,7 @@ def get_open_port() -> int:
return port
return _get_open_port()
def _get_open_port() -> int:
port = envs.VLLM_PORT
if port is not None:
+2 -1
View File
@@ -89,7 +89,7 @@ class EngineCoreClient(ABC):
def execute_dummy_batch(self) -> None:
raise NotImplementedError
async def execute_dummy_batch_async(self) -> None:
raise NotImplementedError
@@ -343,6 +343,7 @@ class SyncMPClient(MPClient):
def execute_dummy_batch(self) -> None:
self._call_utility("execute_dummy_batch")
class AsyncMPClient(MPClient):
"""Asyncio-compatible client for multi-proc EngineCore."""
+2 -1
View File
@@ -1167,7 +1167,8 @@ class GPUModelRunner(LoRAModelRunnerMixin):
for k, v in self.intermediate_tensors.items()
})
with set_forward_context(None, self.vllm_config, num_tokens=num_tokens):
with set_forward_context(None, self.vllm_config,
num_tokens=num_tokens):
hidden_states = model(
input_ids=input_ids,
positions=positions,