mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-14 00:27:57 +08:00
Fix incorrect string formatting in barrier timeout exceptions (#27149)
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
This commit is contained in:
parent
6ac5e06f7c
commit
168e578efc
@ -277,7 +277,7 @@ class StatelessProcessGroup:
|
|||||||
# Check for timeout
|
# Check for timeout
|
||||||
cur_time = time.time()
|
cur_time = time.time()
|
||||||
if cur_time - start_time > timeout:
|
if cur_time - start_time > timeout:
|
||||||
raise RuntimeError("Barrier timed out after %f seconds", timeout)
|
raise RuntimeError(f"Barrier timed out after {timeout:.2f} seconds")
|
||||||
|
|
||||||
# Check for each process
|
# Check for each process
|
||||||
for i in range(self.world_size):
|
for i in range(self.world_size):
|
||||||
@ -324,7 +324,9 @@ class StatelessProcessGroup:
|
|||||||
while len(processes_departed) < self.world_size:
|
while len(processes_departed) < self.world_size:
|
||||||
# Check for timeout
|
# Check for timeout
|
||||||
if time.time() - start_time > timeout:
|
if time.time() - start_time > timeout:
|
||||||
raise RuntimeError("Barrier departure timed out after %f s", timeout)
|
raise RuntimeError(
|
||||||
|
f"Barrier departure timed out after {timeout:.2f} seconds"
|
||||||
|
)
|
||||||
|
|
||||||
# Check for each process
|
# Check for each process
|
||||||
for i in range(self.world_size):
|
for i in range(self.world_size):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user