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
3147586e
Unverified
Commit
3147586e
authored
Apr 07, 2025
by
Benjamin Chislett
Committed by
GitHub
Apr 07, 2025
Browse files
[Bugfix] Fix guidance backend for Qwen models (#16210)
Signed-off-by:
Benjamin Chislett
<
benjamin.chislett@centml.ai
>
parent
ed636d99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/v1/structured_output/backend_guidance.py
vllm/v1/structured_output/backend_guidance.py
+2
-1
No files found.
vllm/v1/structured_output/backend_guidance.py
View file @
3147586e
...
@@ -46,7 +46,8 @@ class GuidanceBackend(StructuredOutputBackend):
...
@@ -46,7 +46,8 @@ class GuidanceBackend(StructuredOutputBackend):
in
vllm_config
.
decoding_config
.
guided_decoding_backend
)
in
vllm_config
.
decoding_config
.
guided_decoding_backend
)
tokenizer
=
tokenizer_group
.
get_lora_tokenizer
(
None
)
tokenizer
=
tokenizer_group
.
get_lora_tokenizer
(
None
)
self
.
ll_tokenizer
=
llguidance_hf
.
from_tokenizer
(
tokenizer
,
None
)
self
.
ll_tokenizer
=
llguidance_hf
.
from_tokenizer
(
tokenizer
,
self
.
vocab_size
)
def
compile_grammar
(
self
,
request_type
:
StructuredOutputOptions
,
def
compile_grammar
(
self
,
request_type
:
StructuredOutputOptions
,
grammar_spec
:
str
)
->
StructuredOutputGrammar
:
grammar_spec
:
str
)
->
StructuredOutputGrammar
:
...
...
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