Zero-Shot Image Classification
Transformers
Safetensors
sentence-transformers
mllama
image-text-to-text
mmeb
text-generation-inference
Instructions to use intfloat/mmE5-mllama-11b-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use intfloat/mmE5-mllama-11b-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="intfloat/mmE5-mllama-11b-instruct") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("intfloat/mmE5-mllama-11b-instruct") model = AutoModelForMultimodalLM.from_pretrained("intfloat/mmE5-mllama-11b-instruct", device_map="auto") - sentence-transformers
How to use intfloat/mmE5-mllama-11b-instruct with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("intfloat/mmE5-mllama-11b-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] - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from intfloat/mmE5-mllama-11b-instruct: direct link, hf CLI and curl.
- Browser
- Download file 17.2 MB
-
https://huggingface.co/intfloat/mmE5-mllama-11b-instruct/resolve/refs%2Fpr%2F2/tokenizer.json
- Command line
-
hf download hf://intfloat/mmE5-mllama-11b-instruct@refs/pr/2/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/intfloat/mmE5-mllama-11b-instruct/resolve/refs%2Fpr%2F2/tokenizer.json
17.2 MB
- Xet hash:
- bfd91a313ec19d3681e6b63a8890f4908a53bddb371077e2185c072834d2eca6
- Size of remote file:
- 17.2 MB
- SHA256:
- 9816d43bd5347d64bccc66b7710947fb18e9818cc660215b1462061d4a44e449
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.