Running LLMs on CPUs: advice, tricks and what Matricxon does

· 4 min read

A processor chip next to the title Running LLMs on CPUs

You do not need a graphics card to run a useful language model. A modern laptop or desktop CPU can chat, summarize and write code with a well-chosen model, privately and at no running cost. It just rewards a bit of understanding. Here is what we have learned building Matricxon, our CPU-first inference engine.

The one number that matters: memory bandwidth

When a model writes a reply, every new token means reading (nearly) all of the model’s weights from RAM once. The CPU’s arithmetic is rarely the limit; the memory bus is. A useful rule of thumb:

Tokens per second ≈ memory bandwidth ÷ model size in memory

A typical dual-channel DDR4 laptop moves around 40 GB/s, so a 4 GB model tops out near 10 tokens per second, and a 2 GB model near 20. Faster RAM, more memory channels and smaller models all help. Extra cores help much less than you would expect.

Reading your prompt is different: it is compute-bound, so long prompts and big documents take time on a CPU even when replies stream quickly. Keep that in mind when you paste a whole file into a chat.

Pick the right model

Tune the server

What Matricxon does for you

Matricxon is built around these limits, so most of this happens without any setup:

Quick checklist

  1. Choose a model that fits in RAM with room to spare, at Q4_K_M (Q5 or Q6 if small).
  2. Try a mixture-of-experts model if you have the RAM but want speed.
  3. Use your physical cores minus one or two.
  4. Keep chats going instead of starting over, so the prompt cache does its work.
  5. Measure: tokens per second tells you at once whether a change helped.

CPU inference will not beat a big GPU, but for private, everyday use it is often fast enough, and it runs on hardware you already own. To try it, start with the Matricxon quick start, or run it with pAIring for a full chat workspace.

← All posts