Demonstrates, at very small scale, how a language model is trained (two-context model).
python mkdocs teaching educational reproducibility language-model softmax-regression computer-science-education probabilistic-model uv pyright src-layout machine-learning-education next-token-prediction dual-context toy-gpt toy-model inspectable-models two-context-model
-
Updated
Jan 19, 2026 - Python