Skip to content
AgenticAIWiki

← Chapter 30. Local inference

Shrinking a model to run on a laptop

quantize8B model, 16-bit8B x 2 bytes = 16 GB16 GB8 GB4 GBGauges (illustrative)Weights (GB)16Laptop memory (GB)16Tokens/s0Memory for weights = parameters x bytes per parameter.

Swipe to change step

Step 1 of 8. An 8B model stores 8 billion weights. At 16-bit, each weight takes 2 bytes, so the weights alone need about 16 GB. That fills a 16 GB laptop with nothing left over. 8B model, 16-bit (8B x 2 bytes = 16 GB), highlighted. 16 GB. 8 GB. 4 GB. arrow from 8B model, 16-bit to 8-bit, labelled quantize.

Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.