Memory, not marketing. Learn how parameter count, quantisation and context length turn into real hardware needs.
5 lessonsRead in order or jump to one
About 20 minutesShort reads, one check each
Self-checkedAnswers are in the text
Lesson 1
Parameters, precision and memory
A parameter is a number in the model. At 16-bit precision each parameter takes two bytes, so a 7 billion parameter model needs about 14 GB just to hold the weights.
Quantisation stores each parameter in fewer bits. A 4-bit version of the same model needs roughly 4 GB, at some cost in quality.
8-bit is about one byte per parameter.
4-bit is about half a byte per parameter.
Add 10 to 25 per cent for context and runtime overhead.
Rules of thumb beat spec sheets for planning.
Check yourself. Estimate the weight memory for a 7B model at 4-bit.
Lesson 2
VRAM, RAM and what fits where
VRAM is the memory on the graphics card. A model that fits entirely in VRAM runs fast; one that spills into system RAM runs much slower.
System RAM matters when the model is larger than VRAM, because the CPU takes over part of the work.
Aim for the whole model plus context in VRAM.
Offloading to RAM is workable for occasional use.
Integrated graphics share system memory.
Leave headroom for the operating system.
Check yourself. What happens to speed when a model no longer fits in VRAM?
Lesson 3
Context windows and storage
The context window is the amount of text the model can consider at once. Larger windows need more memory, and the cost grows with the conversation length.
Model files are large. A quantised 8B model is a few gigabytes; a 70B model is tens of gigabytes. Keep disk space for several models and their updates.
Long documents consume context quickly.
Retrieval sends only relevant passages, not whole libraries.
Keep at least twice the model size free on disk.
Store models on fast local storage, not a network share.
Check yourself. Why does a long chat gradually slow down or fail?
Lesson 4
Speed, acceleration and power
Speed is measured in tokens per second. Reading is faster than writing, and short prompts are dominated by start-up overhead.
Acceleration depends on the vendor stack: CUDA for NVIDIA, ROCm for some AMD cards, Metal on Apple silicon, and CPU-only as the fallback.
Batch work tolerates slower models than live chat.
Electricity matters for always-on servers.
Laptops throttle under sustained load.
Measure with your own documents.
Check yourself. Which two workloads need different speed targets?
Lesson 5
Sizing for an organisation
Start from the workload, not the model. A single assistant serving ten people has different needs from a document pipeline processing thousands of files overnight.
Size for the busiest hour, then add headroom. One well chosen server often beats several undersized machines.
Count concurrent users, not total staff.
Estimate tokens per request and requests per hour.
Reserve capacity for indexing and batch jobs.
Plan a test with real documents before buying.
Check yourself. What two numbers should you measure before specifying hardware?