View a markdown version of this page

SampledSequence - Amazon SageMaker

SampledSequence

A single generated sequence from the model.

Contents

stopReason

The reason why generation stopped. A value of stop indicates a stop sequence was encountered. A value of length indicates the maximum token limit was reached.

Type: String

Valid Values: stop | length

Required: Yes

tokens

The token IDs of the generated sequence.

Type: Array of integers

Required: Yes

logprobs

The per-token log-probabilities for the generated tokens.

Type: Array of doubles

Required: No

tokenUsage

The token usage statistics for this individual sample.

Type: SampleTokenUsage object

Required: No

See Also

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