internalsGet Pro

Module 18 · Lesson 4 of 15Pro

Text classification: prompt, fine-tune or distill

Level
Intermediate
Topic
Applied ML problems
Reading time
17 min

When you finish this page you can

  1. Compare prompting an LLM, training a small model on labelled text, and distilling LLM labels into a small model on cost, latency, accuracy and the labels each needs.
  2. Estimate the yearly cost of each route from volume, prompt length and serving hardware, and find the volume where the choice flips.
  3. Build the checked set and per-category gate that every route needs before its answers can be trusted.
  4. Say when a vision-language model reading text and photo together is the cheaper first try.
  1. Multi-class and multi-label problems17 min
  2. Pretraining and fine-tuning16 min
  3. Text features: from word counts to embeddings17 min
  4. Labeling data: people, LLMs and quality checks17 min
  5. Smaller models: pruning and distillation18 min

Video lesson · coming soon

A phone case filed under Phones

is the online store this course uses as its example. It sells 20 million products, and sellers add or edit about 300,000 listings a day. Each listing belongs in one of the 600 leaf categories of Kartly’s category tree, its product taxonomy, such as “Phone cases” under Mobiles. Search filters, demand forecasts and recommendations all read that field.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan