
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.
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. 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.
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
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.
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.
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 new benchmark shows GLM 5.2 processing 59 transactions and producing VAT returns off by only 7 pence - at $2.73 versus typical accounting fees of $1,000+. Here is what the benchmark actually tested, where the model failed, and why the HN discussion focused on liability.
7 min readMartin Alderson's argument for why open-weights models like GLM 5.2 will compress frontier lab margins is sparking debate on HN. Here is what the thesis actually says, where HN agrees and disagrees, and why it matters for developers choosing models.
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...

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...

The HashiCorp co-founder explains why he chose Zig over Rust for Ghostty, the technical challenges of terminal emulator...

Tencent's Hy3 ships 295B parameters but activates only 21B per token, matching flagship performance at flash-tier pricin...

A new benchmark shows GLM 5.2 processing 59 transactions and producing VAT returns off by only 7 pence - at $2.73 versus...

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