Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
Kapitsa is an inference engine for Apple silicon from Nace AI, built for Qwen (Alibaba) and Nemotron (NVIDIA) models and written mainly in C++ and Metal. It needs a Mac with an M1 or newer chip and macOS 14 Sonoma or later, installs with brew install nace-ai/tap/kapitsa or a curl script, and serves a chat interface plus OpenAI and Anthropic compatible APIs at http://127.0.0.1:8000 through kapitsa serve. Launcher commands start Claude Code, Codex, opencode or pi against the local model, for example kapitsa opencode --model 35b. Other commands include doctor, which reports the Mac's GPU and memory and which models fit, bench, which can submit results to community results, pull, list, rm and import, which loads a Qwen GGUF file from LM Studio, Ollama or llama.cpp. The model table lists eleven entries, from Qwen3.5-4B and 9B through Qwen3.8-27B, Qwen3.6-35B-A3B and the 180B-A7B Qwen3.8-Flash-Next to Nemotron Dory1.0 4B, Nemotron 3 Nano 4B, Nemotron Nano 9B v2, and Nemotron 3.5 Lightning, Bolt and Super-VL, with memory needs from 16 GB for the 4B and 9B models to 128 GB for Flash-Next. All but Lightning, Dory and the two Nemotron Nanos read images. The README describes speculative decoding, in which a small draft model guesses the next few words and the larger model verifies them in one pass, hand-written Metal code, use of the Neural Engine to read part of each prompt on the 4B, 27B, Bolt and Super-VL models, and a per-conversation cache so a follow-up only reads the new message, with up to 4 conversations at once. Its benchmarks measure decode speed on a 512-token coding answer, each engine in its fastest setup, and are published by the project itself. On a MacBook Pro M4 Pro with 48 GB at 4-bit, Kapitsa reaches 154 tokens/s on Qwen3.6 35B-A3B against 127 for oMLX, 124 for mlx-serve, 89 for Ollama, 86 for LM Studio and 69 for llama.cpp, and 179 on Qwen3.5 4B. The tables are not uniform: on an M5 Max with 128 GB, mlx-serve is ahead on Qwen3.8 27B (130 versus 102). The code is Apache-2.0 licensed.