Datum - SageMaker Training Session
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Datum

A single training datum containing model input and optional loss function inputs.

Contents

modelInput

The tokenized input to feed to the model.

Type: ModelInput object

Required: Yes

lossFnInputs

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.

Type: String to TensorData object map

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: