Sentence Similarity
sentence-transformers
PyTorch
Rust
ONNX
Safetensors
OpenVINO
Transformers
English
bert
feature-extraction
text-embeddings-inference
Instructions to use sheldonrobinson/all-MiniLM-L12-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use sheldonrobinson/all-MiniLM-L12-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("sheldonrobinson/all-MiniLM-L12-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] - Transformers
How to use sheldonrobinson/all-MiniLM-L12-v2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("sheldonrobinson/all-MiniLM-L12-v2") model = AutoModel.from_pretrained("sheldonrobinson/all-MiniLM-L12-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Add new SentenceTransformer model with an openvino backend
Verified signature30ce63a -
Add new SentenceTransformer model with an openvino backend
Verified signature4419213 -
Add exported ONNX model 'model_qint8_avx512_vnni.onnx'
Verified signatureee544df -
Add exported ONNX model 'model_qint8_avx512.onnx'
Verified signaturec765bc2 -
Add exported ONNX model 'model_quint8_avx2.onnx'
Verified signature7cee4bc -
Add exported ONNX model 'model_qint8_arm64.onnx'
Verified signatureac6a87f -
Add exported ONNX model 'model_O4.onnx'
Verified signature912c8b5 -
Add exported ONNX model 'model_O3.onnx'
Verified signature6844614 -
Add exported ONNX model 'model_O2.onnx'
Verified signature2bdcf94 -
Add exported ONNX model 'model_O1.onnx'
Verified signature427ff00 -
Add new SentenceTransformer model with an onnx backend
Verified signature93667e6
-
Adding `safetensors` variant of this model (#8)
Verified signature- Adding `safetensors` variant of this model (2f41ae668f085158c0baf758b4f11370f7b25a6d) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>a05860a
-
Can't spin up an endpoint without this part of the config (#11)
Verified signature- Can't spin up an endpoint without this part of the config (5c7f88e523d46d2145f0cc06cf69d32d69e0bc4d) Co-authored-by: Nico Kuzak <nicokuzak@users.noreply.huggingface.co>3392ab4
-
Update Sentence Transformers metadata (#10)
Verified signature- Update Sentence Transformers metadata (ec5306a15d1b473c730a16b8d96dcbb4c2919d01)6b02c09
-
Fix `datasets` metadata to valid HF.Co dataset (#7)
- Fix `datasets` metadata to valid HF.Co dataset (6d0578e9d0ef62fb40c36c5c091b23cac1850be2) Co-authored-by: Julien Chaumond <julien-c@users.noreply.huggingface.co>7b92c94
-
adding training dataset
9e16800
-
adding training dataset
8b9aeac -
Adding training datasets
bde56e5
-
adding training datasets
de7f5af
-
rust_weights (#1)
- Addition of Rust weights (e2247c42c695cbbe02dae57d736c0b7099e40c48) Co-authored-by: Guillaume Becquin <guillaume-be@users.noreply.huggingface.co>2e5bea9
-
upload
01e1a19 -
initial commit
43c6eee