Instructions to use mlx-community/FastVLM-0.5B-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/FastVLM-0.5B-bf16 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/FastVLM-0.5B-bf16") config = load_config("mlx-community/FastVLM-0.5B-bf16") # 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
-
Add vision_config (#3)
Verified signature- Add vision_config (cac57874de6f37fc2f6c31f5f43aa939f3065977)81ffe92
-
Create README.md (#1)
Verified signature- Create README.md (925ffdc7b9c636dd571ba2430b27908c240e3ee2)a17369d -
Upload folder using huggingface_hub
Verified signature0bc5eb1 -
initial commit
Verified signature60988c1