Installation¶
Requirements¶
- macOS on Apple Silicon (M1/M2/M3/M4/M5)
- Python 3.10+
Install with uv (Recommended)¶
Install with pip¶
Optional: Vision Support¶
For video processing with transformers:
Optional: Audio Support (STT/TTS)¶
Optional: Embeddings¶
What Gets Installed¶
mlx,mlx-lm,mlx-vlm- MLX framework and model librariestransformers,tokenizers- HuggingFace librariesopencv-python- Video processinggradio- Chat UIpsutil- Resource monitoringmlx-audio(optional) - Speech-to-Text and Text-to-Speechmlx-embeddings(optional) - Text embeddings
Verify Installation¶
# Check CLI commands
vllm-mlx --help
vllm-mlx-bench --help
vllm-mlx-chat --help
# Test with a small model
vllm-mlx-bench --model mlx-community/Llama-3.2-1B-Instruct-4bit --prompts 1
Troubleshooting¶
MLX not found¶
Ensure you're on Apple Silicon:
Model download fails¶
Check your internet connection and HuggingFace access. Some models require authentication:
You can inspect and stage models before serving:
vllm-mlx model inspect mlx-community/Llama-3.2-3B-Instruct-4bit
vllm-mlx model acquire mlx-community/Llama-3.2-3B-Instruct-4bit \
--target-dir ./models/llama-3b-4bit
Out of memory¶
Use a smaller quantized model:
Server interruptions during long runs (macOS sleep)¶
Your macOS machine may go to sleep during long-running server sessions. Try using caffeinate to prevent sleep: