Running Models YourselfLesson 15 of 82

Module 2 · The memory arithmetic

CPU inference, honestly

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 6 of 9 in this chapter

This chapter’s goalCompute, for any model and any context length, whether it fits on a stated machine and roughly how fast it will run: naming which of weights, KV cache, bandwidth or interconnect is the binding constraint, and choosing the remedy that costs the least quality when it does not fit.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

The component that matters is not the one on the box

For generation, a CPU’s core count is nearly irrelevant and its memory configuration is everything. Decode reads the whole model per token, so the ceiling is memory bandwidth, and bandwidth on a CPU is set by memory channels and memory speed, not by cores.

The arithmetic for channels:

Text
GB/s = channels x transfers_per_second x 8 bytes

So dual-channel DDR4-3200 gives 2 x 3.2 x 8 = 51.2 GB/s theoretical, roughly 30 usable. Dual-channel DDR5-5600 gives 89.6, roughly 55 usable. Those two numbers describe almost every laptop and desktop, and they set a hard ceiling of about 6 and 11 tokens per second respectively on a 4.9 GB model.

This is why a sixteen-core desktop and an eight-core laptop with the same memory generate at nearly the same speed, to the great confusion of people who bought the sixteen cores for this.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Open Model Ecosystem exam.

Stuck on something?Ask Tri, your AI tutor

How to cite: Addaly (2026) ‘CPU inference, honestly’, in Running Models Yourself. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/running-models-yourself/cpu-inference-honestly (Accessed: 29 November 2026).