vllm-project/vllm-metal
Community maintained hardware plugin for vLLM on Apple Silicon
What it solves
vLLM normally relies on NVIDIA GPUs and CUDA, so it doesn't work on Apple Silicon Macs. This plugin fills that gap by letting vLLM run locally on those machines, using Apple's MLX framework instead of CUDA for the heavy computation.
How it works
The plugin reuses vLLM's existing API server, scheduler, and paged block manager — the parts that handle requests and memory. For running the model itself, it uses mlx_lm for the token-wise model layers. What vllm-metal adds is the attention path: it provides a custom paged varlen kernel (now the default), uses M5 NAX tensor units for prefill, and supports speculative decoding. The architecture unifies MLX and PyTorch under a single lowering path.
Who it's for
Anyone on an Apple Silicon Mac running macOS 15 (Sequoia) or later who wants to serve large language models locally with vLLM's request handling and serving features. It also suits developers interested in contributing to Metal kernels or Python integration.
Highlights
- v0.2.0 introduced a unified paged varlen Metal kernel as the default attention backend, resulting in 83x faster time-to-first-token and 3.6x throughput compared to v0.1.0.
- Concurrent serving on Apple Silicon is supported, as described in the official vLLM announcement.
- Sleep mode lets an idle model server return memory to other applications without shutting down (via KV offloading).
- Structured decisions (D3) are supported on MLX for text-only choice, yes/no, and score requests, with ultralow latency (e.g., under 0.2 s on an M5 Pro for DiffusionGemma).
- Text-to-image generation is supported through vLLM-Omni, starting with SDXL.
- The plugin handles a wide range of models, including a 27B Qwen3.8 on a single Mac and experimental Recursive Flint INT4 support with concurrent serving.
Related
- Dispatch
- Dispatch
- Project
- Project
- Project