MTPLX social preview
inference-server2,374Apache 2.0

MTPLX

The fastest way to run Qwen 3.8 Flash Next and Qwen 3.8 27B on a Mac: 125 tok/s in OpenCode on an M5 Max. Native MTP speculative decoding on Apple Silicon, exa…

Updated Sep 19, 2026
Platforms
macos
Pricing
free-open-source
Status
active
License
Apache 2.0

What it does

Core capabilities at a glance

  • Anthropic Compatible
  • Apple Silicon
  • Claude Code
  • Flash Next
  • Inference Engine
  • LLM Inference
  • Local AI
  • Local LLM

Deep dive

The full breakdown - performance, comparisons, and setup

MTPLX

MTPLX is a local inference server - The fastest way to run Qwen 3.8 Flash Next and Qwen 3.8 27B on a Mac: 125 tok/s in OpenCode on an M5 Max. Native MTP speculative decoding on Apple Silicon, exact at any temperature. OpenAI and Anthropic compatible local server.

Overview

MTPLX is a native Mac app and a command line that runs local language models on Apple Silicon with the model's own multi-token prediction (MTP) heads. It runs Qwen 3.8 Flash Next, the 125B mixture of experts, and Qwen 3.8 27B, plus Qwen 3.6, Qwen 3.5 and Gemma 4. The model drafts several tokens ahead of itself, one batched forward pass verifies the draft, and tokens are committed through exact rejection sampling with residual correction. The output distribution is the model's own at any temperature, and decode runs at around twice the speed of plain decoding: measured 1.6x on a 16 GB M4 Mac mini and 2.24x on an M5 Max.

Every number below was measured on a MacBook Pro M5 Max with 128 GB, fans verified at maximum, sampled at the model's own settings. Conditions and sources for every row, with the raw logs where they exist, are at mtplx.com/benchmarks.

MTPLX is open-source, written primarily in Python, with 2,374 GitHub stars under the Apache 2.0 license. The latest release is v2.11.3 (2026-09-17).

Key capabilities

From the project's documentation:

  • Youssofal/Qwen3.8-Flash-Next-MTPLX-Bare-Speed: flat 4-bit, the quickest build. 106.3 GB download, about 74 GB resident.
  • Youssofal/Qwen3.8-27B-MTPLX-Bare-Speed: flat 4-bit, 16.0 GB, 17.0 GB peak. Quickest chat speeds.
  • Not an external-drafter system. The drafter is the target model's own MTP heads.
  • Not a greedy-argmax trick. Acceptance is exact rejection sampling, correct at any temperature.
  • Not a CUDA project. MTPLX is MLX-native and Apple Silicon first. For Linux, use vLLM.

Install

A quick way to get started (always check the official docs for the latest):

pip install mtplx

How it fits a local-AI stack

MTPLX runs on your own hardware, so pair it with a model and a GPU sized to your needs. Use the VRAM calculator to pick a model that fits your card, and see what you can run for hardware guidance. Related local inference servers in the directory:

Sources

Stats from GitHub, 2026-09-19.

Frequently asked

Quick answers to common questions

What is MTPLX?

MTPLX is a inference-server tool for local AI workloads. The fastest way to run Qwen 3.8 Flash Next and Qwen 3.8 27B on a Mac: 125 tok/s in OpenCode on an M5 Max. Native MTP speculative decoding on Apple Silicon, exa…

Is MTPLX free and open source?

Yes, MTPLX has 2,374 GitHub stars and is licensed under Apache 2.0. You can self-host it for free on macos.

What platforms does MTPLX support?

MTPLX runs on macos.

What hardware do I need for MTPLX?

The hardware requirements depend on which models you run. Check our hardware directory for compatible GPUs and systems. MTPLX has 2,374 GitHub stars and an active community.

Does MTPLX support GPU acceleration?

MTPLX supports GPU acceleration via CUDA, Metal, or Vulkan depending on your platform. For the best performance, pair it with an NVIDIA RTX 4090 or 5090.

What are the best alternatives to MTPLX?

Popular alternatives include other inference-server tools in our directory. Browse our full collection at /tool for comparisons, community reviews, and benchmark data to find the right fit for your workflow.

How much does MTPLX cost?

MTPLX is free-open-source. It is completely free and open source to self-host.

Pairs well with

Complementary tools, models, and hardware

Comments coming soon

Configure NEXT_PUBLIC_GISCUS_REPO_ID and NEXT_PUBLIC_GISCUS_CATEGORY_ID at giscus.app to enable.