Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md
Kapitsa: a blazing fast Apple Silicon optimized inference engine built for Qwen and Nemotron. Writing speed of Qwen3.6 35B-A3B on a MacBook Pro (2024), M4 Pro, 48 GB, in tokens per second, at 4-bit: Kapitsa 154, oMLX with DFlash2 127, Ollama 89, LM Studio 86, MTPLX 80, llama.cpp with MTP 69.

Install · Benchmarks · Models · Docs

Install

Requirements: a Mac with Apple silicon (M1 or newer) and macOS 14 Sonoma or later.

brew install nace-ai/tap/kapitsa
# or: curl -fsSL https://raw.githubusercontent.com/nace-ai/kapitsa/main/install.sh | bash
kapitsa opencode --model 35b    # also: kapitsa claude, kapitsa codex, kapitsa pi

On a 16-24 GB Mac use --model 9b, or 4b for the quickest replies. kapitsa serve starts the chat page and the OpenAI and Anthropic APIs at http://127.0.0.1:8000. Kapitsa updates itself. Usage guide

Benchmarks

Decode speed of a 512-token coding answer, in tokens per second, for Kapitsa and eight other engines on a MacBook Pro M4 Pro 48 GB, an M5 Max 128 GB and an M1 Pro 16 GB, each engine in its fastest setup; the numbers are in the tables below

Writing speed of a coding answer, each engine in its fastest setup. 🟩 fastest per model · — not measured · details

MacBook Pro (16-inch, 2024) · M4 Pro · 48 GB

Qwen

ModelKapitsaoMLXmlx‑serveOllamaMTPLXLM Studiollama.cppMLXRapid‑MLX
Qwen3.5
4B
4-bit
🟩 179 tok/s10213710910481708898
Qwen3.8
27B
4-bit
🟩 63 tok/s45543236151828—
Qwen3.6
35B‑A3B
4-bit
🟩 154 tok/s1271248980866986—

Nemotron

ModelKapitsaoMLXllama.cppMLX
Nemotron Dory1.0 4B
NVFP4
🟩 64 tok/s—
no support
648
Nemotron 3.5 Lightning 30B‑A3B
NVFP4
🟩 106 tok/s——65
Nemotron 3.5 Bolt 74B‑A9B
2/4/8-bit mix
🟩 64 tok/s35—
no Metal support
32

MacBook Pro (16-inch, 2026) · M5 Max · 128 GB

Qwen

ModelKapitsaoMLXmlx‑serveOllamaMTPLXLM Studiollama.cppMLXRapid‑MLX
Qwen3.5
4B
4-bit
🟩 332 tok/s192271213175154160148187
Qwen3.8
27B
4-bit
102 tok/s93🟩 130686932515461
Qwen3.6
35B‑A3B
4-bit
🟩 281 tok/s23226416612312717113298
Qwen3.8
Flash‑Next
180B‑A7B
4-bit
105 tok/s107🟩 1086088—
won't load
9677—
won't load

Nemotron

ModelKapitsaoMLXmlx‑serveOllamaMTPLXLM Studiollama.cppMLX
Nemotron Dory1.0 4B
NVFP4
🟩 117 tok/s—
no support
—
no support
—
no support
—
no support
—
no support
976
Nemotron 3.5 Lightning 30B‑A3B
NVFP4
🟩 239 tok/s190190153131110159139
Nemotron 3.5 Bolt 74B‑A9B
2/4/8-bit mix
🟩 120 tok/s69—
no support
—
no support
—
no support
—
no support
—
no Metal support
69
Nemotron 3.5 Super‑VL 120B‑A12B
NVFP4
🟩 85 tok/s52—
no support
6444616646

MacBook Pro (14-inch, 2021) · M1 Pro · 16 GB

Qwen

ModelKapitsaoMLXmlx‑serveOllamaMTPLXLM Studiollama.cppMLXRapid‑MLX
Qwen3.5
4B
4-bit
🟩 85 tok/s5562554247384652

Nemotron

ModelKapitsaoMLXllama.cppMLX
Nemotron Dory1.0 4B
NVFP4
🟩 40 tok/s—
no support
430

MacBook Pro (16-inch, 2026) · M5 Pro · 48 GB

Qwen

