mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-12 15:45:02 +08:00
[CI] Fix Pre-commit Mypy Error (#26181)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
parent
7cfa4b24bf
commit
767cbb011d
@ -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(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user