youssofal/MTPLX
The fastest way to run Inkling 2 Mini, Qwen 3.8 and Ternary Bonsai 2 27B on a Mac: Inkling 2 Mini at up to 128.8 tok/s and Flash Next at 125 tok/s in OpenCode on an M5 Max, and a 27B model on 16 GB Macs. Native MTP speculative decoding on Apple Silicon, exact at any temperature. OpenAI and Anthropic compatible local server.
What it solves
Running large language models locally on a Mac is often slow. MTPLX speeds it up by using each model's own multi-token prediction (MTP) heads, which let the model draft several tokens at once instead of one at a time. This makes decoding about twice as fast on Apple Silicon, with no loss in quality.
How it works
MTPLX uses the model's own MTP heads to draft several tokens ahead. Then a single batched forward pass verifies that draft, and tokens are committed using exact rejection sampling with residual correction. This runs at the model's native temperature, so the output is statistically identical to plain decoding. MTPLX runs on Metal kernels, has no second draft model, and no greedy shortcuts that change what the model would have said.
The app and CLI also measure your Mac's hardware to pick the fastest decoding depth automatically.
Who it's for
Mac users with Apple Silicon (M1 or newer) and macOS 14+ who want to run large language models locally for coding, agents, image understanding, and more. MTPLX provides both a native app and a command-line tool, and it recommends the best model pack for your specific memory size.
Highlights
- Uses each model's own multi-token prediction heads for exact speculative decoding; measured speeds reach 1.6x to 2.24x faster than plain decoding.
- Native Mac app and CLI; the app handles setup, model download, fan control, and adds the
mtplxcommand to your PATH with no Homebrew needed. - Supports a wide range of models including Qwen 3.8, Inkling 2 Mini, and Bonsai 2, each with multiple packs tuned for speed or quality.
- Automatically checks your hardware and recommends the right model;
mtplx tunemeasures your Mac to set the optimal decoding depth.
Related
- Project
- Project
- Project
- Project
- Dispatch