ModelKapitsaoMLXmlx‑serveOllamaMTPLXLM Studiollama.cppMLXRapid‑MLX
Qwen3.5
4B
4-bit
🟩 179 tok/s1131631341138993101112
Qwen3.8
27B
4-bit
61 tok/s51🟩 71404117303235
Qwen3.6
35B‑A3B
4-bit
🟩 167 tok/s14415610289961079876

Nemotron

ModelKapitsaoMLXmlx‑serveOllamaMTPLXLM Studiollama.cppMLX
Nemotron Dory1.0 4B
NVFP4
🟩 70 tok/s—
no support
—
no support
—
no support
—
no support
—
no support
1353
Nemotron 3.5 Lightning 30B‑A3B
NVFP4
🟩 136 tok/s124115921017210194
Nemotron 3.5 Bolt 74B‑A9B
2/4/8-bit mix
🟩 79 tok/s39—
no support
—
no support
—
no support
—
no support
—
no Metal support
41

Measure your Mac: kapitsa bench --submit adds it to the community results.

Models

ModelDownloadSpeculation
Qwen3.5-4B · 4b
dense
4-bit · 4.6 GB
also 6-bit 5.6 · 8-bit 6.7 · bf16 10.6 GB
DFlash / MTP
Qwen3.5-9B · 9b
dense
4-bit · 9.0 GBDFlash / MTP
Qwen3.8-27B · 27b
dense
4-bit · 20.2 GB
also 5-bit 23.5 · 6-bit 26.9 · 8-bit 33.6 · bf16 58.8 GB
DFlash2 / MTP
Qwen3.6-35B-A3B · 35b
MoE, 3B active
4-bit · 22.1 GB
also 5-bit 26.4 · 6-bit 30.7 · 8-bit 39.4 · bf16 71.9 GB
DFlash2 / MTP
Qwen3.8-Flash-Next 180B-A7B · flash-next
MoE, 7B active; 128 GB Macs
4-bit · 105.9 GB
4/6/8-bit MLX; its 32 GB n-gram table stays on the SSD
MTP
Nemotron Dory1.0 4B · dory
looped dense, 1-4 loops per token; text only
NVIDIA NVFP4 · 3.2 GB
also bf16 8.0 GB
—
Nemotron 3.5 Lightning 30B-A3B · lightning
hybrid Mamba-2 MoE, 3B active; text only
NVIDIA NVFP4 · 22.9 GB
4-bit NVFP4 experts, FP8, BF16
DSpark
Nemotron 3.5 Bolt 74B-A9B · bolt
hybrid Mamba-2 MoE, 9B active
NVIDIA 24 GB · 25.1 GB
2-bit experts, NVFP4, 8-bit
LiLiCorr
Nemotron 3.5 Super-VL 120B-A12B · super
hybrid Mamba-2 MoE, 12B active; 96 GB+ Macs
NVIDIA NVFP4 · 76.4 GB
4-bit NVFP4 experts, FP8, BF16
LiLiCorr

Other precisions: --model 35b:6bit is five times closer to bf16 than the 4-bit default (KL). All but Lightning and Dory read images. Memory: 16 GB for the 4B models, 32 GB for the 27B, 35B, Lightning and Bolt, 96 GB for Super-VL, 128 GB for Flash-Next. Details

How it works

How Kapitsa works. It guesses ahead, then checks in one go: a small draft model guesses the next few words, and the big model checks them all in one pass and keeps the ones it agrees with, so each pass writes several words. GPU: hand-written Metal code made for these models. Neural Engine: on the 4B, 27B, Bolt and Super-VL it reads part of each prompt beside the GPU. Memory: each conversation keeps what it has read, so a follow-up only reads the new message; up to 4 run at once.

Architecture · Contributing · Press kit · Apache 2.0, © 2026 Nace AI · Third-party notices

关于 About

Blazing fast Apple Silicon optimized inference engine built for Qwen and Nemotron. OpenAI + Anthropic API compatible. Built by folks from nace.ai

语言 Languages

C++55.6%
Metal22.0%
Python17.3%
Objective-C++3.6%
Shell0.6%
HTML0.4%
CMake0.2%
C0.2%
Ruby0.1%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
304
Total Commits
峰值: 304次/周
Less
More

核心贡献者 Contributors