cd /news/large-language-models/hotpin-running-120b-moe-on-24gb-ram Β· home β€Ί topics β€Ί large-language-models β€Ί article
[ARTICLE Β· art-73857] src=promptcube3.com β†— pub= topic=large-language-models verified=true sentiment=↑ positive

HotPin: Running 120B MoE on 24GB RAM

A new llama.cpp patch called HotPin enables running a 120-billion-parameter mixture-of-experts (MoE) model on just 24GB of RAM, achieving up to 67% memory savings and a 45% speedup over standard swapping, with output that is SHA-256 bit-identical to a full-RAM run. The implementation, created by developer LozzKappa, profiles MoE expert routing frequencies and uses mmap with selective mlock and posix_fadvise prefetching, requiring only about 50 lines of C++ code.

read1 min views1 publishedJul 26, 2026
HotPin: Running 120B MoE on 24GB RAM
Image: Promptcube3 (auto-discovered)

I've been looking into the benchmarks for this llama.cpp patch, and the results on an AMD Ryzen AI 9 HX 370 (23.6GB LPDDR5X) are pretty revealing for anyone running LLM agents on consumer hardware:

gpt-oss:120b: Disk 58.5GB β†’ Min RAM 19.1GB (67% savings) at 3.84 tok/sqwen3:30b-a3b: Disk 18.0GB β†’ Min RAM 10.4GB (42% savings) at 19.7 tok/sgemma4:26b-a4b: Disk 16.2GB β†’ Min RAM 10.6GB (35% savings) at 11.5 tok/sGLM-4.7-Flash: Disk 19.0GB β†’ Min RAM 13.3GB (30% savings) at 12.4 tok/s

The most impressive part is that the output is SHA-256 bit-identical to a full-RAM run. This isn't a "compressed" version of the model; it's a lossless deployment.

The technical implementation is surprisingly lean (around 50 lines of C++). It works by profiling MoE expert routing frequencies, using mmap for the whole model, but only using mlock for the "hottest" experts. It then leverages posix_fadvise to prefetch cold experts from the NVMe just before they are needed.

For those of us obsessed with local deployment, this solves a massive pain point. If the model exceeds your RAM, you usually see a performance cliff. HotPin actually provides a 45% speedup in those scenarios (for gpt-oss, it jumped from 2.64 to 3.84 tok/s) compared to standard swapping.

If you want to dive into the implementation, the code is available here:

https://github.com/LozzKappa/hotpin-llm

Next Project Intelligence: Why Git Isn't Enough for AI β†’

── more in #large-language-models 4 stories Β· sorted by recency
── more on @llama.cpp 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/hotpin-running-120b-…] indexed:0 read:1min 2026-07-26 Β· β€”