Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin committed Oct 18, 2023
1 parent 05cdb9c commit 636f942
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/deepsparse/sentence_transformers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ from mteb import MTEB
model_name = "TaylorAI/bge-micro-v2"

# DeepSparse Model Evaluation
import deepsparse
model = deepsparse.sentence_transformers.SentenceTransformer(model_name, export=True)
from deepsparse.sentence_transformers import SentenceTransformer
model = SentenceTransformer(model_name, export=True)
evaluation = MTEB(tasks=["Banking77Classification"])
results_ds = evaluation.run(model, output_folder=f"results/ds-{model_name}")
print(results_ds)
Expand All @@ -83,4 +83,4 @@ This script performs a comparative analysis between the DeepSparse-optimized mod

This documentation is based on the original README from [SentenceTransformers](https://www.sbert.net/). It extends the original functionalities with the optimizations provided by [DeepSparse](https://github.com/neuralmagic/deepsparse).

**Note**: The example usage is designed for the DeepSparse-enhanced version of SentenceTransformers. Make sure to follow the specific installation instructions for full compatibility. Performance optimizations with batching and other advanced features will be part of future updates.
**Note**: The example usage is designed for the DeepSparse-enhanced version of SentenceTransformers. Make sure to follow the specific installation instructions for full compatibility. Performance optimizations with batching and other advanced features will be part of future updates.

0 comments on commit 636f942

Please sign in to comment.