Train Your Own LLM - companion code
Chapter 11: Training a Tiny Model from Scratch

HOW TO RUN
Use the Python environment from Chapter 4 (Python 3.12 or 3.13,
versions pinned in Appendix F). Unzip this folder, cd into it, and run each
script with: python <script>.py   (each example's caption in the book
gives its file name). Expected output is printed in the book.
Scripts download models and datasets from the Hugging Face Hub on first run.

CHAPTER NOTES
Run ch11_data.py first (downloads TinyStories and writes tinystories_*.bin), then
ch11_train.py. Use --steps for a short smoke run.

FILES THAT NEED A GPU
- None. Every script here ran on a CPU-only test machine,
  except any recipe the book marks as not run on our test machine.

FILES
- ch11_data.py
- ch11_gpt.py
- ch11_train.py

LICENSE
The code is released under the MIT License (see LICENSE).
Data files that scripts download keep their own licenses.
