ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念

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.

是什么

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.