Lesson 1: Adapting a small open model to Kestrel's messages
34 min read·
Module 12 · Lesson 1 · About 55 minutes · Needs: Module 4 lesson 3 (the message intents), Module 8 lesson 1 (quantisation and distillation) and PyTorch basics. GPU optional: everything runs on a CPU.
The situation
Week 12 at Kestrel. Hannah's team routes customer messages by hand. Module 4's transformer matched the first annotator on 0.808 of held-out messages; a TF-IDF baseline scores macro F1 0.855. Adaeze asks whether an adapted pretrained language model does better. Hannah's rule: customer text stays inside Kestrel, so the model must be open and run on Kestrel's machines.
The running example is message M0001 (simulated): "hiya you said tomorrow 4 my parcel. it is now late! Regards", which both annotators labelled delivery_late.