A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 14, 05:30 UTC
Fix incorrect string formatting in barrier timeout exceptions (#27149)
Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
Yongtao Huang committed
Oct 19, 2025 at 00:51 UTC
168e578efc3f9fb1beaf1e89809d5678ed375bdb
1 file changed
+4
-2
vllm/distributed/utils.py
+4
-2
@@ -277,7 +277,7 @@ class StatelessProcessGroup:
277
# Check for timeout
278
cur_time = time.time()
279
if cur_time - start_time > timeout:
280
- raise RuntimeError("Barrier timed out after %f seconds", timeout)
280
+ raise RuntimeError(f"Barrier timed out after {timeout:.2f} seconds")
281
282
# Check for each process
283
for i in range(self.world_size):
@@ -324,7 +324,9 @@ class StatelessProcessGroup:
324
while len(processes_departed) < self.world_size:
325
# Check for timeout
326
if time.time() - start_time > timeout:
327
- raise RuntimeError("Barrier departure timed out after %f s", timeout)
327
+ raise RuntimeError(
328
+ f"Barrier departure timed out after {timeout:.2f} seconds"
329
+ )
330
331
# Check for each process
332
for i in range(self.world_size):