Lesson 4: Frameworks: PyTorch, Lightning and a run you can repeat
31 min read·
Module 4 · Lesson 4 · About 50 minutes · Needs: lessons 1 to 3 (a training step, a training loop, the message model), and the Kestrel data (course-guide/06). GPU optional.
The situation
Week 4 at Kestrel, day five. The networks work, but each lesson wrote its own loop, and Adaeze's standing question applies to networks too: "Can you reproduce last month's model exactly?" Before the Module 4 lab compares a network with model v1, the training code must load data the same way every time, train the same way every time, and say what it ran on.
Running examples: parcel KP0104204 (simulated), item 18,189 of the validation set, and message M0001, 12 words long.