Module 4 · Lesson 10
Why does training a large language model require so much computation? Two quantities grow together: the number of model parameters and the number of training tokens processed.
A useful compute rule of thumb
For a dense transformer, a commonly used rough estimate for training compute is:
training compute ≈ 6 × parameters × training tokens
This is a rule of thumb, not a universal law. Real cost depends on architecture, sequence length, optimizer, precision, hardware utilization, communication overhead, and many other implementation details.
But the equation shows the basic scaling pressure. If either model size or token count grows substantially, the work grows with it.
Why use such large datasets?
Large token counts expose the model to more linguistic patterns, domains, styles, code, facts, and relationships. More data can improve coverage and generalization when the data is useful and the model has enough capacity to learn from it.
It is not accurate to say trillions of tokens are universally required, or that large token counts magically prevent memorization. Smaller models can be trained on far less data, and even very large models can memorize parts of their training material.
The right amount of data depends on the goal, model size, data quality, compute budget, and training strategy.
One machine is often not enough
Large training runs distribute work across many accelerators. Different forms of parallelism can split data, model parameters, or layers across devices.
training corpus
↓
many accelerator workers
↓
forward + backward computation
↓
synchronize gradients / parameters
↓
next training step
This introduces a second challenge beyond raw arithmetic: communication. Thousands of processors are useful only if they can exchange the information needed to keep training coordinated efficiently.
Scale is a design choice, not the definition of intelligence
Frontier-scale training receives attention because of its cost and capability, but useful AI does not always require the largest possible model. Smaller models can be cheaper, faster, easier to deploy, more private, and entirely adequate for a focused task.
The important lesson is that pre-training cost is driven by a combination of model size, data volume, and computational efficiency, not by token count alone.
Demystifying AI series
← The Neural Network Training Loop · Pre-Training vs. Post-Training →