Feature Extraction
sentence-transformers
ONNX
Safetensors
Transformers
xlm-roberta
mteb
Eval Results (legacy)
text-embeddings-inference
Instructions to use intfloat/multilingual-e5-large-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use intfloat/multilingual-e5-large-instruct with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("intfloat/multilingual-e5-large-instruct") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use intfloat/multilingual-e5-large-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="intfloat/multilingual-e5-large-instruct")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("intfloat/multilingual-e5-large-instruct") model = AutoModel.from_pretrained("intfloat/multilingual-e5-large-instruct", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Fix: Add missing sentence-transformers installation in example code
Verified signature## Description The example code fails with `ModuleNotFoundError: No module named 'sentence_transformers'` when run in a clean environment. This is due to the `sentence_transformers` package not being pre-installed. ## Changes Added the following line at the beginning of the script to ensure all required dependencies are available: ```python !{sys.executable} -m pip install sentence-transformers ``` ## Testing The code has been successfully tested and runs without error. ## Note This contribution is part of an ongoing research initiative to systematically identify and correct faulty example code in Hugging Face Model Cards. We would appreciate a timely review and integration of this patch to support code reliability and enhance reproducibility for downstream users.c05fe06
-
Update instruction with infinity (#23)
Verified signature- Update instruction with infinity (12f5e10ae4575a6c3ef154c80e248ee3f24203c7) Co-authored-by: Michael <michaelfeil@users.noreply.huggingface.co>1a50ec2
-
Update README.md
baa7be4 -
Add Sentence Transformers support (#2)
- Add Sentence Transformers support (2df654a1816d9d71137d5ef0979718fc8842ada2)c406bc6
-
Add link to new paper (#1)
- Add link to new paper (040d0121a88973cae67c013d62b14ef9a65ee4ec) Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>2696861
-
update README.md
b9fbfc1 -
upload model weights
d9f1d8f