@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 0168f69e50
Fork 0

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 13, 02:00 UTC

[Misc] Remove unnecessary parentheses from log statements (#28897)

Signed-off-by: Andy Xie <andy.xning@gmail.com>

Ning Xie committed Nov 18, 2025 at 12:33 UTC 0168f69e50898fd5f09ac64a0d735039e57e7806
1 file changed +5 -5
vllm/model_executor/models/registry.py
+5 -5
@@ -597,7 +597,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
597 mi_dict = json.load(file)
598 except FileNotFoundError:
599 logger.debug(
600 - ("Cached model info file for class %s.%s not found"),
600 + "Cached model info file for class %s.%s not found",
601 self.module_name,
602 self.class_name,
603 )
@@ -605,7 +605,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
605
606 if mi_dict["hash"] != module_hash:
607 logger.debug(
608 - ("Cached model info file for class %s.%s is stale"),
608 + "Cached model info file for class %s.%s is stale",
609 self.module_name,
610 self.class_name,
611 )
@@ -615,7 +615,7 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
615 return _ModelInfo(**mi_dict["modelinfo"])
616 except Exception:
617 logger.debug(
618 - ("Cached model info for class %s.%s error. "),
618 + "Cached model info for class %s.%s error. ",
619 self.module_name,
620 self.class_name,
621 )
@@ -650,14 +650,14 @@ class _LazyRegisteredModel(_BaseRegisteredModel):
650 mi = self._load_modelinfo_from_cache(module_hash)
651 if mi is not None:
652 logger.debug(
653 - ("Loaded model info for class %s.%s from cache"),
653 + "Loaded model info for class %s.%s from cache",
654 self.module_name,
655 self.class_name,
656 )
657 return mi
658 else:
659 logger.debug(
660 - ("Cache model info for class %s.%s miss. Loading model instead."),
660 + "Cache model info for class %s.%s miss. Loading model instead.",
661 self.module_name,
662 self.class_name,
663 )