Repo of the Day
magnitudedev/magnitude
Published: Dec 3, 2026
Open repository ↗Open source inference engine optimized for consumer hardware. Profiles your machine, recommends the best models for it, then downloads, tunes, and runs them. Works on Apple Silicon, NVIDIA, AMD, or nothing but a CPU
Summary
Magnitude is an open source inference engine, written in Rust, that spreads model weights across GPU VRAM, system RAM, and NVMe SSD so large open-weight models can run on ordinary Macs and PCs. It supports Apple Silicon, NVIDIA, AMD, and Intel GPUs, or CPU-only setups, and exposes models over an OpenAI-compatible API so existing agents and tools can connect to it. The project is Apache 2.0 licensed and operates fully locally once a model is downloaded.
What it is useful for
- Running models that don't fit in VRAM. Most current open models are ultra-sparse MoEs split into hundreds of small "experts," with only about 5% active per token. Magnitude tiers them: VRAM holds shared layers and the hottest experts, RAM holds the next tier, and the SSD holds the rest, prefetching upcoming experts upward before the GPU requests them.
- Serving local models to agents you already use. The README lists one-click connections for Pi, OpenCode, Hermes, OpenClaw, Codex, Claude Code, Oh My Pi, and Cline; anything else talks to it through the OpenAI-compatible API.
- Private, offline work. Prompts, files, and models stay on the machine, with no API keys, token costs, or internet connection required after a model is downloaded.
- Concurrent agent sessions. It flexes KV memory, uses shared prefix caches, and shrinks KV memory when sessions go idle so the machine stays responsive.
Documented limitations worth planning around:
- VRAM must be able to hold at least a model's active experts. Beyond that, more experts cached in VRAM and RAM means faster runs, and a faster NVMe SSD (PCIe 5.0 is mentioned) helps when weights spill to disk.
- Only GGUF models from Hugging Face in supported families are supported, including fine-tunes and community quants; optimized kernels are written per model family.
- Kernel tuning happens automatically on your exact chip when you download a model, so the first download involves compilation. The README's benchmark chart compares decode speed for Qwen 3.8 Flash Next and DeepSeek V4.1 Flash on a Mac mini M5 Pro, RTX 3090, DGX Spark, and RTX 5090; full numbers live on magnitude.dev/benchmarks.
How engineers can use it
Installers are provided for macOS (Apple silicon and Intel .dmg), Windows x64, and Linux (x64 and ARM64, as .deb, .rpm, or .pkg.tar.zst). For a server, the README documents CLI-only installs:
curl -fsSL https://magnitude.dev/install.sh | sh # macOS / Linux
irm https://magnitude.dev/install.ps1 | iex # Windows PowerShell
Docker installs are documented at docs.magnitude.dev/installation/docker.
After installing, pick a model from the catalog at magnitude.dev/models — the app profiles your machine and recommends models before you download anything — then either connect an agent with one click or point any OpenAI-compatible client at the local API. The README does not spell out the local endpoint or the agent-pairing steps, so use the README and docs.magnitude.dev for those specifics.