View a markdown version of this page

ForwardConfig - Amazon SageMaker

ForwardConfig

The configuration for a forward-only pass through the model. This computes loss values without computing gradients.

Contents

datumList

The list of input data to feed through the model. Must contain at least one datum, and each datum must have a non-empty modelInput with at least one chunk.

Type: Array of Datum objects

Required: Yes

lossFnName

The name of the loss function to evaluate during the forward pass.

Type: String

Valid Values: cross_entropy | importance_sampling | ppo | cispo

Required: Yes

lossFnConfig

Additional loss function configuration passed to the engine. Supported keys are clip_low_threshold (valid range: 0 to 1) and clip_high_threshold (valid range: 1 to 10). Unsupported keys are rejected.

Type: JSON value

Required: No

See Also

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