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
767cbb01
Unverified
Commit
767cbb01
authored
Oct 03, 2025
by
Wentao Ye
Committed by
GitHub
Oct 03, 2025
Browse files
[CI] Fix Pre-commit Mypy Error (#26181)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
7cfa4b24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/transformers_utils/config.py
vllm/transformers_utils/config.py
+3
-3
No files found.
vllm/transformers_utils/config.py
View file @
767cbb01
...
@@ -515,17 +515,17 @@ def maybe_override_with_speculators(
...
@@ -515,17 +515,17 @@ def maybe_override_with_speculators(
from
vllm.transformers_utils.configs.speculators.base
import
(
from
vllm.transformers_utils.configs.speculators.base
import
(
SpeculatorsConfig
)
SpeculatorsConfig
)
vllm_
speculative_config
=
SpeculatorsConfig
.
extract_vllm_speculative_config
(
speculative_config
=
SpeculatorsConfig
.
extract_vllm_speculative_config
(
config_dict
=
config_dict
)
config_dict
=
config_dict
)
# Set the draft model to the speculators model
# Set the draft model to the speculators model
vllm_
speculative_config
[
"model"
]
=
model
speculative_config
[
"model"
]
=
model
# Override model and tokenizer with the verifier model from config
# Override model and tokenizer with the verifier model from config
verifier_model
=
speculators_config
[
"verifier"
][
"name_or_path"
]
verifier_model
=
speculators_config
[
"verifier"
][
"name_or_path"
]
model
=
tokenizer
=
verifier_model
model
=
tokenizer
=
verifier_model
return
model
,
tokenizer
,
vllm_
speculative_config
return
model
,
tokenizer
,
speculative_config
def
get_config
(
def
get_config
(
...
...
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