Unverified Commit 767cbb01 authored by Wentao Ye's avatar Wentao Ye Committed by GitHub
Browse files

[CI] Fix Pre-commit Mypy Error (#26181)


Signed-off-by: default avataryewentao256 <zhyanwentao@126.com>
parent 7cfa4b24
...@@ -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(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment