Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vllm/model_executor/guided_decoding/xgrammar_decoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we fix info_once to support *args instead?

f-string with logger is considered not the best practice iirc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but I think we should patch it first so users don't see errors

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"`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.
Expand Down