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 @@ def from_guided_params(cls, 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.