# Magnitude (inference engine)

> Source: https://aiwiki.ai/wiki/magnitude_inference_engine
> Updated: 2026-10-18
> Fact-checked: 2026-10-18
> Categories: AI Inference, AI Tools & Products, Developer Tools, Open Source AI
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "Magnitude (inference engine)." aiwiki.ai, 18 Oct 2026. https://aiwiki.ai/wiki/magnitude_inference_engine
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**Magnitude** is an open-source inference engine for running open-weight language models on local hardware, developed by Magnitude AI Inc., a San Francisco startup from the [Y Combinator](https://aiwiki.ai/wiki/y_combinator) Summer 2025 batch.[1][2][4] Its defining feature is on-device kernel tuning: when a user downloads a model, Magnitude spends up to a minute testing different ways of splitting the computation on that specific chip and keeps the fastest configuration that does not change the model's output.[1][6] It ships as a desktop app and CLI for macOS, Windows and Linux, runs on Apple Silicon, NVIDIA and AMD GPUs or on a CPU alone, pairs most catalog models with a [speculative decoding](https://aiwiki.ai/wiki/speculative_decoding) drafter, and exposes OpenAI-compatible and Anthropic-compatible APIs for coding agents.[1][11] The code is written in Rust and released under the Apache 2.0 license.[1][5]

The engine was introduced in a Launch HN post on Hacker News on 30 September 2026 with a claim of being "up to 2x faster than [llama.cpp](https://aiwiki.ai/wiki/llama_cpp)".[5] On 15 October 2026 co-founder Tom Greenwald announced it again with a new headline figure, "over 2x faster than [Ollama](https://aiwiki.ai/wiki/ollama)", based on the company's own benchmark of 11 models.[6][3] An independent re-test published on X the next day reproduced the speedup on Magnitude's own workload, which asks the model to repeat text from its prompt, but found Magnitude slower than Ollama, with each engine using its default drafter, when the same model had to write new text.[15]

## Overview

| Attribute | Detail |
|---|---|
| Developer | Magnitude AI Inc. (Y Combinator S25)[2][4] |
| Founders | Tom Greenwald (CEO), Anders Lie (CTO)[4] |
| First release of own engine | v0.2.0, 30 September 2026 (earlier versions used llama.cpp)[7] |
| Version at the 15 October announcement | 0.2.9 (released 15 October 2026)[8] |
| License | Apache License 2.0[1] |
| Main language | Rust[5][13] |
| Backends | Metal, CUDA, Vulkan, CPU[9] |
| Operating systems | macOS, Windows, Linux[1] |
| API | OpenAI-compatible and Anthropic-compatible HTTP API on port 10100[11] |
| Repository | github.com/magnitudedev/magnitude[1] |

## History

Magnitude AI Inc. lists Tom Greenwald as founder and CEO and Anders Lie as founder and CTO; its Y Combinator profile gives the founding year as 2025, the batch as Summer 2025 and the team size as two.[4] Before the inference engine, the company's best-known project was an open-source, vision-first browser agent, whose GitHub repository the company created in March 2025.[18] In the Launch HN post the founders wrote that they had built that agent "to 4k+ GH stars and 100k+ downloads" and turned to inference after finding that no engine suited their goal of running it on local models.[5]

The current magnitudedev/magnitude repository was created on 12 June 2026.[13] Releases before version 0.2.0 ran on a llama.cpp-based backend: the 0.2.0 release notes, dated 30 September 2026, say the release replaced "the llama.cpp-based inference engine with Magnitude's own engine which automatically optimizes itself for any hardware".[7] Greenwald later told a user on X that Magnitude is "not built on llama.cpp".[17]

The Launch HN post titled "Magnitude (YC S25) - Self-optimizing inference engine for agents" went up on 30 September 2026.[5] The Japanese technology site GIGAZINE covered the launch on 1 October 2026, summarizing the team's llama.cpp benchmark and its plans for expert streaming.[14] Patch releases followed through early October; version 0.2.9, published on 15 October, added the ability to connect [Claude Code](https://aiwiki.ai/wiki/claude_code) to a local model without a Claude login and, according to its notes, improved performance "through better kernel tuning and token packing".[8] The same day Greenwald posted the "over 2x faster than Ollama" announcement, which by 19 October 2026 showed about 98,700 views on X.[6] As of 19 October 2026 the GitHub repository had about 7,140 stars and 490 forks.[13]

## Design

### On-device kernel tuning

Magnitude's documentation argues that [llama.cpp](https://aiwiki.ai/wiki/llama_cpp), Ollama and LM Studio "ship one-size-fits-all kernels, because tuning each model for each chip by hand would take forever".[1] Magnitude's kernels are written with tunable parameters. On download, the engine tries different settings (in the README's words, "how many GPU threads team up, how big a chunk each one takes, how far ahead to load data") and keeps the fastest combination that leaves the output unchanged.[1] Greenwald said on X that the search is capped at one minute because the team found it converges in that time, and that a new quantization of a model, or an update that changes the kernels, triggers a fresh tuning run while unchanged combinations keep their old results.[17]

The company writes its own kernels for the most popular open-weight families instead of supporting arbitrary models. Greenwald said this is why Magnitude does not load arbitrary models from [Hugging Face](https://aiwiki.ai/wiki/hugging_face), though he said the team plans to allow external models from supported families.[17] As of 19 October 2026 the public catalog listed 19 models, including [Qwen3.8](https://aiwiki.ai/wiki/qwen3_8) 27B and Flash Next, [Qwen3.6](https://aiwiki.ai/wiki/qwen3_6) 35B-A3B, [Gemma 4](https://aiwiki.ai/wiki/gemma_4) from E2B to 31B, [Muse Glimmer](https://aiwiki.ai/wiki/muse_glimmer) 30B, [MiniCPM-V](https://aiwiki.ai/wiki/minicpm_v) 4.7 35B-A3B and [Liquid AI](https://aiwiki.ai/wiki/liquid_ai)'s LFM2.5 24B-A2B.[12]

### Engine architecture

The repository's inference workspace describes a Rust engine built on a component called Seismic. The engine handles model interpretation, generation, scheduling and state, while Seismic "owns numerical compilation, device resources, and execution on CPU, Metal, CUDA, and Vulkan".[10] The architecture document describes Seismic as a language, compiler and runtime that build candidate implementations of each computation for a given device and select among them. It states that the target is "near-optimal selection" and that a good benchmark score does not by itself establish a near-optimality bound.[10] The document also says an earlier design built on Ops and [TileLang](https://aiwiki.ai/wiki/tilelang) has been replaced by Seismic.[10]

### Hardware support

The compatibility document sets one floor per backend:[9]

| Backend | Platforms | Minimum hardware | Driver or OS floor |
|---|---|---|---|
| Metal | macOS on Apple Silicon | Any [Apple Silicon](https://aiwiki.ai/wiki/apple_silicon) Mac running macOS 15 | macOS 15 |
| [CUDA](https://aiwiki.ai/wiki/cuda) | Linux x64 and arm64, Windows x64 | Compute capability 8.0 ([Ampere](https://aiwiki.ai/wiki/nvidia_ampere)) or newer | NVIDIA driver R525 (CUDA 12.0) |
| Vulkan | Linux x64 and arm64, Windows x64 | Vulkan 1.3 device meeting a feature floor | Current vendor driver |
| CPU | All hosts | x86-64-v2 or AArch64 | glibc 2.35 on Linux, macOS 15 |

The CUDA table in that document lists GB10 ([NVIDIA DGX Spark](https://aiwiki.ai/wiki/nvidia_dgx_spark)) at compute capability 12.1 and explains that kernels are compiled on the user's machine by a bundled NVRTC 12.9, so no CUDA toolkit is needed. Turing and Volta GPUs are excluded from the CUDA backend and served through Vulkan, and Jetson Thor and architectures newer than NVRTC 12.9's targets, such as Rubin, are listed as unsupported for now.[9] The user documentation states that Magnitude does not ship a ROCm backend; AMD GPUs run through Vulkan, and Intel Macs run on the CPU only.[11] Greenwald said Intel GPUs "should already work" through the Vulkan backend.[17]

### Speculative decoding and memory

Magnitude says each model ships with a drafter for speculative decoding, although on 19 October 2026 two of the 19 catalog models (LFM2.5 24B-A2B and MiniCPM5 1B) had none listed.[1][12] The documentation names three drafter types: [multi-token prediction](https://aiwiki.ai/wiki/multi_token_prediction) (MTP), [DFlash](https://aiwiki.ai/wiki/dflash) and DSpark.[11] The 0.2.0 release notes also mention DFlash2 and say that speculative decoding with these drafters had become faster than plain decoding on Apple Silicon for Qwen3.6-35B-A3B at 65,000 tokens of context (10.7% faster, where it had been 7% slower) and faster on NVIDIA (38.8% over plain decoding, up from 28.7%).[7]

For memory, Magnitude uses a quantized [KV cache](https://aiwiki.ai/wiki/kv_cache), which the company says "halves memory per agent".[1] In the Launch HN post the founders described two further mechanisms. Magnitude reserves only enough memory for the model weights at startup and grows the heap as agent sessions lengthen, freeing it when agents stop. It also uses "hybrid paged attention", which borrows from [SGLang](https://aiwiki.ai/wiki/sglang) so that concurrent sessions share [prefix caches](https://aiwiki.ai/wiki/prefix_caching) while keeping memory placement favorable to single-session speed.[5] The post names FlashAttention, FlashInfer, TurboQuant and SGLang's [RadixAttention](https://aiwiki.ai/wiki/radix_attention) among the ideas the team drew on.[5]

### Positioning

The Launch HN post groups other engines into three kinds: engines built for batched datacenter serving at the cost of single-session speed ([vLLM](https://aiwiki.ai/wiki/vllm), SGLang), engines designed for broad compatibility rather than specific hardware (llama.cpp, Ollama), and engines specialized for particular hardware or models.[5] Asked how Magnitude compares with vLLM and SGLang, Greenwald said on 15 October that the team had not benchmarked them and that Magnitude is "built for single-stream decode on your own machine".[17]

## Agent integration and API

Magnitude serves an HTTP API on port 10100 whenever the desktop app or `magnitude serve` is running, with an OpenAI-compatible base path (`/inference/v1`) and an Anthropic-compatible one (`/inference/anthropic`).[11] The app's Connections screen configures supported agents in one click. The README lists [Pi](https://aiwiki.ai/wiki/pi_agent), [OpenCode](https://aiwiki.ai/wiki/opencode), [Hermes](https://aiwiki.ai/wiki/hermes_agent), [OpenClaw](https://aiwiki.ai/wiki/openclaw), Codex, Claude Code, Oh My Pi and [Cline](https://aiwiki.ai/wiki/cline).[1] On Linux and macOS, `magnitude server setup` installs Magnitude as a service that starts at boot and can serve agents on other computers.[1] The documentation says models load on demand when an agent sends a request, unload when idle or when memory is tight, and use speculative decoding and prompt caching automatically.[11]

## Performance claims

### Launch HN: against llama.cpp

The 30 September post reported one model, Qwen3.6 35B-A3B at 4-bit with 64,000 tokens of context and no speculative decoding:[5]

| Hardware | Decode (llama.cpp to Magnitude) | Prefill (llama.cpp to Magnitude) | Per-agent memory |
|---|---|---|---|
| Mac M4 Pro, 48 GB (Metal) | 30 to 57 tok/s (92% faster) | 466 to 507 tok/s (9% faster) | 28% less |
| NVIDIA DGX Spark (CUDA) | 49 to 58 tok/s (19% faster) | 2,033 to 2,507 tok/s (23% faster) | 27% less |

### 15 October: against Ollama

The second announcement compared Magnitude with Ollama v0.35.1 across 11 models, with speculative decoding on for both engines. Magnitude reports an average 1.32x faster prefill and 2.19x faster decode on a Mac M4 Pro against Ollama's MLX runner, and 1.34x faster prefill and 2.17x faster decode on a DGX Spark against Ollama's llama.cpp runner.[3][6] The averages are arithmetic means of per-model speedups. The per-model results, all self-reported:[3]

| Model | Mac prefill speedup | Mac decode, Ollama to Magnitude (tok/s) | DGX Spark prefill speedup | DGX Spark decode, Ollama to Magnitude (tok/s) | Drafter (Ollama / Magnitude) |
|---|---|---|---|---|---|
| Qwen 3.5 4B | 1.81x | 45.2 to 134 (2.97x) | 1.48x | 61.1 to 296 (4.84x) | MTP / DFlash |
| Qwen 3.5 9B | 1.64x | 41.8 to 97.4 (2.33x) | 1.43x | 53.9 to 214 (3.96x) | MTP / DFlash |
| Qwen 3.8 27B | 1.30x | 21.0 to 34.3 (1.63x) | 1.27x | 34.0 to 66.7 (1.96x) | MTP / DFlash2 |
| Qwen 3.6 35B | 1.23x | 47.2 to 122 (2.59x) | 1.11x | 85.8 to 216 (2.52x) | MTP / DFlash |
| Gemma 4 E2B | 0.91x | 118 to 164 (1.39x) | 2.20x | 177 to 268 (1.51x) | MTP / MTP |
| Gemma 4 E4B | 1.33x | 37.5 to 111 (2.96x) | 1.79x | 111 to 183 (1.65x) | MTP / MTP |
| Gemma 4 12B | 1.44x | 30.7 to 41.5 (1.35x) | 1.00x | 45.4 to 62.8 (1.38x) | MTP / MTP |
| Gemma 4 26B | 1.01x | 38.7 to 82.4 (2.13x) | 0.96x | 79.7 to 113 (1.42x) | MTP / MTP |
| Gemma 4 31B | 1.06x | 8.6 to 30.2 (3.51x) | 1.09x | 25.1 to 50.7 (2.02x) | MTP / MTP |
| Nemotron 3.5 | 1.10x | 49.1 to 63.4 (1.29x) | 1.03x | 94.9 to 72.2 (0.76x) | MTP / DFlash |
| Muse Glimmer | 1.67x | 17.5 to 34.1 (1.95x) | 1.39x | 37.9 to 68.2 (1.80x) | DFlash / DFlash |
| Average | 1.32x | 2.19x | 1.34x | 2.17x | |

### Methodology and the company's caveats

The benchmark page describes the workload as "one chat request with about 64k tokens of context and 256 output tokens: passages from Moby-Dick, with the model asked to repeat the latest one", using greedy sampling with thinking turned off.[3] Each request ran in a fresh engine process with an empty prompt cache. Each result is the median of two requests, except some Ollama figures, which the page says are single requests from an earlier run of the same harness.[3] The models were "about 4-bit" on both engines: Ollama used its MLX NVFP4 tags on the Mac (the Qwen 3.5 4B row lists a GGUF Q4_K_M tag) and GGUF Q4_K_M tags on the DGX Spark.[3]

The page lists several caveats of its own:[3]

- On the Mac, Ollama's MLX runner drafted very few tokens for Gemma 4 E4B, 26B and 31B at 64k context even with its drafter loaded, so "those decode gains partly compare speculative decoding against almost none."
- Magnitude was slower in three cases, all included in the averages: Nemotron 3.5 decode on DGX Spark, Gemma 4 E2B prefill on the Mac and Gemma 4 26B prefill on DGX Spark.
- "The engines don't run identical weights, templates, or numerics, so outputs differ." Every request produced valid text for all 256 tokens, but "Answer quality isn't scored."

The benchmark harness is in the repository's `inference/` directory, and the page gives the command used to reproduce a run in its `prose-repeat` mode.[3]

## Independent testing

On 16 October 2026 Niklas Lenz (@niklaslenz_ai), who tests local AI setups on his own hardware, published a re-test of one of the 11 models on X.[15][16] He rebuilt the copy test from Magnitude's open harness and ran Qwen3.6 35B-A3B on an ASUS Ascent GX10 (a GB10 system with 128 GB) with the GPU clock capped at 2,200 MHz. He then added a second round in which the model writes a new story after a similar long prompt. Both engines ran with their default drafters, greedy sampling, thinking off and 256 output tokens, and he reports the median of three runs.[15]

| Lenz test, Qwen3.6 35B-A3B | Ollama 0.40.5 | Magnitude 0.2.9 | Ratio |
|---|---|---|---|
| Round 1: copy a passage, 66K-token prompt (decode) | 87.2 tok/s | 188.9 tok/s | 2.17x |
| Round 2: write a new story, 67K-token prompt (decode) | 63.4 tok/s | 50.4 tok/s | 0.79x |
| Prefill at 66K tokens | 1,834 tok/s | 2,332 tok/s | 1.27x |
| New story with no context (decode) | 83.5 tok/s | 77.6 tok/s | About 0.93x (computed) |

Lenz wrote that "'over 2x' holds for their test" and that copying is "the best case for a drafter": Magnitude's DFlash drafter had 75% of its guesses accepted when copying and 43% on the story.[15] He said Ollama 0.35.1, the version Magnitude benchmarked, gave the same picture (85.7 tok/s copying, 63.8 tok/s on the story). He also noted that the setups were not identical, as in Magnitude's test: Ollama ran its registry tag (Q4_K_M with built-in MTP), while Magnitude ran [Unsloth](https://aiwiki.ai/wiki/unsloth)'s UD-Q4_K_XL [GGUF](https://aiwiki.ai/wiki/gguf) with its DFlash drafter. With Magnitude's exact GGUF imported into Ollama, where no drafter was available, Magnitude was faster in both rounds (188.9 against 45.6 tok/s copying, 50.4 against 46.1 tok/s on the story).[15]

His Magnitude copy result (188.9 tok/s) was lower than the 216 tok/s on Magnitude's page for this model. Lenz listed differences that could matter: Magnitude starts a fresh engine for each request, whereas he used a running server with a random nonce to avoid prompt-cache hits, and Ollama ran its default f16 KV cache while Magnitude uses a quantized one. Like Magnitude, he did not score the quality of the output.[15]

## Roadmap

In the 15 October announcement Greenwald listed three planned features: expert streaming from RAM or disk to run models larger than GPU memory, splitting one model across all of a machine's GPUs and CPU, and attention pruning "that skips low-impact math, for much faster prefill".[6] The Launch HN post also described a planned kernel compiler that would choose kernel fusion and implementations automatically.[5] Asked about [DeepSeek](https://aiwiki.ai/wiki/deepseek_v4) models, Greenwald said the team planned to add support "very soon" and that it would be especially relevant once expert streaming is implemented.[17]

## See also

- [Ollama](https://aiwiki.ai/wiki/ollama)
- [llama.cpp](https://aiwiki.ai/wiki/llama_cpp)
- [Splash (inference engine)](https://aiwiki.ai/wiki/splash_inference_engine)
- [Speculative decoding](https://aiwiki.ai/wiki/speculative_decoding)
- [KV-cache quantization](https://aiwiki.ai/wiki/kv_cache_quantization)
- [Quantization](https://aiwiki.ai/wiki/quantization)

## References

1. Magnitude, "magnitudedev/magnitude" README, GitHub. https://github.com/magnitudedev/magnitude (accessed 19 October 2026)
2. Magnitude, "Run open models as fast as your hardware allows", magnitude.dev. https://magnitude.dev/ (accessed 19 October 2026)
3. Magnitude, "Magnitude vs Ollama benchmarks". https://magnitude.dev/benchmarks (accessed 19 October 2026)
4. Y Combinator, "Magnitude: Run open models as fast as your hardware allows", company profile. https://www.ycombinator.com/companies/magnitude (accessed 19 October 2026)
5. Anders Lie and Tom Greenwald, "Launch HN: Magnitude (YC S25) - Self-optimizing inference engine for agents", Hacker News, 30 September 2026. https://news.ycombinator.com/item?id=49911995
6. Tom Greenwald (@tomgreenwald), launch post on X, 15 October 2026. https://x.com/tomgreenwald/status/2110718297255670071
7. Magnitude, "@magnitudedev/cli@0.2.0" release notes, GitHub, 30 September 2026. https://github.com/magnitudedev/magnitude/releases/tag/%40magnitudedev%2Fcli%400.2.0
8. Magnitude, "@magnitudedev/cli@0.2.9" release notes, GitHub, 15 October 2026. https://github.com/magnitudedev/magnitude/releases/tag/%40magnitudedev%2Fcli%400.2.9
9. Magnitude, "Compatibility" (inference/docs/compatibility.md), GitHub. https://github.com/magnitudedev/magnitude/blob/main/inference/docs/compatibility.md
10. Magnitude, "Inference" README and "Inference V4" and "Seismic" architecture overviews, GitHub. https://github.com/magnitudedev/magnitude/tree/main/inference
11. Magnitude documentation: "Hardware", "Models" and "API overview". https://docs.magnitude.dev/hardware ; https://docs.magnitude.dev/models ; https://docs.magnitude.dev/api/overview (accessed 19 October 2026)
12. Magnitude, "Browse open models" catalog. https://magnitude.dev/models (accessed 19 October 2026)
13. GitHub API, repository metadata for magnitudedev/magnitude (created 12 June 2026; language, stars and forks). https://api.github.com/repos/magnitudedev/magnitude (accessed 19 October 2026)
14. GIGAZINE, "Magnitude, an AI agent inference engine that automatically optimizes for hardware to accelerate open models by up to 2x...", 1 October 2026. https://gigazine.net/gsc_news/en/20261001-magnitude/
15. Niklas Lenz (@niklaslenz_ai), "Qwen3.6 35B-A3B on one DGX Spark: Magnitude copies text 2.17x faster than Ollama, but writes a new story at 0.79x Ollama's speed", X, 16 October 2026. https://x.com/niklaslenz_ai/status/2111204284453044383
16. Niklas Lenz, niklaslenz.com, "Local AI, measured at home". https://niklaslenz.com/ (accessed 19 October 2026)
17. Tom Greenwald (@tomgreenwald), replies on X, 15 October 2026: on tuning time https://x.com/tomgreenwald/status/2110794895120097472 ; on retuning https://x.com/tomgreenwald/status/2110728331930784054 ; on llama.cpp https://x.com/tomgreenwald/status/2110796784180335071 ; on vLLM and SGLang https://x.com/tomgreenwald/status/2110815941164421276 ; on the model catalog https://x.com/tomgreenwald/status/2110827076089765943 ; on Intel GPUs https://x.com/tomgreenwald/status/2110815129159757900 ; on DeepSeek https://x.com/tomgreenwald/status/2110788259928506562
18. Magnitude, "magnitudedev/browser-agent: Open-source, vision-first browser agent", GitHub. https://github.com/magnitudedev/browser-agent

