How to Deploy Molmo2-8B with vLLM
Younes El Hjouji
Quick Deployment
# Setup
python3.12 -m venv venv && source venv/bin/activate
pip install --upgrade pip && pip install vllm
# Launch (full native context)
vllm serve allenai/Molmo2-8B \
--trust-remote-code \
--dtype bfloat16 \
--max-model-len 36864 \
--max-num-batched-tokens 36864 \
--gpu-memory-utilization 0.9 \
--port 8000
# Test
curl http://localhost:8000/v1/models
Video Test:
VIDEO_BASE64=$(base64 -w 0 /path/to/video.mp4)
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d "{
\"model\": \"allenai/Molmo2-8B\",
\"messages\": [{
\"role\": \"user\",
\"content\": [
{\"type\": \"video_url\", \"video_url\": {\"url\": \"data:video/mp4;base64,\$VIDEO_BASE64\"}},
{\"type\": \"text\", \"text\": \"Describe this video.\"}
]
}],
\"max_tokens\": 100
}"
Configuration Options
| Config | GPU % | Context | Memory | Status |
|---|---|---|---|---|
| Solo (Recommended) | 90% | 36864 | ~130GB | ✅ Full native context |
| Standard | 70% | 8192 | ~102GB | ✅ Tested |
| Conservative | 60% | 4096 | ~87GB est. | Untested |
Notes
- Largest Molmo2 standard model (9B params)
- Higher quality than 4B variant
- Native context: 36,864 tokens
- Apache-2.0 license
- Requires H100/H200 or A100 80GB
Quick Reference: Port 8038 | 9B params | ~102GB | Qwen3-8B backbone