r/LocalLLM • u/Financial_Gas_9528 • Oct 13 '26
News GLM-5.3-Flash pruned to half the experts for coding: Q3 (71 GB) solves every task the full 341 GB model solves, IQ2_XXS fits 24 GB VRAM + 32 GB RAM
Weights: https://huggingface.co/lapadatbogdan/GLM-5.3-Flash-REAP144-Coder-GGUF
• Recipe and harness: https://github.com/lapadatbogdan/GLM-5.3-Flash-REAP144-Coder
I wanted a coder version from GLM 5.3-Flash. So, I pruned GLM-5.3-Flash (321B MoE) from 288 to 144 routed experts per layer, choosing the experts on agentic coding sessions instead of a generic corpus, then quantized it with an imatrix built on the same sessions.
Results. 26 Python SWE tasks from ansible, openlibrary and qutebrowser, 2 attempts each, clean room (no git history, no network, no gold patch reachable), 200 turns, 384K context. Success = the task's fail-to-pass tests pass. Every row is on the same 48 attempts.
Model |Size |Solved |Turns vs full
GLM-5.3-Flash full, Q8 |341 GB |48/48 |x1.00
REAP144 Q8 |171 GB |48/48 |x1.21
REAP144 Q4_K_M |97.6 GB |48/48 |x1.58
REAP144 Q3_K |71.4 GB |48/48 |x1.80
REAP144 IQ2_S |54.8 GB |45/48 |x1.83
REAP144 IQ2_XXS (experimental) |45.3 GB |39/48 |x2.77 "Turns vs full" is the extra work relative to the full model on tasks both solved, so it is roughly the extra time you wait.
Hardware. IQ2_XXS on an RX 7900 XTX (24 GB) + 32 GB DDR4-2133, i7-7700K, PCIe 3.0: ~16 tok/s generation, ~950 tok/s prompt processing. IQ2_S wants 24 + 48 GB, Q3_K 24 + 64 GB, Q4_K_M 24 + 96 GB or 128 GB unified memory.
What mattered
- Which experts you keep matters more than how many. Same 144 experts, but a frequency mask needed x2.21 turns and the public multi-domain REAP 50% mask x2.29, against x1.21 for the code-scored mask.
- Short questions do not catch a broken agent. A 2 bit variant of a generic prune answered 4/4 short coding questions and solved 0/4 agentic tasks. We only trust multi-turn task runs.
- Our first eval harness let the model reach the internet, and it sometimes downloaded the upstream fix. We sealed it (no network, no home), rechecked every success against the gold patch and reran the affected attempts. The table above is the sealed rerun.
The 2 bit version is experimental. IQ2_XXS is the only one that fits 24 + 32 GB and it solves most tasks, but when it fails it never edits: it loops or keeps exploring until the turn limit. An anti-loop guard in the agent did not help (27/37 vs 30/37 on the same attempts). We are training it on short successful sessions now and will post an update.
The GitHub repo has the full recipe (scoring, masks, pruning, quant scripts, two llama.cpp patches, the eval harness) and a table of everything that did not work: 120 and 96 experts, frequency mask, RCO search, LoRA healing, GSQ, anti-loop.
- Weights: https://huggingface.co/lapadatbogdan/GLM-5.3-Flash-REAP144-Coder-GGUF
- Recipe and harness: https://github.com/lapadatbogdan/GLM-5.3-Flash-REAP144-Coder
This is a text only version (no vision). Python repos only so far; if you run it on other languages or harnesses, I would like to hear how it does.
Update (Oct 14): added an optional MTP draft block (2.6 GB) for 2+ GPUs with Maya: speculative decoding, drafts match the model's next token ~70% of the time. Speedup not measured on multi-GPU yet, numbers welcome. Details on the model card.
24
u/GfurEnjoyer1488 Oct 13 '26
Could we do a reverse coder version? Like "talker" with coding capabilities pruned? I do presume retaining general knowledge would probably require keeping a higher size.
8
u/FeydRowan Oct 13 '26
Really interesting, ho it compare to flash next? Did it works in agentic coding? Did you test it in agentic benchmarks ?
5
u/dmter Oct 13 '26
With that size is it better than qwen 3.8 fn? also what t/s comparing to full model? I can run q3xs at about 8-4 t/s so if that can be doubled it could compare to fn.
3
u/Financial_Gas_9528 Oct 13 '26
Links for anyone scrolling:
Weights (GGUF): https://huggingface.co/lapadatbogdan/GLM-5.3-Flash-REAP144-Coder-GGUF
Recipe, masks and eval harness: https://github.com/lapadatbogdan/GLM-5.3-Flash-REAP144-Coder
Thanks for all the questions! If you run it, I'd love your tok/s and hardware so I can add them to the README. A RFT-trained 2 bit version is in the works.
4
u/Juan_Phoenix7 Oct 13 '26
How does this compare to Qwen 3.8 27b? (We already know that, at the moment, it's the gold standard along with Qwen Next.)
3
u/politefella0 Oct 14 '26
What context length for a 24gb gpu and 32gb ram?
2
u/soyalemujica Oct 13 '26
Any ideas how to make it work with Strata?
2
u/Eyelbee Oct 13 '26
I ran the non-pruned iq3 xxs and it was worse than qwen flash significantly
2
u/derdigga Oct 13 '26
waiting so i can run it like strata on 16gb vram + 64gb ram with a solid tokens/s
2
u/Joaquito_99 Oct 14 '26
So if I upgrade to a 24gb vram GPU and do 32gb of ddr4 it will be fine? Or ddr4 is too old?
1
u/Sufficient_Spite_349 Oct 13 '26
Would like to understand the reasoning and work quality and to match the Q8 quality did you take any actions at harness level?
1
u/mechkbfan Oct 13 '26
How many hours did it take to run the process of cutting it down?
1
u/Special-Lawyer-7253 Oct 13 '26
Guay, avisa cuando quepa en 8GB
1
u/NorthEastCalifornia Oct 14 '26
Can you share the calibration dataset or it in recipes? Did you do any healing after REAP?
1
u/OutsideCycle8331 Oct 14 '26
hmm i would be interested in : how long did it take in hours? i am currently struggling with letting ai do stuff because i think that i dont want to wait that long :P
1
u/rustnewb75 Oct 14 '26
Is this fine tuned for Python? Or good for others such as Rust?
1
u/rapsoulish Oct 13 '26
how fast would the reap 144 q3_K be with a 3 5090?
1
u/chris_sasaurus Oct 16 '26
Glm loboto sans. Neat!
-2
u/LooseBackHole Oct 13 '26
What is with these Q2 brags, no one wants Q2