Running Models YourselfLesson 14 of 82

Module 2 · The memory arithmetic

Where the model physically lives

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 5 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
Where a 4.9 GB model sits decides how fast it runsLaptop system RAM, about30 GB/s6Base Apple Silicon, about100 GB/s2028 of 32 layers on amid-range card25All 32 layers on that samecard60A card with 900 GB/s180tokens per second, one streamThe third row and the fourth are the same graphics card. Moving four layers of thirty-two onto the CPUcosts fifty-eight per cent of the speed, because every token has to pass through all of them, which iswhy a smaller quant that fits entirely beats a better one that does not.
The third row and the fourth are the same graphics card. Moving four layers of thirty-two onto the CPU costs fifty-eight per cent of the speed, because every token has to pass through all of them, which is why a smaller quant that fits entirely beats a better one that does not.

Figure

A little at a time

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

Step 1 of 8Free · no account needed
Lesson steps

Four places, four speeds

The weights are bytes that have to reach the processor. Where they sit decides everything about speed, and the numbers span three orders of magnitude.

  • GPU memory (VRAM). Roughly 300 GB/s on an older mid-range card, 900 to 1,000 on a current 24 GB consumer card, 2,000 to 3,000 on datacentre parts with high-bandwidth memory.
  • Unified memory on Apple Silicon. One pool shared by CPU and GPU. Roughly 68 to 120 GB/s on base chips, 200 to 275 on Pro, 400 to 550 on Max, around 800 on Ultra.
  • System RAM. Dual-channel DDR4-3200 is 51.2 GB/s theoretical, about 30 usable. Dual-channel DDR5-5600 is 89.6 theoretical, about 55 usable.
  • NVMe SSD. 3 to 7 GB/s sequential. An order of magnitude below system RAM and two below a GPU.

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) ‘Where the model physically lives’, in Running Models Yourself. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/running-models-yourself/where-the-model-lives (Accessed: 29 November 2026).