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 10, 15:15 UTC
Change warning in get_current_vllm_config to report caller's line number (#31855)
Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
Tyler Michael Smith committed
Jan 6, 2026 at 22:48 UTC
f09c5feb7c66340e35c06aba37478cce74c20c10
1 file changed
+3
-1
vllm/config/vllm.py
+3
-1
@@ -1444,7 +1444,9 @@ def get_current_vllm_config() -> VllmConfig:
1444
# in ci, usually when we test custom ops/modules directly,
1445
# we don't set the vllm config. In that case, we set a default
1446
# config.
1447
- logger.warning("Current vLLM config is not set.")
1447
+ # Use stack level 2 so the log contains the line of the caller,
1448
+ # so it's easier to track down the source of the warning.
1449
+ logger.warning("Current vLLM config is not set.", stacklevel=2)
1450
return VllmConfig()
1451
return _current_vllm_config
1452