Instructions to use smdesai/SmolVLM2-2.2B-Instruct-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use smdesai/SmolVLM2-2.2B-Instruct-4bit with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("smdesai/SmolVLM2-2.2B-Instruct-4bit") model = AutoModelForMultimodalLM.from_pretrained("smdesai/SmolVLM2-2.2B-Instruct-4bit", device_map="auto") - MLX
How to use smdesai/SmolVLM2-2.2B-Instruct-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download smdesai/SmolVLM2-2.2B-Instruct-4bit --local-dir SmolVLM2-2.2B-Instruct-4bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
|
Download README.md from smdesai/SmolVLM2-2.2B-Instruct-4bit: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/smdesai/SmolVLM2-2.2B-Instruct-4bit/resolve/main/README.md
- Command line
-
hf download hf://smdesai/SmolVLM2-2.2B-Instruct-4bit/README.md
-
curl -L -o README.md https://huggingface.co/smdesai/SmolVLM2-2.2B-Instruct-4bit/resolve/main/README.md
1 kB
metadata
library_name: transformers
license: apache-2.0
datasets:
- HuggingFaceM4/the_cauldron
- HuggingFaceM4/Docmatix
- lmms-lab/LLaVA-OneVision-Data
- lmms-lab/M4-Instruct-Data
- HuggingFaceFV/finevideo
- MAmmoTH-VL/MAmmoTH-VL-Instruct-12M
- lmms-lab/LLaVA-Video-178K
- orrzohar/Video-STaR
- Mutonix/Vript
- TIGER-Lab/VISTA-400K
- Enxin/MovieChat-1K_train
- ShareGPT4Video/ShareGPT4Video
pipeline_tag: video-text-to-text
language:
- en
base_model:
- HuggingFaceTB/SmolVLM-Instruct
tags:
- mlx
smdesai/SmolVLM2-2.2B-Instruct-4bit
This model was converted to MLX format from HuggingFaceTB/SmolVLM2-2.2B-Instruct using mlx-vlm version 0.1.14.
Refer to the original model card for more details on the model.
Use with mlx
pip install -U mlx-vlm
python -m mlx_vlm.generate --model smdesai/SmolVLM2-2.2B-Instruct-4bit --max-tokens 100 --temp 0.0 --prompt "Describe this image." --image <path_to_image>