frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: HotPin – lossless 120B MoE inference on 24GB RAM (CPU, 50 loc)

3•LozzKappa•3h ago
I'm a mechatronics designer with a background in control systems, robotics, PCB design, and embedded hardware. I design physical systems: motors, sensors, microcontrollers, and real-time control loops.

I applied this design thinking to LLM memory management – and it worked.

HotPin is a set of patches for llama.cpp that runs 30B–120B Mixture of Experts (MoE) models on far less RAM than their disk footprint, with bit-identical (lossless) output.

Tested on an AMD Ryzen AI 9 HX 370 (Zen5, AVX512), 23.6GB LPDDR5X, NVMe >1GB/s, CPU-only.

Results: | Model | Disk | Min RAM | Savings | tok/s | |-------|------|---------|---------|-------| | gpt-oss:120b | 58.5GB | 19.1GB | -67% | 3.84 | | qwen3:30b-a3b | 18.0GB | 10.4GB | -42% | 19.7 | | gemma4:26b-a4b | 16.2GB | 10.6GB | -35% | 11.5 | | GLM-4.7-Flash | 19.0GB | 13.3GB | -30% | 12.4 |

Output is SHA-256 bit-identical to full-RAM runs. Verified.

How it works (~50 lines of C++ in llama.cpp): 1. Profile MoE expert routing frequencies. 2. mmap the entire model from disk. 3. mlock only the hottest experts into physical RAM. 4. posix_fadvise / prefetch cold experts from NVMe before they're needed.

Boundary condition: if Disk > RAM, pinning gives +45% speedup (gpt-oss: 2.64 → 3.84 tok/s). If model fits in RAM, pinning adds zero overhead.

Tested on: Linux native, WSL, Windows native (VirtualLock).

Repo: https://github.com/LozzKappa/hotpin-llm Paper (PDF + LaTeX) in the repo – arXiv submission pending endorsement in cs.LG.

I'm looking for: 1. An arXiv endorser (cs.LG) – if you're a researcher and this work interests you, please reach out. 2. Feedback from anyone who tests it on their hardware.

The technique is simple, lossless, and works today. Test it and tell me your benchmarks.

Thanks for reading.

I built a new PoW protocol and observed a surprisingly early solution

2•babakkarimib•21m ago•0 comments

Ask HN: What's expected from an engineering manager or director now?

3•agentwrangler•40m ago•1 comments

Ask HN: Which Jabber clients support SCRAM+ and XEP-0474

8•Bender•4h ago•0 comments

Ask HN: What livestream do you keep open in a tab?

27•missmoss•5h ago•8 comments

Ask HN: HotPin – lossless 120B MoE inference on 24GB RAM (CPU, 50 loc)

3•LozzKappa•3h ago•0 comments

Ask HN: What are some popular AI detection software that you know/have used?

2•dd-sharma•2h ago•1 comments

Timed YouTube video transcripts in .txt and .pdf

6•cristyg0101•6h ago•1 comments

Ask HN: How to get your open-source project gain popularity?

3•Hussain04•4h ago•11 comments

What happens behind the scenes when we change effort for same LLM models?

10•tbharath•7h ago•8 comments

Who's making money from using/exploiting AI?

9•jonthepirate•7h ago•1 comments

What is the status on continual learning for LLMs?

5•fred123123•3h ago•7 comments

Ask HN: What do you do when your AI agents are working?

4•mavsman•4h ago•1 comments

Ask HN: What happens when we do compress the context in Claude Code?

4•tbharath•6h ago•4 comments

Tell HN: A.I Labs are headed by people without world manufacturing experience

3•dzonga•6h ago•1 comments

The Cost of Seamlessness

3•taotuner•6h ago•1 comments

Will it be possible to do LLM Pool Training?

2•slicktux•6h ago•2 comments

Ask HN: Is neuromorphic computing going to replace traditional AI?

5•lennart-rth•12h ago•2 comments

Ask HN: Why are Meta products so bad?

4•asxndu•7h ago•3 comments

Has anyone figured out how to guard LLMs on kernel level?

3•isaacnsisong•11h ago•1 comments

Ask HN: What other professions are software programmers considering?

2•i_idiot•3h ago•1 comments

Tell HN: It's a Lot

7•mettamage•12h ago•2 comments

Postgress in Rust

4•poldex•15h ago•1 comments

The things that matter take a minute

4•ishener•6h ago•0 comments

Why My Open-Source Project Hasn't Done Better

4•yohji1984•9h ago•1 comments

Tell HN: Namecheap gave my account to an unverified third party

481•Thrashed•2d ago•174 comments

Ask HN: How would you harden AI changes to a 1M-line legacy SaaS before review?

4•thegreatkahuna•14h ago•12 comments

Ask HN: Do types make a language more expressive, or less?

3•greenlimetea•11h ago•1 comments

Ask HN: How's your experience with the Siri AI beta?

2•Austin_Conlon•4h ago•0 comments

My SaaS finally made a sale

4•aashir-saas•11h ago•2 comments

Companies are optimizing models for specific benchmarks

4•mzubairtahir•16h ago•0 comments