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 processor_config.json from brevitech/Mistral-Multimodal-Embed-1B: direct link, hf CLI and curl.
- Browser
- Download file 455 Bytes
-
https://huggingface.co/brevitech/Mistral-Multimodal-Embed-1B/resolve/main/processor_config.json
- Command line
-
hf download hf://brevitech/Mistral-Multimodal-Embed-1B/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/brevitech/Mistral-Multimodal-Embed-1B/resolve/main/processor_config.json
455 Bytes
| { | |
| "processor_class": "MistralContrastiveProcessor", | |
| "auto_map": { | |
| "AutoProcessor": "processing_mistral_contrastive.MistralContrastiveProcessor" | |
| }, | |
| "video_processor": { | |
| "auto_map": { | |
| "AutoVideoProcessor": "processing_mistral_contrastive.MistralContrastiveVideoProcessor" | |
| }, | |
| "video_processor_type": "MistralContrastiveVideoProcessor", | |
| "do_sample_frames": true, | |
| "num_frames": 16, | |
| "size": {"longest_edge": 224} | |
| } | |
| } | |