ladderlore
Request a guide
  • Type a service name, like S3 or IAM.

Concept

Model distillation

A large teacher model trains a small student model that is faster and cheaper to run.

Teacher model
Teacher answers
Student model
  1. 1The teacher answers a set of prompts.
  2. 2The student trains on those answers.
The student learns from the teacher's answers.
  • Size

    Teacher model
    Large
    Student model
    Small
  • Speed

    Teacher model
    Slower
    Student model
    Faster
  • Cost per call

    Teacher model
    Higher
    Student model
    Lower
Teacher and student compared.

What it is

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.

Remember

  • 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.

On the exam

  • “Make a smaller, cheaper model that behaves like a larger one” points to model distillation.
  • “Teacher and student models” points to distillation.