
TL;DR
A solo developer built a 1,300-line C inference engine that runs the 744B GLM 5.2 model on consumer hardware by streaming routed experts from disk. Here's how it works.
A developer with a 12-core laptop and 32GB of RAM got GLM 5.2 running locally. Not a quantized 7B parameter model - the full 744B Mixture-of-Experts flagship. The project, Colibri, hit the Hacker News front page with 730+ points and 180 comments. The HN thread reflects equal parts admiration for the hacker spirit and practical questions about when this approach makes sense.
If disk streaming sounds too slow for daily use, the more common path to running GLM 5.2 locally is quantization with Unsloth, which trades some accuracy for speed instead of trading speed for full precision.
GLM 5.2's MoE architecture activates only ~40B parameters per token out of its 744B total. Of those, only ~11GB changes from token to token (the routed experts). The rest - attention layers, shared experts, embeddings (~17B parameters) - stays constant.
Colibri exploits this by:
The engine is a single C file - c/glm.c at ~1,300 lines. No BLAS, no Python at runtime, no GPU required.
The author is upfront: this is slow. Initial reports mention 0.1 tokens per second. But that was never the point. From the HN submission:
"The important thing was the journey to reach this goal. I just wanted it to work at all costs, even slowly."
Community benchmarks show better results on faster hardware. Users with NVMe drives and more RAM report usable speeds, though still far below cloud API performance.
The hacker spirit resonates:
The top comment simply states: "This is the hacker spirit." The author replied: "Thank you so much, it's true! It all started with this spirit!"
This energy pervades the thread. Multiple commenters compared Colibri to antirez's ds4 project (the creator of Redis working on a similar disk-streaming approach for GLM 5.2). The author confirmed inspiration: "Antirez is the number one!"
SSD wear concerns:
Several asked about disk lifespan. The README addresses this directly with an SSD wear warning. The author clarified that heavy writes are limited to the KV cache, while expert reads dominate. Architectures with unified memory (like Apple Silicon) can keep the KV cache in RAM entirely.
Practical alternatives:
A pragmatic commenter noted: "For most projects the more practical solution is to use clouds offering GLM 5.2 for free. 1 token per minute is minuscule compared to their rate limits for free usage."
This is true. For production use, cloud APIs are faster and cheaper - see our roundup of free and cheap ways to access GLM 5.2 if that's the goal. But that misses what Colibri demonstrates: that the architectural constraints of MoE models enable approaches previously thought impossible.
Agent integration:
Users asked whether Colibri can plug into coding agents like Claude Code or Pi. The author confirmed work is underway: "We're working on it right now with a pull request that will also arrive for opencode!"
This would enable fully local agentic workflows, though at reduced speed.
Hardware pricing concerns:
A subthread lamented current RAM and SSD prices. One commenter's shopping cart went "from $399 to $475" for basic DDR5. Another observed that affordable local inference is getting harder as hardware costs rise. Yet others pointed out that used or budget hardware can hit the necessary specs for under $600.
From the archive
Jul 10, 2026 • 5 min read
Jul 10, 2026 • 5 min read
Jul 10, 2026 • 7 min read
Jul 10, 2026 • 7 min read
The architecture breaks down like this:
| Component | Size (int4) | Location |
|---|---|---|
| Dense part (attention, shared experts, embeddings) | ~9.9GB | RAM (resident) |
| Routed experts (21,504 total) | ~370GB | Disk (streamed) |
| Per-expert size | ~19MB | - |
The 21,504 routed experts come from 75 MoE layers with 256 experts each, plus the MTP head. At runtime, only a small subset is active per token, and the LRU cache keeps hot experts in memory.
No external dependencies means the project compiles anywhere with a C compiler. The tradeoff is reimplementing functionality that libraries would provide, but for a research/hobby project, the simplicity has value.
Colibri isn't the only project exploring disk-based inference:
The common thread is exploiting MoE sparsity. When only ~5% of parameters are active per token, you don't need the entire model in fast memory. For the economics behind why sparsity matters so much for open-weight models, see GLM 5.2's cost math versus other open-weight coding models.
Colibri fills a specific niche:
It does not make sense for:
The author is clear-eyed about this: "I don't have that hardware so I can't test it on hardware that is more powerful than my computer."
The project is actively developed. The author is working on:
For developers interested in low-level LLM inference, Colibri offers a readable codebase. At 1,300 lines of C, you can understand the entire system in an afternoon. That's rare for ML inference code.
The project embodies a principle that resonates with HN's audience: software doesn't have to be practical to be valuable. Sometimes you build something just to prove it can be done.
Yes, with Colibri. The engine keeps the ~9.9GB dense part of the model resident in RAM and streams the routed experts from disk on demand, so it runs on a CPU-only 32GB machine. The tradeoff is speed - initial reports show around 0.1 tokens per second, far below what a GPU or cloud API delivers.
About 370GB at int4 quantization for the routed experts, plus the ~9.9GB dense part that stays in RAM. The routed experts are split across 21,504 individual expert files (~19MB each) so only the ones needed for a given token get read.
Not yet. At the speeds Colibri and similar projects (like antirez's ds4) currently achieve, interactive coding assistance is impractical. It fills a different niche: offline experimentation, learning how MoE inference works, and proving that consumer hardware can technically run frontier-scale models. For actual coding work, free and cheap cloud access to GLM 5.2 or a quantized local deployment are the practical options, and our best local models hub covers the smaller models that run well on a laptop today.
The project's README addresses this directly - heavy disk writes are limited to the KV cache, while the bulk of I/O is expert reads, which wear SSDs far less than writes. Machines with unified memory (like Apple Silicon) can keep the KV cache in RAM entirely, avoiding the write concern altogether.
Read next
Unsloth's dynamic quantization makes GLM-5.2 runnable on a 256GB Mac or a 24GB GPU with CPU offloading. Here is the hardware math, the quantization tradeoffs, and what the HN community learned from actually running it.
7 min readA developer got Google's Gemma 4 26B running on 2013 Xeon hardware for under $300. The fix for a silent MoE bug is now upstream - here's what it means for local inference.
6 min readA solo developer built a complete JavaScript ecosystem from scratch - runtime, engine, package manager, and Electron alternative. Here's what HN thinks.
7 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Desktop app for discovering, downloading, and running local LLMs. Clean chat UI, OpenAI-compatible API server, and autom...
View ToolOpen-source autonomous coding agent inside VS Code. Creates files, runs commands, and can use a browser for UI testing a...
View ToolConstrained generation library for LLMs. Uses finite state machines to mask invalid tokens during generation. Guarantees...
View ToolThe easiest way to run LLMs locally. One command to pull and run any model. OpenAI-compatible API. 52M+ monthly download...
View ToolInstall the dd CLI and scaffold your first AI-powered app in under a minute.
Getting StartedReal-time prompt loop with history, completions, and multiline input.
Claude CodeA complete, citation-backed Claude Code course with setup, prompting systems, MCP, CI, security, cost controls, and capstone workflows.
ai-development
Try Chat2DB for free: https://bit.ly/4hEyHq4 #AI #SQL #DataScience #opensource Chat2DB AI: Latest Features Unveiled Hey everyone! In this video, I'll walk you through the latest updates...

In this video, I'm taking a quick look at Lepton Search, an open source project Built in TypeScript/Javascript and Python . It's a interesting tool that lets users fork and build their own...

#LLAMA-2 #Meta #AI In this video I show you LLAMA 2, Meta AI's newest open source model that can be used for commercial use (so long as you have less than 700 million active users). In this...

Mozilla's inaugural report reveals open models now match closed AI on capability, but only 51% reach production. The har...

A developer got Google's Gemma 4 26B running on 2013 Xeon hardware for under $300. The fix for a silent MoE bug is now u...

A new American open-weights frontier model with multimodal capabilities, 1M token context, and competitive benchmarks. H...

An 82M parameter text-to-speech model that runs on CPU and produces high-quality speech across multiple languages - no c...

Unsloth's dynamic quantization makes GLM-5.2 runnable on a 256GB Mac or a 24GB GPU with CPU offloading. Here is the hard...

Switzerland's fully open foundation model promises transparent training data and EU compliance. The HN crowd has questio...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.