180B Model Runs on a 64GB Laptop: Magnitude Keeps Idle Experts on SSD
Magnitude uses SSD streaming to read MoE experts, fitting a 180B model into a 64GB-memory Mac, with measured 56 tokens/s. It profiles hardware first and then recommends models, supporting Apple Silicon, NVIDIA, AMD, Intel, and pure CPU. Speed still depends on memory bandwidth, SSD, and context; the same model varies greatly across machines.
Running large models locally has always had one hard rule: if the weights don't fit in GPU VRAM or unified memory, the model won't run. A 180B-class open-source model therefore usually implies a $10,000 to $20,000 workstation. The demo released by Akshay Pachaar breaks this limit: a 64GB M4 Max runs Qwen 3.8 Flash Next 180B, 2-bit quantized, 64k context, at 56 tokens/s in OpenCode.
What makes it possible is that today's open-source large models are mostly sparse MoE. Qwen 3.8 Flash Next has 180B parameters, but each token activates only about 6B, selecting 10 of 512 experts per token. About 97% of parameters are idle for a single token. Older local inference engines still stuff all weights into VRAM; Magnitude switches to SSD expert streaming: attention layers and the experts most frequently reused by the session stay in GPU or unified memory, while the rest go on NVMe SSD and are read when the router selects them. Streaming reads are read-only and do not cause flash wear. More RAM or VRAM is still useful because it can cache more hot experts.
But naive SSD streaming gives only a few tokens per second, for four reasons: caching evicts experts that will be needed soon; layer-by-layer disk reads make GPU and SSD wait on each other; speculative decoding verifies multiple tokens at once, touching more experts per step; and long prompts flush the cache that decoding depends on. Magnitude does four corresponding things: rank experts by reuse rate, keeping hot experts on GPU; peek at upcoming tokens to prefetch experts in advance; schedule reads across layers directly from NVMe, bypassing OS swap; and during prefill, while the GPU computes, read cold experts only once per layer, avoiding long prompts clearing the hot cache.
Measured data falls into two categories. Akshay's demo is M4 Max 64GB, Qwen 3.8 Flash Next 180B, Q2 quantization, 64k context, OpenCode, 56 tokens/s. Magnitude's official benchmark with 64k context and speculative decoding enabled gives:
- Mac mini M2 Pro 32GB: decode 13 tok/s, prefill 241 tok/s
- Mac mini M5 Pro 48GB: decode 54 tok/s, prefill 883 tok/s
- RTX 3060 12GB plus 32GB system memory, PCIe 3.0 SSD: decode 17 tok/s, prefill 433 tok/s
- RTX 3090 24GB plus 64GB system memory, PCIe 4.0 SSD: decode 41 tok/s, prefill 1546 tok/s
- DGX Spark 128GB: decode 83 tok/s, prefill 1185 tok/s
- RTX 5090 32GB plus 64GB system memory, PCIe 5.0 SSD: decode 87 tok/s, prefill 3718 tok/s
These numbers cannot be applied directly to every machine. SSD, memory bandwidth, cooling, and background load all change the result. Some commenters noted that an RTX 3060 12GB plus 32GB memory runs at 17 tok/s, which is a gaming PC many gamers already own.
Magnitude also addresses another pain point: choosing models and configuration. Akshay writes in the long post that getting a model to run is already solved; what to run is not. The search space has four axes: model, compression level, runtime tuning, and context length. Quantization at the same bit depth causes different quality loss; for example, Gemma 4 E2B is quantization-aware training, so 4-bit retains most accuracy; Liquid LFM2.5 2.6B is post-training compression, and the same 4-bit gives up more. Agent work has high requirements for the structural precision of tool calls, so quantization loss is more sensitive than in chat.
On first launch, Magnitude profiles the hardware: reads chip and memory, measures bandwidth, runs a short inference test, and predicts tokens/s before downloading large files. It returns a complete configuration including model, quantization, context, and expected speed range, divided into balanced, smartest, and fastest. It also automatically tunes kernels, configures speculative decoding and concurrency, connects to Pi, OpenCode, Hermes, OpenClaw, Codex, Claude Code, Oh My Pi, and Cline, with others going through an OpenAI-compatible API. Install command:
npm install -g @magnitudedev/cli && magnitude setup
Supports Apple Silicon, NVIDIA, AMD, Intel, or pure CPU, desktop app, CLI, and Docker. Apache 2.0, runs locally, no token fees, no API key. The repo is at github.com/magnitudedev/magnitude, and the benchmark page is at magnitude.dev/benchmarks.
Limitations should also be stated clearly. The official FAQ says VRAM must at least hold the model's active experts; more experts cached in VRAM or RAM makes it faster; faster NVMe accelerates the part that spills to disk. Long agent sessions also consume context and KV memory, and setting concurrency too high shrinks the working context, manifesting as the agent quietly forgetting things with no error in the logs. Magnitude automates the configuration-choice step, reducing the download-20GB-and-try-again loop. The real change is that the bottleneck of local inference moves from VRAM capacity to SSD speed and memory bandwidth. For people who already have a gaming PC or a Mac, this is more realistic than buying a high-end GPU.
Akshay Pachaar's tweet and long post present this workflow, and Magnitude's GitHub repo and benchmark page provide the hardware data. The video comes from his tweet.
发布时间: 2026-11-25 21:27