Skip to content

How LLMs Work

Tokens, embeddings, attention and next-token prediction — the mechanics that explain almost every LLM behaviour.

Level
Beginner
Lessons
4
Total time
1h 4m
Simulations
3
1 free lessonIncluded in LLMs, Prompt Engineering & Context Engineering · $9
Tools you'll use
  • Python
  • Claude
  • OpenAI
  • Gemini
Skills
  • Tokenisation
  • Embeddings
  • Attention
  • Sampling
Try it now — free

This is the real simulation from the module. No account needed.

What you will be able to do

  • Explain what happens to a prompt inside the model
  • Estimate cost and context limits from token counts
  • Set temperature and top-p for a reason

Syllabus

4 lessons · 1h 4m

Every lesson's title and summary is public. The lessons themselves open once you own the track. The lesson marked free can be read in full right now, no account needed.

Every lesson in LLMs, Prompt Engineering & Context Engineering
  1. Your prompt is cut into tokens, turned into vectors, and then every token decides which other tokens matter. Those three steps explain why good prompts work.

    FreeRead it free Simulation
  2. Next-Token Prediction and Sampling

    16 min

    Temperature, top-p, and why the same question gets different answers.

    Included with the track Simulation
  3. Context Windows and Token Costs

    14 min

    Counting tokens, estimating cost, and what happens when the context fills up.

    Included with the track
  4. Choosing a Model

    14 min

    Quality, latency, price and context limits — how to weigh them for a real product.

    Included with the track
Lifetime access
$9
Buy the track
More in LLMs, Prompt Engineering & Context Engineering
Module · Beginner

Prompt Engineering Fundamentals

Clear instructions, examples, step-by-step reasoning and structured output — proven techniques, no incantations.

  • 4 lessons
  • 58 min
  • 1 simulation
Included in LLMs, Prompt Engineering & Context Engineering· $9
Module · Intermediate

Context Engineering

What goes into the context window, where it comes from and in what order — the core skill of building LLM applications.

  • 4 lessons
  • 1h 4m
  • 2 simulations
Included in LLMs, Prompt Engineering & Context Engineering· $9
Module · Intermediate

Building with LLM APIs

Calling APIs, streaming, tool calling, caching, and keeping cost and latency under control in production.

  • 4 lessons
  • 1h 6m
  • 5 simulations
Included in LLMs, Prompt Engineering & Context Engineering· $9
Module · Intermediate

Evaluating LLM Applications

Eval sets, LLM-as-judge and regression tests for prompts — replacing "looks good to me" with a number.

  • 3 lessons
  • 44 min
  • 1 simulation
Included in LLMs, Prompt Engineering & Context Engineering· $9