Skip to content

Commit

Permalink
Disable hash warning
Browse files Browse the repository at this point in the history
  • Loading branch information
l-bat committed Oct 29, 2024
1 parent bc5c3db commit 0122ef2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sentence_transformers/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,14 @@ def export_static_quantized_openvino_model(
from sentence_transformers.models.Transformer import Transformer

try:
from datasets import disable_caching
from optimum.intel import OVConfig, OVModelForFeatureExtraction, OVQuantizer
except ImportError:
raise ImportError(
"Please install Optimum and OpenVINO to use this function. "
"You can install them with pip: `pip install optimum[openvino]`"
"Please install datasets, optimum-intel and openvino to use this function. "
"You can install them with pip: `pip install datasets optimum[openvino]`"
)
disable_caching()

if (
not isinstance(model, SentenceTransformer)
Expand Down

0 comments on commit 0122ef2

Please sign in to comment.