Sentence Similarity
sentence-transformers
PyTorch
TensorFlow
ONNX
Safetensors
OpenVINO
English
bert
mteb
Sentence Transformers
Eval Results (legacy)
text-embeddings-inference
Instructions to use intfloat/e5-small-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use intfloat/e5-small-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("intfloat/e5-small-v2") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Add exported openvino model 'openvino_model_qint8_quantized.xml'
Verified signatureHello! *This pull request has been automatically generated from the [`export_static_quantized_openvino_model`](https://sbert.net/docs/package_reference/util.html#sentence_transformers.backend.export_static_quantized_openvino_model) function from the Sentence Transformers library.* ## Config ```python OVQuantizationConfig( quant_method=<OVQuantizationMethod.DEFAULT: 'default'> ) ``` ## Tip: Consider testing this pull request before merging by loading the model from this PR with the `revision` argument: ```python from sentence_transformers import SentenceTransformer # TODO: Fill in the PR number pr_number = 2 model = SentenceTransformer( "intfloat/e5-small-v2", revision=f"refs/pr/{pr_number}", backend="openvino", model_kwargs={"file_name": "openvino_model_qint8_quantized.xml"}, ) # Verify that everything works as expected embeddings = model.encode(["The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium."]) print(embeddings.shape) similar…e8b23a9
-
Make the tokenizer config match that of the large and base versions (#11)
- Make the tokenizer config match that of the large and base versions (f9611f088d69fc3157ff1878217feee72bda0145) Co-authored-by: Santiago Castro <bryant1410@users.noreply.huggingface.co>dca8b1a
-
Update README.md
93da57d
-
add sentence similarity tag
b092564
-
Add TF weights (#3)
- Add TF weights (b165b1914dc8ede7eb18619ebc702bf414ec7978) Co-authored-by: Siva Velusamy <vsiva@users.noreply.huggingface.co>4a074f4 -
Adding ONNX file of this model (#1)
- Adding ONNX file of this model (d3d4971b17a4fbf45f9d6630479f0d7bd934d85a) Co-authored-by: CHRISTOPHER FLEETWOOD <FL33TW00D@users.noreply.huggingface.co>47ba724 -
Adding `safetensors` variant of this model (#7)
- Adding `safetensors` variant of this model (44c70c13f32bcd13811778935776302112df47e0) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>5c28755 -
Update README.md
cfb7694
-
add sentence transformers configs (#4)
- sbert.net (67a456de1d77c6159603f4bad4a2fe6b12d8bcda) - update readme (0f45e2944ec95914b340972ad1b9bd6d66ef6c70) - add python example (a68bac4365867eaf42a3ac2e2530cd379479c056)7f5bd82
-
Update README.md
c2a786b
-
Update README.md
6cf6a8c -
update README.md
e32cfbb -
upload model weights
d7c6f2a -
initial commit
b584ff7