Instructions to use mlx-community/idefics2-8b-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/idefics2-8b-4bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("mlx-community/idefics2-8b-4bit") config = load_config("mlx-community/idefics2-8b-4bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Commit History
-
Update preprocessor_config.json
Verified signaturea910fc5
-
Update preprocessor_config.json
Verified signaturebbfb291 -
Delete model-00002-of-00002.safetensors
Verified signatureaca9a40 -
Delete model-00001-of-00002.safetensors
Verified signatureb1ad0a3
-
Upload folder using huggingface_hub
Verified signature5ebcc10
-
Update preprocessor_config.json
Verified signature6c086d6
-
Update README.md
Verified signatureffd7920 -
Upload folder using huggingface_hub
Verified signature41ec5d8
-
Update README.md
Verified signaturefaabf18 -
Upload 12 files
Verified signature92262a8 -
initial commit
Verified signatureae956bc