Lab: Corpus, tokeniser, packing and objectives, tested
Module 8 · Lab · About 60 minutes · Needs: lessons 1 to 4 of this module, and Module 7's lab
What you are building
Sol 421 at Aurora Station. The four lessons left their pretraining tools in notebook cells: Lesson 1's pipeline and corpus report, Lesson 2's eight objectives, Lesson 3's deduplication, document mask and contamination check, Lesson 4's discipline of writing the plan and the manifest. Kofi Mensah asks the module's question once more: does the package say what the lessons said?
Today you save them as four files in tinyformer-lab: corpus.py, tokenizer.py, packing.py and objectives.py. You write the corpus report as a file, with the lookup contamination counted against a control. You pin the tools with seven tests, rerun part of Lesson 2's race from the package, and tag v0.8.0.