Skip to content

Commit

Permalink
[Lint] Adjust logging to use % formatting for compliance
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Mansy <[email protected]>
  • Loading branch information
Ahmed14z committed Nov 4, 2024
1 parent 4bab492 commit 2301e12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vllm/worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 2301e12

Please sign in to comment.