SampledSequence
¶
Source code in docs_src/capo_sagemakertrainingsessionruntime/types/sampled_sequence.py
logprobs
instance-attribute
¶
logprobs: NotRequired[DoubleList]
The per-token log-probabilities for the generated tokens.
stop_reason
instance-attribute
¶
stop_reason: 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.
token_usage
instance-attribute
¶
token_usage: NotRequired[SampleTokenUsage]
The token usage statistics for this individual sample.