Skip to content

Commit cf6c3c3

Browse files
committed
fix
Signed-off-by: johnnynunez <johnnynuca14@gmail.com>
1 parent f4cda0e commit cf6c3c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vllm/model_executor/guided_decoding/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def maybe_backend_fallback(
2525

2626
def fallback_or_error(guided_params: GuidedDecodingParams, message: str,
2727
fallback: str) -> None:
28-
"""Change the backend to the specified fallback with a warning log,
28+
"""Change the backend to the specified fallback with a warning log,
2929
or raise a ValueError if the `no-fallback` option is specified."""
3030
if guided_params.no_fallback():
3131
raise ValueError(message)
@@ -52,6 +52,7 @@ def fallback_or_error(guided_params: GuidedDecodingParams, message: str,
5252
if guided_params.backend_name == "xgrammar":
5353
from vllm.model_executor.guided_decoding.xgrammar_decoding import (
5454
xgr_installed)
55+
5556
# xgrammar doesn't support regex, fallback to outlines
5657
if guided_params.regex is not None:
5758
fallback_or_error(
@@ -158,4 +159,4 @@ def get_local_guided_decoding_logits_processor(
158159

159160
raise ValueError(
160161
f"Unknown guided decoding backend '{guided_params.backend}'. "
161-
"Must be one of 'outlines, 'lm-format-enforcer', 'xgrammar'")
162+
"Must be one of 'outlines, 'lm-format-enforcer', 'xgrammar'")

0 commit comments

Comments
 (0)