Training
Summary
Training is the initial process of creating a model from scratch: the neural network is exposed to a massive dataset and fine-tunes its weights billions of times to learn how to predict the next word.
What is it?
Training (training) — the first stage in the life of a neural network. The model receives terabytes of text from all over the internet and learns one task: predicting the next word. Each mistake forces the algorithm to tweak weights until the model starts generating meaningful text.
How much does it cost?
Training a flagship model involves:
- a data center with thousands of GPU (e.g., NVIDIA H100);
- several months of continuous computation;
- $50–100 million in electricity and hardware.
Writing the architecture code can be done by an average programmer in an evening. But training the model is an industrial-scale task. More details in the article Data Center as a Factory.
The result of training
The output is a file with weights (from several gigabytes to hundreds). It contains no text — only numbers. All the 'knowledge' of the model is embedded in these numbers.
Training vs Fine-Tuning
Full training from scratch is a rare occurrence. More commonly, fine-tuning is used to adapt a pre-trained model to specific tasks.