Datum
¶
Source code in docs_src/capo_sagemakertrainingsessionruntime/types/datum.py
loss_fn_inputs
instance-attribute
¶
loss_fn_inputs: NotRequired[TensorDataMap]
The tensor inputs for the loss function, keyed by name. Unsupported keys are rejected. Supported keys: target_tokens, weights, advantages, logprobs, ref_log_prob, temperature. Required keys depend on the loss function type: SFT (cross_entropy) requires target_tokens and weights; RL (ppo, cispo, importance_sampling) requires target_tokens, weights, advantages, and logprobs.