Skip to content

Commit 5fc987a

Browse files
committed
up
Signed-off-by: Rui Qiao <ruisearch42@gmail.com>
1 parent 79ec0d4 commit 5fc987a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

vllm/v1/engine/core.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,16 +377,17 @@ def __init__(
377377
self.engine_index = engine_index
378378
identity = self.engine_index.to_bytes(length=2, byteorder="little")
379379
self.engines_running = False
380-
self.last_counts = (0, 0)
381380

382381
engine_addresses = None
383382
with self._perform_handshake(handshake_address, identity, on_head_node,
384383
vllm_config) as addresses:
385384
engine_addresses = addresses
386385
self.client_count = len(addresses.outputs)
386+
387+
# Set up data parallel environment.
387388
self.has_coordinator = addresses.coordinator_output is not None
388-
# Set up data parallel environment
389389
self._init_data_parallel(vllm_config)
390+
390391
super().__init__(vllm_config, executor_class, log_stats,
391392
executor_fail_callback)
392393

@@ -757,6 +758,7 @@ def __init__(
757758
# finished with DP peers every N steps.
758759
self.counter = 0
759760
self.current_wave = 0
761+
self.last_counts = (0, 0)
760762

761763
# Initialize the engine.
762764
dp_rank = vllm_config.parallel_config.data_parallel_rank

vllm/v1/engine/core_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from concurrent.futures import Future
1212
from dataclasses import dataclass
1313
from threading import Thread
14+
from types import NoneType
1415
from typing import Any, Callable, Optional, TypeVar, Union
1516

1617
import msgspec.msgpack

0 commit comments

Comments
 (0)