All articles

Can a Small Model Run on a CPU-Only Kubernetes Node?

Why the active parameters matter more than the file size, and the one benchmark I would run first.

Left-to-right diagram: a CPU worker node and its memory bandwidth feed two Gemma 4 model choices, which run in a Guaranteed Kubernetes Pod with a probe delay, then are measured with llama-bench against a 30 tokens per second target.
Look at the dashed Model zone: active parameters, not file size, set how many bytes each token reads. The benchmark nodes are planned, not measured.

Lately I have been planning a small lab for a model that runs without a GPU. The cluster has three nodes: one control plane and two workers. Each worker has 10 cores, 20 GB of memory and 500 GB of disk. There is no GPU in the plan, and the goal I wrote down was about 30 tokens per second for one user.

So, the first question was simple. Which model can even live in 20 GB and still answer at a speed a person can read? Simply put, on a CPU the speed follows memory, not the number of cores.

Why is a CPU slow at this?

A CPU generates text by reading the model weights from memory again and again. For every new token, it has to touch the parameters that are active for that token. So the speed is roughly the memory bandwidth you can really use, divided by the bytes touched per token.

A server with DDR4 memory gives about 40 to 80 GB/s in my notes. That is the ceiling. Faster cores help the first part of the answer, where the model reads your prompt, because that part is compute-bound and slow on CPU. The part you wait for, the typing, is limited by memory.

Think of a librarian who must walk to the shelf for every word. A faster walker helps. A smaller shelf helps more.

This is why a big file is not always a slow model. A mixture-of-experts model keeps many parameters in memory, but it only uses a few of them for each token. Ornith 1.5 35B-A3B is an example from my article on three local models. The name says 35B in total and 3B active, so each token touches far less than the file size suggests.

Which model fits in 20 GB?

In my planning notes, I split the Gemma 4 family into four groups. The figures are estimates from those notes and my own reading, not results from my cluster, and they are as of November 2026.

Model Size at Q4 Expected speed on CPU My view
Gemma 4 E4B about 4 to 5 GB 15 to 25 tok/s, 30+ with a draft model The safe pick
Gemma 4 26B-A4B (about 3.8B active) about 15 to 16 GB to measure Borderline in 20 GB
Gemma 4 12B dense to check about 3 times slower than A4B Slow for its quality
Gemma 4 31B too big under 1 to 2 tok/s Not for this node

The 26B-A4B is the interesting one. It has 25.2B parameters in total, but only about 3.8B are active. So, in theory, it should read about as many bytes per token as a small dense model while giving better answers. However, it takes 15 to 16 GB of a 20 GB node. After the operating system, Kubernetes and the context cache, there is not much room left. In my case, I would start with E4B and treat the 26B-A4B as the next test.

There is a note to take about speed. One stream already uses most of the memory bus. So, on a node like this, plan for two or three interactive users at the same time, not twenty.

What do I set in Kubernetes?

The engine I chose is llama.cpp, using its server mode behind a gateway. I keep the Kubernetes part as plain YAML for now. An operator such as LLMKube (v0.9.x, v1alpha1) looks worth a trial in a UAT cluster, and KServe feels like too much for a three-node edge setup. This is my view for a small lab, and your case may be different.

Two settings matter more than the rest.

First, the probes. My runbook draft assumes a cold model load of more than two minutes, and I have not timed it yet. A failing readiness probe only keeps the Pod out of service, but a liveness probe will restart it, and then it loads again, and again. So, the plan raises initialDelaySeconds on the readiness probe and makes the liveness side wait as long. You should measure your own load time on your own disk before you pick a number.

Second, the QoS class. Set the memory and CPU requests equal to the limits so the Pod gets the Guaranteed class. When the node is under pressure, Kubernetes evicts Guaranteed Pods last. A model that is killed while it holds 15 GB of memory is a bad day for whoever is on call.

My notes also say a small draft model can speed up decoding, and that Google describes its drafters as up to 3 times faster with the same output quality. The notes say llama.cpp supports it natively in recent builds. Check the llama.cpp release notes before you rely on it.

How do I test it before I trust it?

I have not run this lab yet, so I will not give you numbers. This is the test I plan to run, and the cells are empty on purpose.

Test What it tells me E4B 26B-A4B
llama-bench, pp512 Prompt reading speed lab result needed lab result needed
llama-bench, tg128 Typing speed, one stream lab result needed lab result needed
tg128 with 2 and 3 streams Speed per user lab result needed lab result needed
Cold load time Probe delay lab result needed lab result needed

If tg128 for E4B comes close to the 15 to 25 tok/s estimate, the memory bandwidth story holds on my hardware. If it does not, I will learn something too, probably about the node.

One thing to try this week

Take the model you are thinking about and write down two numbers: the file size, and the active parameters per token. Then divide your real memory bandwidth by the bytes per token and compare the answer with your target. It takes ten minutes, and it can save you from downloading a 20 GB file that will never reach your goal. If you have a Linux node, run llama-bench on the smallest model first.

Next, I want to look at a different risk: What I’d Check Before Letting an AI Assistant Search Company Documents. If you want to start from how I think about sizing, read my earlier article, Will the Model Fit? What I’d Test Before Sharing a DGX Spark.