Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions vllm/distributed/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def barrier(self, timeout: float = 30.0):
# Check for timeout
cur_time = time.time()
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
for i in range(self.world_size):
Expand Down Expand Up @@ -323,7 +323,9 @@ def barrier(self, timeout: float = 30.0):
while len(processes_departed) < self.world_size:
# Check for 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
for i in range(self.world_size):
Expand Down