trainer_step_config_t gathers a step’s per-item inputs: bags, temperature_groups, sides, the choices and choice_targets tapes text_choose takes and answers, the relations edge sets, and an optional arena for the pooled embeddings the loss scored.
The SDK checks every per-item span and tape against the step’s items before the call, and leaves the edge sets to the library. step answers the pooled embeddings when its config names an arena, and an empty written_rows_t otherwise.
A trainer refers to its mesh, so the mesh outlives every trainer made over it, and mesh.describe() answers a uform_mesh_description_t.
API
Types
trainer_step_config_tThe inputs and knobs of a step beside its modalities and contents; every empty span and tape is left out of the call.
The report the step overwrites; nullptr skips it and the readback of the losses.
ClasstrainerA trainer and its verbs, completed as receiver_type_ says: the owning handle and on block, while deferred answers deferred calls, whose every input stays the caller's until final.7
stepApplies one optimizer step over this process's items, tagged by modalities, and every peer's, answering the pooled embeddings the loss scored when config names an arena.