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 onnx model 'model_qint8_avx512_vnni.onnx'
Verified signatureHello! *This pull request has been automatically generated from the [`export_dynamic_quantized_onnx_model`](https://sbert.net/docs/package_reference/util.html#sentence_transformers.backend.export_dynamic_quantized_onnx_model) function from the Sentence Transformers library.* ## Config ```python QuantizationConfig( is_static=False, format=<QuantFormat.QOperator: 0>, mode=<QuantizationMode.IntegerOps: 0>, activations_dtype=<QuantType.QUInt8: 1>, activations_symmetric=False, weights_dtype=<QuantType.QInt8: 0>, weights_symmetric=True, per_channel=True, reduce_range=False, nodes_to_quantize=[], nodes_to_exclude=[], operators_to_quantize=['Conv', 'MatMul', 'Attention', 'LSTM', 'Gather', 'Transpose', 'EmbedLayerNormalization'], qdq_add_pair_to_weight=False, qdq_dedicated_pair=False, qdq_op_type_per_channel_support_to_axis={'MatMul': 1} ) ``` ## Tip: Consider testing this pull request before merging by loading the model from this PR with the `revision` argument: ```pyth…c4130d3
-
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