Enjoying this issue?
Get tomorrow's AI & engineering digest in your inbox — hand-picked, summarized, and always spam-free.
TLDR
Colibri's approach to running GLM-5.2 on a laptop demonstrates that MoE models can be streamed from SSD with minimal RAM, but the speed penalty is severe: 0.05-0.1 tokens per second, or about a word every 13-27 seconds. The model's 744B parameters are mostly irrelevant to runtime memory, as only about 40B are used per token, and Colibri keeps just 17B of those in RAM by squeezing to 4 bits.
Key points
GLM-5.2 uses a Mixture of Experts architecture with 75 expert layers, each containing 256 experts, but only 8 experts plus one shared expert are activated per token.
Colibri stores the shared expert and common weights in RAM at 4-bit precision (9.9GB) and keeps the routed experts on SSD, reading them on demand.
The routing is 71.6% predictable one layer ahead, allowing Colibri to prefetch experts from disk before they are needed.
The measured inference speed is 0.05-0.1 tokens per second on a 25GB RAM laptop, limited by disk read speed rather than computation.
The model download is 429GB, but only about 40B parameters are used per token, and the RAM footprint is about 9.9GB.
Tools mentioned
Techniques
- Mixture of Experts
- 4-bit quantization
- SSD streaming
- routing prediction prefetching
Stop scrolling. Start reading smarter.
Receive the day's most important AI & engineering updates in one concise email. No spam.
Transcript (captions)
GLM 5.2 has 744 billion parameters and a laptop with 25 gigabytes of RAM runs it on the processor alone at one token every 1 to 2 seconds. The download is 429 gigabytes. That's about 17 times the
laptop's RAM by our math. So how does it run and why so slowly? Same answer both times, the disk follow one token. In GLM's official config, 75 of its 78 layers hold experts. Each one
has 256 experts, small blocks of weights and a router picks eight per layer plus one shared expert that always runs. So a token uses about 40 billion parameters, not 744.
8 * 75 is 600 expert blocks and the next token can call a different set. Colibri, the engine doing this, splits the model in two. The part every token uses, including that shared expert, stays in
RAM, squeezed to 4 bits per weight, about 17 billion parameters in 9.9 gigabytes by its builders count. The routed experts, around 370 gigabytes, wait on the SSD. Each token reads the
router's picks off the disk about 11 gigabytes less whatever's cached. Most of the model stays on disk. That's how it fits. While the experts already in memory compute, helper threads read the
missing ones. The README says GLM's routing is 71.6% predictable one layer ahead, which lets some read start early. The README's table has the cost, 0.05 to 0.1 tokens a second on that 25 gigabyte
laptop measured cold. A Hacker News commenter reported 0.07 on a 24 gigabyte laptop, both self-reported. The easy suspect is the processor
grinding through all that math. The README blames those expert reads instead. For large models, it says the disk sets the speed. Convert with OpenAI's rule of thumb for English,
about three-quarters of a word per token and that's a word every 13 to 27 seconds. A 100 word answer works to roughly 22 to 44 minutes, plenty of time to rethink the prompt.
If you want to watch a 744 billion parameter model think at home, this is real. If you need work done, Colab's setup checks your machine and recommends the most capable model that runs from
RAM. The disk is why this laptop can hold GLM and why it's this slow.