သဘောတရား
Model distillation
A large teacher model trains a small student model that is faster and cheaper to run.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
- 1The teacher answers a set of prompts.
- 2The student trains on those answers.
Size
- Teacher model
- Large
- Student model
- Small
Speed
- Teacher model
- Slower
- Student model
- Faster
Cost per call
- Teacher model
- Higher
- Student model
- Lower
| Compare | Teacher model | Student model |
|---|---|---|
| Size | Large | Small |
| Speed | Slower | Faster |
| Cost per call | Higher | Lower |
ဘာလဲ
Large models give the best answers but cost more and answer more slowly on every call. Model distillation moves some of that skill into a smaller model.
The large model is the teacher. It answers a set of prompts, and those answers become training data. The small model is the student. It learns to match the teacher on your kind of task. The student will not match the teacher on everything, but on the focused task it can come close.
You pay once to build the student, then save on every call. Amazon Bedrock offers model distillation as a feature. It suits high-volume tasks where speed and cost matter.
မှတ်ထားရန်
- Teacher: large and capable. Student: small and fast.
- The student trains on the teacher's answers.
- Result: lower latency and lower cost per call.
- Best on a focused task, not on everything the teacher can do.
- Training costs once. The savings repeat on every call.
စာမေးပွဲမှာ
- “Make a smaller, cheaper model that behaves like a larger one” points to model distillation.
- “Teacher and student models” points to distillation.
ဒါတွေနဲ့ မရောပါနဲ့
- Fine-tuning methodsWays to adapt a pre-trained model: instruction tuning, domain adaptation, transfer learning and continued pre-training.
- Training a foundation modelPre-training, continued pre-training, fine-tuning and distillation: who does what, and what it costs.
- Customization cost tradeoffsFive ways to adapt a model, from cheapest to costliest, and when each one is the answer.