Feature Extraction
Transformers
Safetensors
sentence-transformers
mistral_contrastive
brevitech
mirror
video-text-retrieval
text-to-video-retrieval
image-text-retrieval
zero-shot-classification
contrastive
embeddings
multilingual
custom_code
Instructions to use brevitech/Mistral-Multimodal-Embed-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use brevitech/Mistral-Multimodal-Embed-1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="brevitech/Mistral-Multimodal-Embed-1B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("brevitech/Mistral-Multimodal-Embed-1B", trust_remote_code=True, device_map="auto") - sentence-transformers
How to use brevitech/Mistral-Multimodal-Embed-1B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("brevitech/Mistral-Multimodal-Embed-1B", trust_remote_code=True) 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] - Notebooks
- Google Colab
- Kaggle
Download sentence_bert_config.json from brevitech/Mistral-Multimodal-Embed-1B: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/brevitech/Mistral-Multimodal-Embed-1B/resolve/main/sentence_bert_config.json
- Command line
-
hf download hf://brevitech/Mistral-Multimodal-Embed-1B/sentence_bert_config.json
-
curl -L -o sentence_bert_config.json https://huggingface.co/brevitech/Mistral-Multimodal-Embed-1B/resolve/main/sentence_bert_config.json
473 Bytes
| { | |
| "transformer_task": "feature-extraction", | |
| "modality_config": { | |
| "text": { | |
| "method": "get_text_features", | |
| "method_output_name": null | |
| }, | |
| "image": { | |
| "method": "get_image_features", | |
| "method_output_name": null | |
| }, | |
| "video": { | |
| "method": "get_video_features", | |
| "method_output_name": null | |
| } | |
| }, | |
| "module_output_name": "sentence_embedding", | |
| "processing_kwargs": { | |
| "text": { | |
| "truncation": false | |
| } | |
| } | |
| } | |