Instructions to use Tokymin/SmolVLM2-2.2B-Instruct-video-feedback with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tokymin/SmolVLM2-2.2B-Instruct-video-feedback with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Tokymin/SmolVLM2-2.2B-Instruct-video-feedback")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Tokymin/SmolVLM2-2.2B-Instruct-video-feedback") model = AutoModelForMultimodalLM.from_pretrained("Tokymin/SmolVLM2-2.2B-Instruct-video-feedback", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Tokymin/SmolVLM2-2.2B-Instruct-video-feedback with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tokymin/SmolVLM2-2.2B-Instruct-video-feedback" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tokymin/SmolVLM2-2.2B-Instruct-video-feedback", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Tokymin/SmolVLM2-2.2B-Instruct-video-feedback
- SGLang
How to use Tokymin/SmolVLM2-2.2B-Instruct-video-feedback 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 "Tokymin/SmolVLM2-2.2B-Instruct-video-feedback" \ --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": "Tokymin/SmolVLM2-2.2B-Instruct-video-feedback", "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 "Tokymin/SmolVLM2-2.2B-Instruct-video-feedback" \ --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": "Tokymin/SmolVLM2-2.2B-Instruct-video-feedback", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Tokymin/SmolVLM2-2.2B-Instruct-video-feedback with Docker Model Runner:
docker model run hf.co/Tokymin/SmolVLM2-2.2B-Instruct-video-feedback
Ctrl+K
- Apr25_14-39-45_YAN-Machine
- Apr25_14-42-18_YAN-Machine
- Apr25_15-00-48_YAN-Machine
- Apr25_15-03-32_YAN-Machine
- Apr25_15-16-24_YAN-Machine
- Apr25_15-16-55_YAN-Machine
- Apr25_15-20-20_YAN-Machine
- Apr25_15-23-10_YAN-Machine
- Apr25_15-23-29_YAN-Machine
- Apr25_15-25-28_YAN-Machine
- Apr25_15-52-49_YAN-Machine
- Apr25_15-58-36_YAN-Machine
- Apr25_16-06-29_YAN-Machine
- Apr25_16-49-49_YAN-Machine
- Apr25_16-51-48_YAN-Machine
- Apr25_16-53-05_YAN-Machine
- Apr26_21-18-59_YAN-Machine
- Apr27_10-46-45_YAN-Machine
- Apr27_11-30-16_YAN-Machine
- Apr27_11-38-50_YAN-Machine
- Apr27_11-40-39_YAN-Machine
- Apr27_11-43-20_YAN-Machine
- Apr27_11-50-37_YAN-Machine