# Repository Briefing: vllm-project/vllm-metal
> Source: https://repoforai.com/repo/vllm-project/vllm-metal (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/vllm-project/vllm-metal
- **Official Docs / Website**: https://docs.vllm.ai/projects/vllm-metal
- **Category**: LLMs & Inference (大模型与推理微调)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A+ (96/100 · Maintenance 35/35 · Adoption 21/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.34.0 (2026-11-25) — https://github.com/vllm-project/vllm-metal/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Self-Hosted, Local AI, CLI, GPU
- **Momentum**: 2,043 ★ total (+6 24h / +20 7d) · 370 forks
- **Topics**: `apple-silicon`, `llm`, `macos`, `metal`, `mlx`, `vllm`
- **When to Use**: Best for: 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. Skip if: You only need an in-process MLX call, require CUDA-specific behavior, or cannot qualify an Alpha backend against your production model and load.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Serving boundary: Upstream vLLM retains the API server, scheduler, and paged block manager; the plugin implements request-aware attention.
- Execution path: MLX is the primary compute backend, `mlx_lm` supplies token-wise layers, and MLX and PyTorch share a lowering path.
- Kernel work: The plugin owns paged variable-length attention, M5 NAX prefill, and speculative decoding.
- Desktop memory: Sleep mode can release memory to other applications without shutting down the idle server.
- Model-specific features: D3 handles text-only decisions on MLX; MiniCPM-o 4.5 duplex audio/video and SDXL image generation go through vLLM-Omni.
- Deployment baseline: Apple Silicon on macOS 15 or later, Python 3.12 or 3.13, and vLLM Metal 0.34.0 aligned with vLLM core 0.34.0.
```

## Quick Start / Clone
```bash
brew tap vllm-project/vllm-metal https://github.com/vllm-project/vllm-metal
  brew install vllm-project/vllm-metal/vllm-metal
```
