Skip to content

Commit

Permalink
Duplicate import
Browse files Browse the repository at this point in the history
  • Loading branch information
cmikeh2 committed Nov 13, 2023
1 parent e69abe0 commit d187c3f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions deepspeed/inference/v2/engine_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import logging
import os
import pickle
from typing import Any
from packaging import version

from .engine_v2 import InferenceEngineV2
Expand Down Expand Up @@ -96,7 +95,6 @@ def build_hf_engine(path: str,
elif model_config.model_type == "llama":
policy = Llama2Policy(model_config, checkpoint_engine=checkpoint_engine)
elif model_config.model_type == "mistral":
from .model_implementations.mistral.policy import MistralPolicy
# Ensure we're using the correct version of transformers for mistral
import transformers
assert version.parse(transformers.__version__) >= version.parse("4.34.0"), \
Expand Down

0 comments on commit d187c3f

Please sign in to comment.