Text Generation
Transformers
PyTorch
Safetensors
English
idefics
image-text-to-text
multimodal
text
image
image-to-text
text-generation-inference
Instructions to use HuggingFaceM4/idefics-80b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFaceM4/idefics-80b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HuggingFaceM4/idefics-80b")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("HuggingFaceM4/idefics-80b") model = AutoModelForMultimodalLM.from_pretrained("HuggingFaceM4/idefics-80b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HuggingFaceM4/idefics-80b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HuggingFaceM4/idefics-80b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceM4/idefics-80b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HuggingFaceM4/idefics-80b
- SGLang
How to use HuggingFaceM4/idefics-80b with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "HuggingFaceM4/idefics-80b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceM4/idefics-80b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "HuggingFaceM4/idefics-80b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HuggingFaceM4/idefics-80b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HuggingFaceM4/idefics-80b with Docker Model Runner:
docker model run hf.co/HuggingFaceM4/idefics-80b
Commit History
-
image net a bit of formatting
96b2b8c -
updates
50966bf -
trying that
65edf33 -
resolve conflicts
7f05f40 -
video datasets
5608691 -
add new lines + imagenet
9d73c99 -
Add Fairness eval table
dcb7082 -
Update Table with random shots numbers
a1d95e2
-
add finetuning examples
6b79b2a -
note about coco
3726114 -
oops
cb68b97 -
updates to the card
1eaac25 -
update transformers version in generation_config to match idefics-9b
809846f
-
enable legacy=True
936694b
-
Update config.json (#5)
- Update config.json (8cc3f584b9a160ae479de202e870c7199626d3d9)44215ea
-
s|IdeficsForCausalLM|IdeficsForVisionText2Text|g
5312415 -
add image_num_channels
8ea6a25 -
unfreeze layers
bd268c2 -
cleanup
02c5697 -
Update config.json (#4)
- Update config.json (5b12529d093d31df9a8cb95c375953df41163f37) Co-authored-by: Younes Belkada <ybelkada@users.noreply.huggingface.co>92a6c29
-
Update config.json (#3)
- Update config.json (da347504fd048feb2d8e2d79217df2299404c48a)0c44ec5 -
Update README.md
4a3d381
-
preprocessor_config
5215c66
-
Switch to IDEFICS/ OBELICS
62de87a -
fix significant digits in table
e23b75c
-
mention the useful tiny model
de16541 -
rename
45dd546 -
rename
a3796c6 -
add missing metadata
8ffb014 -
winoground fix
6edaaa6 -
IDEFICS
51b1776 -
take off remaining -1
c17962a -
fix table results rounding
70fea44 -
switch to OE VQA acc
5cc3ed2 -
fix winoground numbers
0b721e1 -
Update result table
052d671 -
Update README.md
4c02d51 -
add eval tables
7d53dc8
-
new
0940a33 -
new
6c74def -
Update README.md
d3f1708 -
Update README.md
a93d027 -
Update README.md
25ff6d2 -
Update README.md
a8977b9 -
fix source num tokens
fa62bff -
add num tokens source
73fda5b -
fix proportion numbers
436c345 -
Update README.md
2f0f4fc -
Update README.md
8683d64 -
Update README.md
ade3656