CourseAI Engineering: The Complete Course · Module 6: Transformers · part 45 of 105
Part 45 · Module 6: Transformers

Lesson 3: Teaching a model BrightCart's tickets

18 min read·13 Oct 2026
Module 6 · Lesson 3 · About 45 minutes · Needs: Lesson 1 (what a transformer is), Module 3 (train and test sets)

The situation

Priya has 40 tickets her agents have sorted into four categories: refund, shipping, warranty and other. She wants the assistant to sort new ones the same way. Module 3 did this with a bag of words. Now you have a pretrained transformer: how do you teach it her categories without teaching it English again?

This lesson follows one ticket, "The dock light won't turn on any more, it's 8 months old." (label: warranty), through tokenizing, two kinds of fine-tuning and compression. Every number comes from a run on a laptop CPU.

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.