openskills.info
Course Preview

Large Language Model Training and Inference

LLM training and inference covers the infrastructure, techniques, and engineering required to train large language models on massive text corpora and serve their predictions efficiently. It addresses distributed training, hardware selection, optimization, quantization, and serving architectures.

itArtificial intelligence and machine learning

Large Language Model Training and Inference

This course is the deeper companion to LLM Foundations in this catalog. That course gives you the broad orientation: what an LLM is, the training stages at a high level, and how inference works in outline. This course goes further into two specific mechanics every AI engineer eventually runs into: how the size of a training run gets decided, how a raw base model becomes an aligned assistant, and what's actually happening — and what can be tuned — every time a model generates a response.

Pretraining at scale: what the scaling laws say

Training a large language model from scratch means choosing, ahead of time, how many parameters the model will have and how many tokens of text it will train on — and those two choices interact. For years, the field's default was to make models as large as the compute budget allowed, training them on whatever data was available without treating dataset size as an equally important lever.

DeepMind's 2022 "Chinchilla" scaling law study challenged that. Training over 400 models across a range of sizes, the researchers found that for a fixed compute budget, model size and training data should be scaled together, roughly in step — and that the field's existing large models were, by that measure, undertrained: too large for the amount of data they'd seen. They demonstrated it directly: Chinchilla, a 70-billion-parameter model trained on 1.4 trillion tokens, outperformed Gopher, a 280-billion-parameter model trained on roughly 300 billion tokens, despite using the same training compute. A model a quarter of Gopher's size, trained on four times more data, won.

The practical takeaway for anyone reasoning about model capability: parameter count alone doesn't tell you what a model can do. A smaller model trained compute-optimally on enough data can outperform a much larger one that was undertrained relative to its size — which is part of why raw parameter counts became a less reliable signal of model quality over time, and why current frontier models are trained on token counts far larger than early scaling assumptions suggested was needed.

Continue the course

This section is part of the paid course.

See pricing to subscribe, or log in if you already have access.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources

  • https://deepmind.google/blog/an-empirical-analysis-of-compute-optimal-large-language-model-training/
  • https://arxiv.org/abs/2203.02155
  • https://huggingface.co/docs/transformers/main/en/generation_strategies
  • https://huggingface.co/blog/how-to-generate
  • https://huggingface.co/docs/transformers/main/en/llm_optims