Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
9ca710e5
Unverified
Commit
9ca710e5
authored
Apr 06, 2025
by
Roger Wang
Committed by
GitHub
Apr 06, 2025
Browse files
[CI][V1] Fix passing `tokenizer` as kwarg to `validate_guidance_grammar` (#16117)
Signed-off-by:
Roger Wang
<
ywang@roblox.com
>
parent
eb07c8cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
vllm/v1/structured_output/backend_guidance.py
vllm/v1/structured_output/backend_guidance.py
+1
-2
No files found.
vllm/v1/structured_output/backend_guidance.py
View file @
9ca710e5
...
...
@@ -163,7 +163,6 @@ def validate_guidance_grammar(
tokenizer
:
Optional
[
llguidance
.
LLTokenizer
]
=
None
)
->
None
:
tp
,
grm
=
get_structured_output_key
(
sampling_params
)
guidance_grm
=
serialize_guidance_grammar
(
tp
,
grm
)
err
=
llguidance
.
LLMatcher
.
validate_grammar
(
guidance_grm
,
tokenizer
=
tokenizer
)
err
=
llguidance
.
LLMatcher
.
validate_grammar
(
guidance_grm
,
tokenizer
)
if
err
:
raise
ValueError
(
f
"Grammar error:
{
err
}
"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment