logoalt Hacker News

Show HN: Getting GLM 5.2 running on my slow computer

819 pointsby vfornoyesterday at 8:05 AM201 commentsview on HN

A few days ago I found myself trying out GLM 5.2 and was really positively impressed. The capabilities and security I was getting from this LLM are similar to those I've gotten from models like Claude or GPT, and this really surprised me.

But then I thought, "I wonder how it would work on a normal computer like mine," and above all, "I wonder if it would work without going into OOM on a computer like mine." So I started working with the help of agents to test this possibility.

I started converting the model to int4, understanding MTP usage, and if possible implementing DSA for long context. How it responds in int4 and whether the quality is maintained or not. Until I got to the point, on my computer with 32GB of RAM, I was able to communicate with GLM 5.2 with times that, of course, aren't high in cold start, but even then, we're talking about 0.1 tok/s, but that wasn't important to me. The important thing was the journey to reach this goal. I just wanted it to work at all costs, even slowly.

So I created Colibrì, which was born from a very simple idea, to be honest, but tested in every way, where a 744B Mixture-of-Experts model activates only ~40B parameters per token—and only ~11 GB of those change from token to token (the routed experts). So:

The dense part (attention, shared experts, embeddings—~17B params) stays resident in RAM at int4 (~9.9 GB); The 21,504 routed experts (75 MoE layers × 256 experts + the MTP head, ~19 MB each at int4) live on disk (~370 GB) and are streamed on demand, with a per-layer LRU cache, an optional pinned hot-store, and the OS page cache as a free L2.

The engine is a single C file (c/glm.c, ~1,300 lines) plus small headers. No BLAS, no Python at runtime, no GPU.No GPU or serious hardware because I don't have that hardware so I can't test it on hardware that is more powerful than my computer.Colibrì is a one-person project, written and tested entirely on a 12-core laptop with 25 GB of RAM — the numbers above are the ceiling of what I can measure at home.

Any feedback is welcome! (and if anyone wanted to participate in the project I would be delighted)

Repo: https://github.com/JustVugg/colibri


Comments

doodlesarefuntoday at 11:11 AM

is this bad for my SSD?

bobkbtoday at 12:02 PM

Would love to collaborate

zftnb666today at 12:45 PM

"Slow computer" + running a 200B model = "I'll just wait a week."

show 1 reply
RahulRajellitoday at 9:43 AM

Glm 5.2 on lobehub , i was able to finish a complete the project very quickly

stavrosyesterday at 9:58 PM

This is great, well done! I love seeing people run things where they weren't meant to be run.

jdw64today at 8:23 AM

Coool!!!

khimarosyesterday at 10:42 PM

related and possibly more general purpose https://github.com/t8/hypura

show 1 reply
smetanniktoday at 12:42 AM

> slow computer > 25 GB of RAM

What?

show 1 reply
nicogentiletoday at 11:38 AM

[flagged]

abhiram304today at 5:01 AM

[flagged]

joka88xjtoday at 4:19 AM

[flagged]

cyberelf77today at 10:34 AM

[flagged]

VaporJournalAPPyesterday at 11:07 PM

[flagged]

kownsetoday at 6:54 AM

[flagged]

gokulrajaramtoday at 12:55 AM

[flagged]

redfatheryesterday at 11:42 PM

[flagged]

rahulb0802today at 1:28 AM

[dead]

threeroutertoday at 4:42 AM

[dead]

cereblabtoday at 9:14 AM

[flagged]

Purposefathertoday at 8:54 AM

[dead]

ankit100today at 4:43 AM

[flagged]

ankit100today at 4:44 AM

[dead]