DYAP 01315–20 minute lesson

Large Language Models Explained

A large language model predicts tokens in sequence. Scale, diverse training data and transformer networks allow this simple training objective to produce remarkably flexible language capabilities.

Editorial learning illustration for Large Language Models Explained
Visual guide · Use the flow from inputs and evidence to models, outputs and human decisions.

What you will be able to do

  • Explain large language models explained accurately in your own words.
  • Recognise how the concept appears in real AI products and professional work.
  • Identify an important limitation, risk or evaluation requirement.
  • Apply the concept through a practical activity and knowledge check.

Build the right mental model

During pretraining, the model repeatedly predicts missing or next tokens across very large text and code collections. The learned parameters capture statistical relationships among words, concepts, styles and structures.

Instruction tuning and preference-based methods make the pretrained model more useful in conversation. Retrieval, tools and system instructions can further adapt behaviour without changing all model parameters.

An LLM has a knowledge cutoff, finite context and no automatic guarantee of truth. It may combine patterns into a convincing but unsupported claim. Use retrieval and verification for consequential work.

01

Pretraining

Broad learning from large datasets using a prediction objective.

02

Instruction tuning

Additional training that improves response to user instructions.

03

Inference

Using the trained model to generate an output.

04

Hallucination

A plausible output not adequately supported by facts or provided evidence.

Real-world example

Technical support assistant

An LLM explains an error and proposes troubleshooting steps.

What this teaches: Without product documentation, it may invent a command or outdated setting. Retrieval and approval gates improve reliability.

Practical activity

  1. Ask an LLM about a topic you know well.
  2. Mark statements as supported, uncertain or wrong.
  3. Repeat with authoritative source text supplied in the prompt and compare.

Write your answers in a learning journal. The value comes from connecting the concept to your own profession.

Test your understanding

Q1What is the basic pretraining objective of many LLMs?

Answer: Predicting tokens based on surrounding or preceding context.

Q2Why can an LLM hallucinate?

Answer: It optimises plausible token generation rather than directly checking every statement against an authoritative fact source.

Reflection

If you cannot explain the answer without reading it, revisit the core explanation and example before continuing.

Important industry resources

These links lead to official organisations, industry laboratories or established open-source learning projects.