Skip to content

Commit 6d2f2fb

Browse files
hmellorMu Huai
authored and
Mu Huai
committed
Fix call to logger.info_once (vllm-project#17416)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Mu Huai <tianbowen.tbw@antgroup.com>
1 parent f6417b0 commit 6d2f2fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm/model_executor/guided_decoding/xgrammar_decoding.py

+2-2
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)