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")# 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") - Inference
- Notebooks
- Google Colab
- Kaggle
Update instruction with infinity
#23
by michaelfeil - opened
README.md
CHANGED
|
@@ -5466,6 +5466,16 @@ print(scores.tolist())
|
|
| 5466 |
# [[91.92853546142578, 67.5802993774414], [70.38143157958984, 92.13307189941406]]
|
| 5467 |
```
|
| 5468 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5469 |
## Supported Languages
|
| 5470 |
|
| 5471 |
This model is initialized from [xlm-roberta-large](https://huggingface.co/xlm-roberta-large)
|
|
|
|
| 5466 |
# [[91.92853546142578, 67.5802993774414], [70.38143157958984, 92.13307189941406]]
|
| 5467 |
```
|
| 5468 |
|
| 5469 |
+
### Infinity
|
| 5470 |
+
|
| 5471 |
+
Usage with [Infinity](https://github.com/michaelfeil/infinity):
|
| 5472 |
+
|
| 5473 |
+
```bash
|
| 5474 |
+
docker run --gpus all -v $PWD/data:/app/.cache -e HF_TOKEN=$HF_TOKEN -p "7997":"7997" \
|
| 5475 |
+
michaelf34/infinity:0.0.68 \
|
| 5476 |
+
v2 --model-id intfloat/multilingual-e5-large-instruct --revision "main" --dtype float16 --batch-size 32 -engine torch --port 7997
|
| 5477 |
+
```
|
| 5478 |
+
|
| 5479 |
## Supported Languages
|
| 5480 |
|
| 5481 |
This model is initialized from [xlm-roberta-large](https://huggingface.co/xlm-roberta-large)
|