Why LLMs Live in Data Centres
P3.computing-fundamentals.03 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: GPUs & Parallel Computing
P3.computing-fundamentals.03 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: GPUs & Parallel Computing
You can use a powerful AI tool on your phone, but you cannot train one on your desktop. Why? The answer is arithmetic you can do yourself: a model's size in bytes, the memory a GPU has to spare, and the extra memory training demands on top of that. This module turns abstract "billions of parameters" into concrete gigabytes — then lets you compute the fit for yourself in two short exercises.
A language model is a pile of parameters (also called weights) — the numbers learned during training. Each is usually a 32-bit floating-point number taking 4 bytes. So the size is simply:
model size (bytes) = number of parameters × bytes per parameter
| Model | Parameters | Size (FP32) | Fits a consumer laptop? |
|---|---|---|---|
| BERT-base | 110 million | ~440 MB | Yes (16 GB) |
| GPT-2 large | 774 million | ~3 GB | Yes |
| Llama 3 8B | 8 billion | ~32 GB | Barely (32 GB, tight) |
| GPT-3 | 175 billion | ~700 GB | No (needs ~10 GPUs) |
| GPT-4 (est.) | >1 trillion | >4,000 GB | No (a data centre) |
Two short exercises turn the arithmetic of this module into code. The first sizes a model in gigabytes; the second decides whether a model fits a given GPU, for both inference and training. Both run in your browser — no setup, no data centre required.
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
Loading exercise…
Loading exercise…
Where the numbers behind model scale come from.
| Type | Resource |
|---|---|
| Video | 3Blue1Brown — How large language models work (YouTube) |
| Reference | Tim Dettmers — Which GPU(s) to Get for Deep Learning (timdettmers.com) |
| Reference | Epoch AI — Trends in AI (epochai.org) — compute, dataset size, and training cost over time |
Loading your notes...