What this is
Implement your objective in Python and run it throughforward_backward_custom so algorithm design remains in your control.
How to use these APIs
TrainingClient.forward_backward_custom: Run objective and backpropagation for each batch.TrainingClient.optim_step: Apply optimizer update.
End-to-end examples
Custom objective step
Common pitfalls
- Token-weight misalignment can silently break objective semantics.
- Ignoring per-step diagnostics makes instability hard to attribute.