Skip to main content

Exercise catalogue

A separate place to practise, calculate, and transfer knowledge

Short self-checks are collected on companion pages linked from each lesson. Topic collections remain the place for broader, cross-lesson practice.

Exercises by lesson

This catalogue is the entry point for extended exercises: calculations, multi-step problems, diagnosis, implementation-oriented reasoning, and transfer tasks. The substantial exercise sets live on their own topic pages so that they can grow without turning this page into a long, flat worksheet.

How to use this space

  • Start with the preparation listed in the relevant collection; follow other references only when needed.
  • Attempt each task before opening its solution. State assumptions and identify conditions under which your answer would fail.
  • Use transfer prompts to test whether the reasoning generalizes beyond the worked example.
  • Solutions are collapsed by default. A correct result without reasoning is not sufficient evidence of mastery.

Standalone transfer exercises

Exercise collections

Collection Preparation Scope and status
Mathematical foundations Mathematical foundations, plus the topic references listed in the collection Nine progressive exercises published: softmax/NLL, masking and reduction, gradients, soft targets/KL, tensor shapes, numerical stability, perplexity, cosine similarity, and linear probes. Finite-difference gradient checking remains to be developed.
Text data Text and data, embedding space, training examples, and tokenization lessons Six formative exercises TR-A–TR-F published: representation pipeline, lookup and shapes, identity/position/context, windows and target shift, BPE merges, and split leakage.
Attention Q/K/V, scaled dot-product attention, and causal masking Weighted aggregation, score scaling and variance, Q/K/V projection calculations and interventions, CA-A on causal masking and prefix invariance, and AT-A–AT-C on multi-head attention and AT-D on score variance published. Advanced variants remain to be developed.
Transformer Transformer overview and block walkthrough Three formative exercises TF-A–TF-C published: pre-LN shapes and normalization, parameter counting, and diagnosis/interventions. Architecture variants remain to be developed.
Generation Generation, logits, and probabilities Seven formative exercises GE-A–GE-G published: distribution and selection, autoregressive loop, stopping, prefill/decode, KV cache, temperature, and top-k/top-p filters.
Zipf’s law Zipf’s law lesson, text and data, and tokenization strategies Four formative exercises on rank-frequency calculations, log-log interpretation, lexical/token frequencies, and empirical limits.

Planned collections

The following topics are part of the longer-term practice curriculum. They are not presented as published collections until their exercises are available.

Collection Planned focus Status
Pretraining Training curves, validation loss, perplexity, checkpoints, and reproducibility Planned
Fine-tuning Classification, SFT, target alignment, loss masking, data quality, and overfitting Planned
Evaluation Baselines, metrics, contamination, uncertainty, and error analysis One standalone transfer exercise is available in Experimental evaluation; a broader collection remains to be built.
Efficiency LoRA/QLoRA, memory estimates, cost, and trade-offs Planned
Advanced topics DPO, attention variants, critical reading, and experimental design Planned

A note on lesson self-checks

Focused retrieval questions and their worked answers live on the companion page for the relevant lesson. Keep explanatory examples and demonstrations in the lesson when they teach the mechanism rather than test the learner. The topic collections here are for integrated, cross-lesson practice; they may refer to a companion check as a prerequisite, but should not reproduce the same prompt and solution.

Foundational references

Language: Français · English