Lesson 5 — What a language model is: tokens, prediction, training vs. inference
Unit I · Substrate and mechanism

L05_toy_model.py                             student     Teaching stand-in: a word-level n-gram model that prints a next-word distribution and generates at several temperatures.

Python 3.11 or newer. Standard library only. Run each program from the folder the lesson tells you to put it in:
    python <file>.py        (Windows)
    python3 <file>.py       (macOS and Linux)
