Repository

arun-prasath2005/gemma4-cpu-moe

gemma4-cpu-moe

Running Gemma-4 26B at 124 tokens/sec on a CPU with no GPU. Recipe, byte budget, roofline.

6stars

Open github.com

arun-prasath2005/gemma4-cpu-moe

gemma4-cpu-moe

Reproducible recipe and code to run Gemma-4 26B mixture-of-experts model on a desktop CPU without GPU, achieving ~40 tok/s single-stream and ~124 tok/s batched.

Visit project

Show me a random project

First shared
Jun 30, 2026
HN activity
101

Show HN@arun-prasathJun 30, 2026

Show HN: Running Gemma-4 26B at 124 tokens/SEC on a CPU, no GPU

I wanted to know how fast a 26B mixture-of-experts model could run on a desktop CPU with no GPU. Got ~40 tok/s single-stream (lossless) and ~124 batched. The surprising part was the byte budget: for this model you compress the output head (32% of per-token bytes), not the experts (16%). The writeup has the bandwidth roofline and the dead-ends; the repo has the reproducible recipe. Happy to answer questions. Repo: https://github.com/arun-prasath2005/gemma4-cpu-moe

Community

Hacker News discussion

Loading the thread…