@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 28048bd6b0
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 5, 22:15 UTC

[Bugfix] Add missing f-string prefix in xgrammar choices error message (#38162)

Signed-off-by: Yifan Zong <yzong@redhat.com>

yzong-rh committed Mar 26, 2026 at 17:43 UTC 28048bd6b09cb164a934a8c134b7d7a7f4733b4f
1 file changed +1 -1
vllm/v1/structured_output/backend_xgrammar.py
+1 -1
@@ -289,7 +289,7 @@ def validate_xgrammar_grammar(sampling_params: SamplingParams) -> None:
289 xgr.Grammar.from_ebnf(choice_grammar)
290 except Exception as err:
291 raise ValueError(
292 - "Failed to transform choices into a grammar: {err}"
292 + f"Failed to transform choices into a grammar: {err}"
293 ) from err
294 so_params.choice = None
295 so_params.grammar = choice_grammar