Training
Training is the process in which an AI model learns from data by repeatedly adjusting its internal weights to reduce prediction error. For large language models it usually has stages: pre-training on a very large text corpus, followed by post-training such as supervised fine-tuning and preference-based reinforcement learning.[1][3]
What does Training mean in simple terms?
In training, a model looks at data, tries to produce the right answer, and then nudges its internal numbers (weights) a little in the direction that would have made the answer less wrong. Think of a student who marks every mistake on a practice test in red and slightly changes how they solve problems so the same mistake does not happen next time. Repeat this an enormous number of times and you get models such as GPT or Claude. During ordinary inference, a released model uses fixed weights; each question does not automatically retrain it.[5] If training is the whole semester of study, inference is the hour the student spends sitting the actual exam.
How can Training be explained with an analogy?
If hiring a new employee and taking them through on-the-job training is "training," then the work that employee does every day afterwards is "inference."
Where is Training used?
Meta Llama 3.1 405B — Pre-training on more than 16,000 H100 GPUs
Meta trained Llama 3.1 405B on more than 15 trillion tokens, using over 16,000 NVIDIA H100 GPUs; it was the first Llama model trained at that scale.[3] Because training is synchronous, a single GPU failure can force the whole job to restart. During one 54-day period of pre-training, Meta logged 466 job interruptions, 419 of them unexpected, which works out to roughly one unexpected interruption every three hours.[4] The model card reports 30.84 million H100 GPU-hours for the 405B model and 39.3 million for the whole Llama 3.1 family.[5] This is why few companies pre-train frontier models themselves, and why many instead start from a released base model and fine-tune it.
Result: 30.84M H100 GPU-hours to train Llama 3.1 405B (Meta model card, July 2024).[5]
NAVER HyperCLOVA X THINK — A Korean-focused reasoning model
NAVER Cloud pre-trained HyperCLOVA X THINK on roughly 6 trillion high-quality Korean and English tokens, supplemented with targeted synthetic Korean data, using a three-stage curriculum that extends the context window to 128K tokens.[6] It was then post-trained with supervised fine-tuning and reinforcement learning from verifiable rewards (RLVR). NAVER reports competitive results against similarly sized models on Korea-focused benchmarks such as KMMLU and CSAT, and says a vision-augmented version matches or exceeds GPT-4.1 on the KCSAT STEM benchmark, with substantially lower training compute than comparable models.[6] For organisations planning a Korean-language assistant, it shows how the choice of training data and post-training method shapes results in one language.
Result: About 6T Korean and English pre-training tokens plus synthetic Korean data, followed by SFT and RLVR (NAVER technical report, June 2025).[6]
LoRA and QLoRA — Fine-tuning without retraining every weight
Full fine-tuning updates all of a model's weights. LoRA instead freezes the original weights and trains small added matrices called adapters. The QLoRA paper showed that combining a 4-bit quantised base model with LoRA made it possible to fine-tune a 65-billion-parameter model on a single 48GB GPU while preserving full 16-bit fine-tuning task performance; its best model took 24 hours of fine-tuning on one GPU.[7] A 2025 study by Thinking Machines Lab found that LoRA matches full fine-tuning on small-to-medium instruction and reasoning datasets, but falls behind when the dataset exceeds the adapter's capacity.[8] For narrow tasks such as an internal document assistant, this makes adapter-based fine-tuning a practical first option.
Result: 65B-parameter model fine-tuned on one 48GB GPU with QLoRA (Dettmers et al., 2023).[7]
OpenAI InstructGPT — The three-step RLHF recipe
Ouyang et al. (2022) described a three-step process: supervised fine-tuning on human-written demonstrations, training a reward model on human rankings of outputs, and then optimising the model against that reward with reinforcement learning (PPO).[1] The datasets were relatively small: about 13,000 training prompts for supervised fine-tuning, 33,000 for the reward model and 31,000 for the RL stage.[1] In human evaluations, outputs from the 1.3B-parameter InstructGPT were preferred to those of the 175B GPT-3 despite having over 100 times fewer parameters, and the 175B InstructGPT was preferred to 175B GPT-3 85 ± 3% of the time.[1] It showed that a pre-trained model's tone and behaviour can be changed with additional training, without repeating pre-training.
Result: 1.3B InstructGPT preferred to 175B GPT-3 in human evaluation; 175B InstructGPT preferred 85 ± 3% of the time (arXiv 2203.02155).[1]
Try it today
- Write one sentence stating whether your use case needs pre-training, fine-tuning, or only better prompting.
- Put three candidate models in one table with their training-token counts and knowledge cutoff dates (for example, Llama 3.1: 15T+ tokens, December 2023 cutoff).[5]
- Gather a few hundred to about 1,000 high-quality example pairs from internal documents and ask one vendor for a LoRA fine-tuning quote; Apple's adapter guide suggests 100–1,000 samples for basic tasks.[12]
- Collect about 20 internal examples of the tone and refusal rules you would want preference training to teach.
- Separate one-off training costs from ongoing inference costs and model 12 months of operating cost.
Limits and direction
Training compute is getting heavier fast. Stanford's 2024 AI Index estimated that GPT-4 used about USD 78 million worth of compute to train and Google's Gemini Ultra about USD 191 million.[9] xAI's Colossus cluster of 100,000 NVIDIA Hopper GPUs was built in 122 days, and in October 2024 xAI was doubling it to 200,000 GPUs.[10] In April 2026 Anthropic announced an agreement with Amazon securing up to 5 gigawatts of capacity to train and run Claude, with a commitment of more than USD 100 billion over ten years.[11] Frontier pre-training is now beyond what most companies can fund alone. Other burdens remain: checking training data for copyright and bias, the cost of restarts in synchronous distributed training,[4] and the static nature of trained weights: updating their learned knowledge requires further training, although retrieval or tools can supply newer information at inference time.[5]
Meanwhile, training is splitting into layers. DeepMind's Chinchilla study found that, for a fixed compute budget, model size and training tokens should grow in equal proportion.[2] Meta's Llama 3 team trained its flagship near that compute-optimal size but deliberately trained its smaller models for much longer, because they then perform better at the same inference cost.[4] In post-training, human-feedback RL (RLHF) has been joined by RL from AI feedback (RLAIF)[13] and reinforcement learning from verifiable rewards (RLVR),[6] which can reduce the need for human labels. Lower down, adapter methods such as LoRA and QLoRA have become common.[7][8] Apple, for example, lets developers train LoRA adapters for its on-device model on a Mac or Linux GPU machine; each adapter only works with one specific system-model version, and the 26.0.0 toolkit is the last release and is not compatible with OS 27 and later.[12] Today, a few very large companies handle pre-training, while application companies take on fine-tuning, alignment and specialisation. For most businesses, the first decision in adopting an LLM is how far to take training in-house, and where to start from an external base model instead.[4][8]
Which concepts are related to Training?
- Related conceptThroughputA basic concept that often appears alongside training when sizing AI infrastructure.
- Related conceptLatencyA basic concept that often appears alongside training; latency concerns how fast a trained model responds.
- Related conceptSWE-benchA benchmark often used to compare what different training approaches produce.
Which sources explain Training?
- arXiv (Ouyang et al., OpenAI) — Training language models to follow instructions with human feedback (2022-03-04) — https://arxiv.org/abs/2203.02155
- arXiv (Hoffmann et al., DeepMind) — Training Compute-Optimal Large Language Models (2022-03-29) — https://arxiv.org/abs/2203.15556
- Meta AI — Introducing Llama 3.1: Our most capable models to date (2024-07-23) — https://ai.meta.com/blog/meta-llama-3-1/
- arXiv (Llama Team, Meta) — The Llama 3 Herd of Models (2024) — https://arxiv.org/html/2407.21783v3
- Hugging Face (Meta) — Llama 3.1 405B model card (2024-07-23) — https://huggingface.co/meta-llama/Llama-3.1-405B
- arXiv (NAVER Cloud HyperCLOVA X Team) — HyperCLOVA X THINK Technical Report (2025-06-27) — https://arxiv.org/abs/2506.22403
- arXiv (Dettmers et al.) — QLoRA: Efficient Finetuning of Quantized LLMs (2023-05-23) — https://arxiv.org/abs/2305.14314
- Thinking Machines Lab — LoRA Without Regret (2025-09-29) — https://thinkingmachines.ai/blog/lora/
- Stanford HAI — The 2024 AI Index Report (2024) — https://hai.stanford.edu/ai-index/2024-ai-index-report
- NVIDIA Newsroom — NVIDIA Ethernet Networking Accelerates World's Largest AI Supercomputer, Built by xAI (2024-10-28) — https://nvidianews.nvidia.com/news/spectrum-x-ethernet-networking-xai-colossus
- Anthropic — Anthropic and Amazon expand collaboration for up to 5 gigawatts of new compute (2026-04-20) — https://www.anthropic.com/news/anthropic-amazon-compute
- Apple Developer — Foundation Models adapter training — https://developer.apple.com/apple-intelligence/foundation-models-adapter/
- arXiv (Bai et al., Anthropic) — Constitutional AI: Harmlessness from AI Feedback (2022-12-15) — https://arxiv.org/abs/2212.08073
Tell us what you think
Your feedback helps us improve the content.