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
-
tgi infos
48d1fa4
-
Adding carbon footprint information (#20)
- Adding carbon footprint information (a2b0422b337e999955549372d8708052dc8e5a6a) - adding 9b and 9b instruct (a583f4d206b40923a2f7e22a5993d3c7bcfd0ce1) Co-authored-by: Sasha Luccioni <sasha@users.noreply.huggingface.co>b2fa6b4 -
Update README.md
01698d0
-
Update README.md (#17)
- Update README.md (a0bb8718d2688c5c5b4e023bad7dfbd14cfc7110) Co-authored-by: Stas Bekman <stas@users.noreply.huggingface.co>eddaa07 -
Disable inference (#16)
- Disable inference (31deacf4764848b75b166f1a2e45e681d07f0eb3) Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>2ccbe9d
-
fix - thanks @joaogante !
1c86537 -
more specific wording
0f909ad -
more specific wording
34a2e3b -
change order
39b3f74
-
Update model card bias section (#9)
- Update model card bias section (654d142d14bcb806329b85a7e340d728d2f894e2) - Merge branch 'main' into pr/9 (2bc935ba142597e816ebcf39be2ef40192529702) Co-authored-by: Daniel van Strien <davanstrien@users.noreply.huggingface.co>7b2c3a2 -
Update README.md
39115ab
-
Merge branch 'main' of https://huggingface.co/HuggingFaceM3/idefics-80b into main
86ca379 -
updates to the readme
02787cf
-
Update README.md
cb7b149 -
add latest colab link and description
395412b
-
update the generation args
8a29e64
-
update colab link
1552af8
-
fix link stable bias
0fc4c61 -
Add more people to contributors
6982895
-
integrate Giada's comments
a6e5964
-
update links to bias sections (#14)
- update links to bias sections (e48f604be9a4d15b3825b733fe70904166b9586b)40ba628 -
add logo
fa3b42d -
Update model cards authors
a62b219
-
fix_details_model_card (#11)
- detail fixes (5edd82e6c8071cf4e18b5f390ec494165401ce8b) - smalll fixes (258ef74eea4986fe296eaf65270e459e989a1ca2) - add authors' names (8a431e388fb3a8c5d4a8c15e6752f0e3252f03dd) - Merge commit 'refs/pr/11' of https://huggingface.co/HuggingFaceM4/idefics-80b into pr/11 (71dc0d079ff6b4e0a1d679db5e0d0b07a826274a) - add colab link (27edbefdc6a43243806f6c78ad41a57b9ce99a2f) - fix legend + display (7d92337cdbb979005914321b3997b66a21d57a7c) - fix space (bb80664aa2a26e6af5ef5a7f1628bcf79c0a610d)4edcc87 -
Update README.md
697ab43
-
update_tables (#10)
- add more complete fairness tables (7fd64927c3ce647768437994520a430c591254bc) - fix detailed table column names (87c2f77a278c891d13ffd8e5186aa6f7d8e0146c) - update fairness std (00e118310a5d2ac41591682f4c544aaab4dcfded) - have model name display in one line (d93d37c6d83075998adaec704de25b9ac935fd59) - take off detailed fairness table (a5cbcec72482ec5f9dbe1d5f6595a0c6b7575871) - add per bucket std description (21d0413d703dba0a93bb091d9bb1c0a929df7fdc)c5cc8c2 -
update_vic_2 (#8)
- move fairbess numbers, add bunch of updates (25607c2f415dab4bdf6b508f1acec52ce9f40e4e) - cleanign (ee0a04d2f786c4797baffb534185c7843c9aaa53)6c9a197
-
add column to distinguish dataset part of finetuning mix
599076c -
Model card bias section (#6)
- Begin to flesh out bias sections (972b33cc1800f38d4caf11320fb5b660fa0791e7) - Update README.md (eeef13a1f0e91697423b0e8900993be40f9ef0eb) - Update README.md (216afa6f733e38b77be204634d894e15e2cad002) - Update README.md (4d7ed6d50f90d1cfe417d5614282cb38a25695d7) - Update README.md (f00431d2829d4265b9f04462be2a103e7d75221c) - Update README.md (0add71d02bba1a75dd300646a68ecac31eeca90d) - Update README.md (7a3817a8246f564fe78d5bac7f67b1a12eb88b1b) - Update README.md (601d3193790fd3a9139b9e0af096f14720140214) - Update README.md (7842a9ebee0141bcb84eb642cdf02e280c15fb9d) - Update README.md (b30feafd094b08c808cf6552a8fa8ad1242224ac) - Update README.md (1939e852459210782a711d0d6d5fed6e3d3d7975) - update nb link (875c0037211aba7fc7ed4aa401f1c3b8a46185b6) - Update README.md (d9135cc7e8525ceb0df7a4c44da548b6e665b91b) Co-authored-by: Daniel van Strien <davanstrien@users.noreply.huggingface.co>e7e7632
-
Update README.md
d999531 -
Update README.md
5d9b2ec -
Update README.md
4ece772
-
Add stars for evals in instruction dataset
9053c22 -
Fix model naming (idefix/idefics)
96555cb -
Update Idefics instruct eval table with new merged table
28fdffe -
switch Base vs Instruct
8ded392 -
add separator
7e556e9 -
Add fairness evals for Idefics instruct
455a3a6 -
Add idefics instruct comparison table
89c2eea -
Add Idefics instruct evals
e23861b
-
small wording issue
d464935 -
add instruct model card
a2ee636 -
fix rendering issue
da5defa -
images
91b973f -
add assets path
9d30b49 -
update_readme (#7)
- updates to the card (1eaac252ca38e70519ca240dae562a39a274b0a4) - oops (cb68b97a2617b7f21d84cc60ff864f3f811617d0) - note about coco (372611400c1a865f9b4278aa22c5ae713d94ad4b) - add finetuning examples (6b79b2a2b148a9a831696eeaead1efee37619dcd) - video datasets (56086918759c9756fde0dd2141da766c784c8e5e) - resolve conflicts (7f05f4023d8b6f35ecd9ca926e6039acd42e0afe) - trying that (65edf3349b25842a056b3b6f93e51d51a82b142e) - updates (50966bfc01f5209d467357425b13cbe73dc9251c) - image net a bit of formatting (96b2b8cbf7aefd68ac9f0b044ca1257dc833b399)79d1def -
add new lines + imagenet
9d73c99 -
Add Fairness eval table
dcb7082 -
Update Table with random shots numbers
a1d95e2
-
Update README.md
4a3d381