This document answers three connected questions about a large AI model running in a datacentre:
All of it comes from my own background knowledge, not from the transcript or a web search.
A trained model is one set of numbers, called its weights. They are saved as a single checkpoint, though for a large model that checkpoint is split across many files. What runs in the datacentre is copies of those weights loaded into the memory of GPUs. A running copy is called a replica or an instance.
How the copies are used differs completely between training and inference.
Training runs one model, but not on one machine.
Nobody holds a central set of weights that the others report to. Every replica holds its own full copy, and the copies stay identical by design:
Conflicts happen when several writers change the same data independently. Here nobody writes independently. Each replica only produces a suggestion, and the suggestions are averaged before anyone changes anything. The averaged gradient is also what one very large batch of data would have produced, so N replicas on different data behave like one model training on N times as much data per step.
| Problem | What happens | How it is handled |
|---|---|---|
| Waiting for the slowest | A step doesn't finish until every replica reports, so one slow GPU or jammed link delays everyone | This is why the network matters so much (see the earlier documents) |
| Failures | Across thousands of chips, something breaks regularly | The job restarts from the last saved checkpoint, so checkpoints are written often |
| Tiny drift | Computer arithmetic isn't perfectly repeatable, so copies can differ in the last decimal places | Usually harmless, with checks to catch anything larger |
| Memory limits | A full copy plus its training state may not fit on one GPU | FSDP (Fully Sharded Data Parallel), related to ZeRO (Zero Redundancy Optimizer), keeps only a slice of the weights on each GPU and fetches the rest when needed. It still has no master, only more network traffic |
Older designs used a parameter server, a central machine holding the weights, with workers sending it updates without waiting for each other. That does create conflicts, because updates arrive based on weights that have already moved on. Large language model training mostly avoids it in favour of the synchronous averaging above.
Once the model is finished, the same weights run as many separate instances.
Continuing to train a model on new data is possible and routine. It is called continued pre-training or fine-tuning. The problems are practical.
The replicas serving users hold frozen weights. Training also needs the gradients and the optimiser's bookkeeping alongside the weights. A common rule of thumb is about 16 bytes per parameter for training against about 2 for serving, roughly eight times the memory. So training runs on a separate cluster, and the result is a new version of the model, not a live edit of the old one. Every serving replica then has to be reloaded with the new weights.
If the goal is for the model to know a new paper or a changed rule, retrieval is usually better. The system looks up the relevant documents when a question is asked and puts them in front of the model, so the weights never change. Weight training suits changing how the model behaves or writes, or teaching it a whole domain it knows poorly.
| Term | Plain meaning |
|---|---|
| Weights | The billions of numbers that make up a trained model |
| Checkpoint | A saved snapshot of the weights, used for recovery or release |
| Replica / instance | One running copy of the model |
| Gradient | The adjustment a replica would make to the weights after seeing its batch of data |
| All-reduce | The step that averages every replica's gradient and returns the result to all of them |
| Data parallelism | Many replicas training on different data at once |
| Sharding | Cutting one copy of the model across several GPUs |
| Parameter server | An older design with a central machine holding the weights |
| Fine-tuning | Further training of a finished model on new data |
| Catastrophic forgetting | Loss of old abilities after training on new data |
| Retrieval | Looking up documents at question time instead of changing the weights |
| KV cache | The model's working memory of the conversation so far |