Optimize the new function#
Compilation can include training. Compile by Training starts from a function specification, generates task examples with teacher models, and optimizes an adapter. The resulting function is saved for repeated execution.
Follow one specification#
- Specify: describe the function’s inputs and expected behavior.
- Construct: generate examples and train the function’s adapter.
- Execute: load the saved function and call it on new inputs.
Compare this construction stage with the forward pass in the weight-generator lesson. Read the Compile by Training paper for the system’s examples and implementation.
Reuse the result of training#
The teachers and optimizer do their work during construction. Later calls execute the saved neural function. Training the constructor across tasks and training a newly specified function are separate operations.