From d1f569b1b9ce37aa77873b7f2bdb73612c4d9f23 Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Wed, 30 Apr 2025 03:39:18 +0100 Subject: [PATCH] Fix call to `logger.info_once` (#17416) Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --- vllm/model_executor/guided_decoding/xgrammar_decoding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vllm/model_executor/guided_decoding/xgrammar_decoding.py b/vllm/model_executor/guided_decoding/xgrammar_decoding.py index 40f722410ab0..c63acfddec5d 100644 --- a/vllm/model_executor/guided_decoding/xgrammar_decoding.py +++ b/vllm/model_executor/guided_decoding/xgrammar_decoding.py @@ -191,9 +191,9 @@ class GrammarConfig: if model_with_warn is not None and any_whitespace: logger.info_once( - "%s model detected, consider setting " + f"{model_with_warn} model detected, consider setting " "`disable_any_whitespace` to prevent runaway generation " - "of whitespaces.", model_with_warn) + "of whitespaces.") # Validate the schema and raise ValueError here if it is invalid. # This is to avoid exceptions in model execution, which will crash # the engine worker process.