mirror of
https://github.com/vllm-project/vllm.git
synced 2025-10-20 14:53:52 +08:00
[CI] Fix Pre-commit Mypy Error (#26181)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@ -515,17 +515,17 @@ def maybe_override_with_speculators(
|
||||
from vllm.transformers_utils.configs.speculators.base import (
|
||||
SpeculatorsConfig)
|
||||
|
||||
vllm_speculative_config = SpeculatorsConfig.extract_vllm_speculative_config(
|
||||
speculative_config = SpeculatorsConfig.extract_vllm_speculative_config(
|
||||
config_dict=config_dict)
|
||||
|
||||
# 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
|
||||
verifier_model = speculators_config["verifier"]["name_or_path"]
|
||||
model = tokenizer = verifier_model
|
||||
|
||||
return model, tokenizer, vllm_speculative_config
|
||||
return model, tokenizer, speculative_config
|
||||
|
||||
|
||||
def get_config(
|
||||
|
Reference in New Issue
Block a user