Skip to main content

Model distillation

Generate teacher targets and train a smaller student with measured quality and latency.

Model distillation

Activity responsibilities

ActivityResponsibility
load-teacherExecute the load teacher stage and publish its declared outputs for downstream activities.
generate-soft-labelsExecute the generate soft labels stage and publish its declared outputs for downstream activities.
train-studentExecute the train student stage and publish its declared outputs for downstream activities.
evaluate-qualityExecute the evaluate quality stage and publish its declared outputs for downstream activities.
benchmark-latencyExecute the benchmark latency stage and publish its declared outputs for downstream activities.
publish-studentExecute the publish student stage and publish its declared outputs for downstream activities.

Inputs

  • Teacher model
  • Examples
  • Student architecture

Outputs

  • Soft labels
  • Student model
  • Quality and latency reports

Provenance to preserve

  • Teacher revision
  • Generated targets
  • Benchmark hardware

Runnable example

This is the complete checked-in bundle for this pattern. Download the environment, scope, topology, workflow, input, container recipe, runner, and validation contract from this page before executing it.

Verified local execution

These captures and the output manifest were produced by the fixture's local Docker run and validator. They are published with the same bundle as the runnable files.

Model distillation workflow execution evidence
Workflow evidence
Model distillation execution evidence
Execution evidence
Model distillation output evidence
Output evidence
Open verified output manifest ↓

Execution considerations

Cache generated labels and run latency tests on the intended deployment class rather than the training host.

AkôFlow boundary: the engine schedules, deploys, executes, transfers data, and records evidence. The ML or agent framework remains an implementation choice inside each activity.