vllm-project/vllm-metal
MLX-backed vLLM plugin for concurrent local inference on Apple Silicon
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
vLLM Metal is a Python hardware plugin, not a separate inference server. Upstream vLLM owns the API server, request scheduler, and paged block manager. mlx_lm supplies the token-wise model layers, MLX is the primary compute backend, and the plugin brings MLX and PyTorch together under a single lowering path.
The Metal-specific boundary is request-aware attention. The plugin owns the paged variable-length kernel, the M5 NAX prefill path, and speculative decoding. This split keeps serving policy upstream while putting hardware-specific execution in the plugin. It also explains why a checkpoint loading through the vLLM stack is not sufficient validation: exercise mixed prompt lengths and concurrent decoding to test the Metal execution path your service will actually use.
Key Capabilities & Differentiators
Concurrent serving is a core reason to use the plugin over direct in-process model execution. Its model coverage is specific rather than uniform: Nanbeige 4.2 runs as a looped transformer that processes each token through the layer stack twice; Recursive Flint INT4 has experimental MLX support, including concurrent serving. On the 0.34.0 line, LFM3 and LFM3-VL no longer require --trust-remote-code.
D3 supports text-only choice, yes/no, and score requests on MLX. The vLLM-Omni path covers concurrent duplex conversations with audio and video on MiniCPM-o 4.5 and text-to-image generation starting with SDXL. These examples establish distinct execution paths, not blanket family or format compatibility. Check docs/supported_models.md for the exact checkpoint and validate the modality, precision, and concurrency you intend to serve together.
Trade-offs & Limitations
Compared with calling MLX directly, vLLM Metal gives a shared service vLLM’s API, scheduler, and paged block management. That matters when multiple clients submit overlapping requests; it adds integration and version-alignment work when a single process only needs a local model call. Choose CUDA vLLM when your production target is NVIDIA and your tests need to exercise its GPU execution paths. The shared serving architecture does not establish backend performance or feature parity.
On a Mac, weights, KV cache, and other applications compete for unified memory. Sleep mode can give memory back to those applications while the server is idle, but does not increase capacity under sustained load. Benchmark your actual context-length and concurrency mix, checking peak memory pressure, swap, time to first token, and decode throughput. The package is classified Alpha, so treat backend and checkpoint upgrades as changes to qualify rather than routine drop-in replacements.
Hardware & Deployment Guide
The target is an Apple Silicon Mac on macOS 15 (Sequoia) or later, and the package declares Python >=3.12,<3.14. For a stable local service, install the project’s Homebrew tap and formula, then invoke vllm without activating an environment. The development installer requires no compiler and uses ~/.venv-vllm-metal; an editable checkout for Python or kernel contributions uses native build tools.
vLLM Metal 0.34.0 tracks vLLM core 0.34.0. The later v0.34.0.dev20261202005956 build requires gguf 0.19.0, a development-build dependency change rather than a reason to assume the stable pin is the same. Pin the plugin, core, and checkpoint together for repeatable rollouts. If the service must run offline, stage dependencies and weights ahead of time and verify a cold start without network access.
mlx_lm supplies token-wise layers, and MLX and PyTorch share a lowering path.Teams running a shared local inference API on Apple Silicon that want vLLM scheduling and have a validated checkpoint that fits the target concurrency and memory budget.
You only need an in-process MLX call, require CUDA-specific behavior, or cannot qualify an Alpha backend against your production model and load.
Quick Start & Installation
brew tap vllm-project/vllm-metal https://github.com/vllm-project/vllm-metal brew install vllm-project/vllm-metal/vllm-metal
Comparison vs. Top LLMs & Inference Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| vllm-metal ★ | 2k | +20 | Python | Apache-2.0 | MLX-backed vLLM plugin for concurrent local inference on Apple Silicon |
| DeepInfer | 27.7k | +1.3k | Python | Apache-2.0 | An accelerator-tuned offline inference engine for DeepSeek-V4.1-Flash |
| vllm | 98.2k | +435 | Python | Apache-2.0 | Paged-KV inference engine for high-throughput, self-hosted LLM serving |
| sglang | 39.4k | +237 | Python | Apache-2.0 | Self-hosted inference runtime for serving LLMs and multimodal models across acce |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/vllm-project/vllm-metal.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about vllm-metal
What does the plugin replace, and what remains upstream?
mlx_lm executes token-wise model layers, while vLLM Metal implements request-aware attention. Teams can retain the vLLM serving architecture, but should verify compatibility with the Metal backend for each checkpoint and feature they rely on.What hardware and runtime do I need, and how should I size memory?
Can I self-host it commercially or run it in a restricted network?
When should I choose vLLM Metal over direct MLX or CUDA vLLM?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy