← Learning path
✎
Modules 06

Large Language Models

From tokens to agents: how LLMs read text, predict the next token, scale, get aligned with human preferences, and are put to work with prompting, retrieval (RAG) and tools.

0/8
  1. 01
    Tokenization: how text becomes numbers

    LLMs never see letters or words — they see token ids. Learn how subword tokenizers like BPE are built, why vocabulary size matters, and why tokens drive cost, context limits and some famously odd model behaviour.

    Intermediate~18 min· Interactive· Quiz (5)
  2. 02
    How LLMs work: next-token prediction at scale

    Pretraining on trillions of tokens with one simple objective, the forward pass from token ids to probabilities, decoder-only GPT vs encoder-only BERT, the context window, and the KV cache that makes generation fast.

    Intermediate~22 min· Interactive· Quiz (5)
  3. 03
    Decoding: greedy, beam search, temperature, top-k, top-p

    The model only gives you a probability distribution; the decoding strategy decides which token you actually get. Learn what every generation knob does and how to choose settings for code, chat and creative writing.

    Intermediate~20 min· Interactive· Quiz (5)
  4. 04
    Scaling laws: parameters, data and compute

    Language-model loss falls as a smooth power law in model size, data and compute. Learn the Kaplan and Chinchilla results, the 6·N·D compute rule, why ~20 tokens per parameter became a rule of thumb, why modern models deliberately overtrain, and what “emergent abilities” really are.

    Advanced~20 min· Interactive· Quiz (5)
  5. 05
    Fine-tuning & alignment: SFT, RLHF, DPO, LoRA/QLoRA

    How a raw base model becomes a helpful assistant: supervised and instruction fine-tuning, reward models and RLHF, the simpler DPO, and parameter-efficient methods (LoRA, QLoRA) that let you fine-tune billion-parameter models on a single GPU.

    Advanced~28 min· Interactive· Quiz (5)
  6. 06
    Prompting: zero-shot, few-shot, chain-of-thought, structured output

    The cheapest and fastest way to improve LLM results is a better prompt. Learn the anatomy of a good prompt, zero- and few-shot prompting, chain-of-thought, system prompts, and how to get reliable JSON out of a model.

    Beginner~18 min· Quiz (5)
  7. 07
    Retrieval-Augmented Generation (RAG)

    Give an LLM access to your own, up-to-date documents: embeddings, chunking, vector databases, hybrid search, reranking, prompt assembly with citations, and how to evaluate and debug a RAG system.

    Intermediate~24 min· Interactive· Quiz (5)
  8. 08
    Agents & tool use: ReAct, function calling, MCP

    Turn an LLM into an agent that acts: the observe–think–act loop, ReAct, function calling with JSON schemas, the Model Context Protocol, memory and planning, how to evaluate agents, and how to keep them safe.

    Advanced~24 min· Interactive· Quiz (5)
Next◐ Image Generation →