01Chapter 1: What a parameter count tells youThis chapter assumes you know what a large language model is, can use a command line, know that RAM is working memory and disk is storage, and can do simple arithmetic with bytes, bits and GB.3 min read
02Chapter 2: Number formats: from FP32 to 4-bitThis chapter assumes you know what a model parameter is and can convert between bits, bytes and GB. It covers the number formats used to store those parameters, because the format sets the file size. The next chapters build on this.2 min read
03Chapter 3: What quantisation does to a modelThis chapter assumes you know that a model is a large set of numbers called parameters, and that each parameter takes some number of bits to store. It also assumes you are comfortable with bytes, bits, and GB. Number formats such as FP16 and 4-bit were covered in the previous chapter.2 min read
04Chapter 4: Reading GGUF files and names like Q4_K_MThis chapter assumes you know that a model's weights are stored as numbers, that quantisation stores those numbers with fewer bits, and that you can do arithmetic on bits, bytes and GB. Here you will learn what a GGUF file holds and how to read the quantisation label in its name.2 min read
05Chapter 5: Estimating the memory for weightsThis chapter assumes you know what a parameter count is, that quantisation stores each weight in fewer bits, and how bytes, bits and GB relate. Here you turn those facts into a number: how much memory the weights need.2 min read
06Chapter 6: The KV cache and why context length costs memoryThis chapter assumes you can estimate weight memory from parameter count and bits per weight, and that you know what a layer and an attention head are at a high level. It covers the second large memory cost of a local model: the KV cache.3 min read
07Chapter 7: VRAM, system RAM and unified memoryThis chapter assumes you can estimate weight memory from parameter count and bits per weight, and that you know what a KV cache is. Here you learn where those bytes can live and what that means for fitting a model.3 min read
08Chapter 8: Checking whether a model fitsThis chapter assumes you can estimate weight memory from parameter count and bits per weight, and that you know what the KV cache is. Here you combine those pieces into one check against the memory you have.2 min read
09Chapter 9: Why memory bandwidth mattersThis chapter assumes you can estimate weight memory from parameter count and bits per weight, and that you know the difference between VRAM, system RAM and unified memory. Here you will see why generating text is usually limited by how fast memory can be read, not by how fast the chip can calculate.3 min read
10Chapter 10: Prompt processing and token generation are different workloadsThis chapter assumes you know what a language model is, can run commands in a terminal, and have read the earlier chapters on weight memory, the KV cache, and memory bandwidth. It covers why one model shows two very different speeds.3 min read
11Chapter 11: Estimating a tokens-per-second ceilingThis chapter assumes you can estimate weight memory from parameter count and bits per weight, and that you know what memory bandwidth is. It also assumes you know that prompt processing and token generation are different workloads. Here you turn those ideas into a speed estimate you can compute befo2 min read
12Chapter 12: Splitting a model between GPU and CPUThis chapter assumes you can estimate weight and KV cache memory and know that token generation is limited by memory bandwidth. Here you will learn what happens when a model does not fit in VRAM, and how to pick a partial offload setting.2 min read
13Chapter 13: How much quality you give up when you quantiseThis chapter assumes you know that quantisation stores weights in fewer bits, and that you can read names like Q4KM. Here the question is what that costs in output quality.2 min read
14Chapter 14: Mixture-of-experts models: big in memory, lighter per tokenThis chapter assumes you can estimate weight memory from parameter count and bits per weight, and that you know token generation is usually limited by memory bandwidth. A mixture-of-experts (MoE) model changes how those two facts combine.3 min read
15Chapter 15: Measuring real speed with llama-benchThis chapter assumes you can run commands in a terminal, have a GGUF file on disk, and have read the earlier chapters on memory bandwidth, the tokens-per-second ceiling, and partial GPU offload. It also assumes you have built or installed llama.cpp, which includes the llama-bench tool.2 min read
16Chapter 16: Choosing hardware and a quantisation for your goalThis chapter assumes you know how to estimate weight memory from parameters and bits per weight, how the KV cache grows with context, and that token generation speed is capped by memory bandwidth divided by model size. Here you combine those pieces into a decision.2 min read