From 2301e12fdc1c6bf11b6b14f63a5dffb7a5970185 Mon Sep 17 00:00:00 2001 From: Ahmed Mansy Date: Mon, 4 Nov 2024 21:44:19 +0200 Subject: [PATCH] [Lint] Adjust logging to use % formatting for compliance Signed-off-by: Ahmed Mansy --- vllm/worker/worker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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."