Running Models YourselfLesson 17 of 82

Module 2 · The memory arithmetic

Measuring what you actually have

In this lesson

  • 8 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 8 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 8Free · no account needed
Lesson steps

Published figures are not your figures

Every number in a review was measured on a different machine with a different build, a different driver, a different quant and a different context length. Your machine has its own answer and it takes ten minutes to get. Do this once, write the numbers down, and you will never again have to guess whether something is working properly.

The four measurements worth having

1. Prefill and decode, separately.

Bash
llama-bench -m ~/models/Qwen3-8B-Q4_K_M.gguf -p 512 -n 128 -ngl 99

This prints pp512 (prompt processing) and tg128 (token generation) with a standard deviation over several runs. Run it for each model and each quant you are considering; it is far more informative than any table you can read.

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) ‘Measuring what you actually have’, in Running Models Yourself. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/running-models-yourself/measuring-your-machine (Accessed: 29 November 2026).