SampleResponse - 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.

SampleResponse

The response containing generated samples and optional log-probabilities.

Contents

sequences

The list of generated sequences.

Type: Array of SampledSequence objects

Required: Yes

promptLogprobs

The per-token log-probabilities for the input prompt. Populated only when includePromptLogprobs is true.

Type: Array of doubles

Required: No

topkPromptLogprobs

The top-k log-probabilities per prompt token, as a list of lists. Populated only when topkPromptLogprobs is greater than 0.

Type: Array of arrays of TokenLogprob objects

Required: No

See Also

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