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
fed5849d
Unverified
Commit
fed5849d
authored
Aug 04, 2025
by
Isotr0py
Committed by
GitHub
Aug 04, 2025
Browse files
[Bugfix] Fix failing GGUF models test (#22174)
Signed-off-by:
Isotr0py
<
mozf@mail2.sysu.edu.cn
>
parent
c1b4eb04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
vllm/transformers_utils/config.py
vllm/transformers_utils/config.py
+15
-6
No files found.
vllm/transformers_utils/config.py
View file @
fed5849d
...
...
@@ -293,17 +293,26 @@ def maybe_override_with_speculators_target_model(
model
:
str
,
tokenizer
:
str
,
trust_remote_code
:
bool
,
revision
:
Optional
[
str
]
=
None
)
->
tuple
[
str
,
str
]:
revision
:
Optional
[
str
]
=
None
,
**
kwargs
,
)
->
tuple
[
str
,
str
]:
"""
If running a speculators config, override running model with target model
"""
is_gguf
=
check_gguf_file
(
model
)
if
is_gguf
:
kwargs
[
"gguf_file"
]
=
Path
(
model
).
name
gguf_model_repo
=
Path
(
model
).
parent
else
:
gguf_model_repo
=
None
config_dict
,
_
=
PretrainedConfig
.
get_config_dict
(
model
,
model
if
gguf_model_repo
is
None
else
gguf_model_repo
,
revision
=
revision
,
trust_remote_code
=
trust_remote_code
,
token
=
_get_hf_token
(),
**
kwargs
,
)
spec_config
=
config_dict
.
get
(
"speculators_config"
)
spec_config
=
config_dict
.
get
(
"speculators_config"
,
None
)
# Return the target model
if
spec_config
is
not
None
:
model
=
tokenizer
=
spec_config
[
"verifier"
][
"name_or_path"
]
...
...
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