Interactive tutorial

How Large Language Models Work

Discover how large language models turn text into tokens, use transformers to process context, and generate responses one token at a time. By the end, you will be able to explain training versus everyday use, distinguish a model from the tools around it, and recognize why fluent answers still need verification. No coding or advanced mathematics is required.

  • Level: Beginner
  • Duration: approx. 22 min
  • 9 steps
How Large Language Models Work

What you will go through

  1. Step 1 of 9 2 min The Core Idea: Predicting What Comes Next Learn the core task behind text-generating LLMs: predicting what comes next, not automatically retrieving verified facts.
  2. Step 2 of 9 2 min From Text to Tokens and Numbers
  3. Step 3 of 9 3 min How Transformers Use Context See how transformers use position information and self-attention to create representations that depend on preceding context.
  4. Step 4 of 9 3 min Generating a Response One Token at a Time See how an LLM turns next-token probabilities into a response through a repeated selection-and-context loop.
  5. Step 5 of 9 3 min How Pretraining Changes the Model See how pretraining uses feedback to change parameters, while ordinary inference generates with parameters that are already learned.
  6. Step 6 of 9 2 min From Text Continuation to Instruction Following Learn why pretraining alone does not create reliable instruction following, and how post-training uses examples and preferences to shape behavior without guaranteeing truth.
  7. Step 7 of 9 3 min What the Model Can Access During a Chat See how an assistant application supplies temporary context, memory, retrieved sources, and tool results to an LLM without changing its parameters.
  8. Step 8 of 9 3 min Why Fluent Answers Can Still Be Wrong Learn why fluent LLM answers can be false or unsupported, and practice checking claims against available evidence.
  9. Step 9 of 9 3 min Put It Together: Explain and Check an LLM Response Integrate the generation process with the distinction between training, retrieval, inference, and evidence-supported answers.

Video Courses

Courses related to this topic

See all video courses

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate