diff --git a/vllm/worker/worker.py b/vllm/worker/worker.py index aee9599d9932b..2827d0468943e 100644 --- a/vllm/worker/worker.py +++ b/vllm/worker/worker.py @@ -267,10 +267,10 @@ def _assert_memory_footprint_increased_during_profiling(self): if is_restricted_env: logger.info("Detected restricted GPU environment. " - "Model is loaded but memory reports static usage. " - "Free memory: {:.2f}GB, Total memory: {:.2f}GB".format( - free_gpu_memory / (1024**3), - total_memory / (1024**3))) + "Model is loaded but memory reports static usage. " + "Free memory: %.2fGB, Total memory: %.2fGB", + free_gpu_memory / (1024**3), + total_memory / (1024**3)) assert memory_diff > 0 or is_restricted_env, ( "Error in memory profiling."