From 767cbb011dfa6e7685739dd29b68cde0727e459a Mon Sep 17 00:00:00 2001 From: Wentao Ye <44945378+yewentao256@users.noreply.github.com> Date: Fri, 3 Oct 2025 19:08:03 -0400 Subject: [PATCH] [CI] Fix Pre-commit Mypy Error (#26181) Signed-off-by: yewentao256 --- vllm/transformers_utils/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vllm/transformers_utils/config.py b/vllm/transformers_utils/config.py index 86345287f988..8d340f88fa25 100644 --- a/vllm/transformers_utils/config.py +++ b/vllm/transformers_utils/config.py @@ -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(