View a markdown version of this page

Datum - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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 Amazon SDKs, see the following: