Skip to content

Commit d1f569b

Browse files
authored
Fix call to logger.info_once (#17416)
Signed-off-by: Harry Mellor <[email protected]>
1 parent 13698db commit d1f569b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm/model_executor/guided_decoding/xgrammar_decoding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ def from_guided_params(cls,
191191

192192
if model_with_warn is not None and any_whitespace:
193193
logger.info_once(
194-
"%s model detected, consider setting "
194+
f"{model_with_warn} model detected, consider setting "
195195
"`disable_any_whitespace` to prevent runaway generation "
196-
"of whitespaces.", model_with_warn)
196+
"of whitespaces.")
197197
# Validate the schema and raise ValueError here if it is invalid.
198198
# This is to avoid exceptions in model execution, which will crash
199199
# the engine worker process.

0 commit comments

Comments
 (0)