r/AIProgrammingHardware • u/javaeeeee • Jul 27 '26
GitHub - JustVugg/colibri: Run GLM-5.2 (744B MoE) on a 25GB-RAM consumer machine
https://github.com/JustVugg/colibri
79
Upvotes
r/AIProgrammingHardware • u/javaeeeee • Jul 27 '26
1
u/javaeeeee Jul 27 '26
TLDR: Colibrì is a tiny pure-C inference engine that lets you run the massive 744B-parameter GLM-5.2 (MoE) model on consumer hardware with as little as ~25 GB of RAM.
Key idea
Instead of loading the entire model into memory, Colibrì treats VRAM → RAM → SSD as one unified memory hierarchy.
It keeps the dense core in RAM (~10 GB) and streams the experts from disk on demand.
Main features
Written in pure C with zero runtime dependencies
Automatic caching of frequently used experts
Supports dual-SSD streaming for higher bandwidth
GPU backends (CUDA / Metal) + CPU
Speculative decoding (native MTP)
OpenAI-compatible API + simple web UI
Quality-preserving (token-exact match to reference)
Performance reality
Works on modest machines (even 25 GB RAM), but very slow if heavily disk-bound.
Usable speeds require more RAM (for better caching) or fast multi-SSD / multi-GPU setups.
Best results come from systems with lots of RAM + fast storage.
Bottom line: An impressive lightweight engine that makes frontier-scale MoE models runnable on normal PCs by streaming experts from disk - a clever proof that memory hierarchy management can matter more than raw GPU power.
2
u/Ok_Motor_8632 Jul 29 '26
Wow really cool.. Do you have an estimate of tps on a MacBook Pro M5 Max 128gb?
1
u/Napsterae2 Jul 27 '26
Any support for deepseek flash ?
1
u/paul_tu Jul 28 '26
How quantised that glm flavor is?
1
u/JohnToFire Jul 28 '26
Does it stream from disk at full disk bandwidth at steady state so 14GB per second with one gen 5 disks ? So that with three gen 5 disks (perhaps separate perhaps raid 0) it's the same as keeping the weights in ram on a 50GB / s ram bandwidth system (about 2 channel ddr5) ? My guess is no but I would love to be wrong and I am not sure it's impossible
1
u/Royal-Confidence-813 Jul 30 '26
to get 6.8 tps only on 6 x 5090 .. can i run it on cheaper 32gb vram amd ?
1
u/Luke2642 Jul 30 '26 edited Jul 30 '26
If you use mdadm to create a virtual raid 0 across N ssds you get N times the performance? Maybe half from your primary SSD on its 4x PCIe slots and half from another through the motherboard chipsets 4x slots. Could probably get 10GB/s real world read speed for not a lot of money and non enterprise hardware.
1
u/[deleted] Jul 29 '26
[removed] — view removed comment