Train Your Own LLM - companion code
Chapter 4: Setting Up Your Workbench

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
Install PyTorch first with the selector at https://pytorch.org/get-started/locally/,
then: pip install -r requirements.txt (pinned list in Chapter 4).

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
- ch04_activations.py
- ch04_checkpointing.py
- ch04_kv_cache.py
- ch04_planner.py
- ch04_seeds.py
- ch04_smoke_test.py
- ch04_stack_tour.py
- ch04_trackio.py
- requirements.txt

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