Class: Aws::SageMakerTrainingSessionRuntime::Types::SampledSequence
- Inherits:
-
Struct
- Object
- Struct
- Aws::SageMakerTrainingSessionRuntime::Types::SampledSequence
- Defined in:
- gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb
Overview
A single generated sequence from the model.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#logprobs ⇒ Array<Float>
The per-token log-probabilities for the generated tokens.
-
#stop_reason ⇒ String
The reason why generation stopped.
-
#token_usage ⇒ Types::SampleTokenUsage
The token usage statistics for this individual sample.
-
#tokens ⇒ Array<Integer>
The token IDs of the generated sequence.
Instance Attribute Details
#logprobs ⇒ Array<Float>
The per-token log-probabilities for the generated tokens.
975 976 977 978 979 980 981 982 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 975 class SampledSequence < Struct.new( :stop_reason, :tokens, :logprobs, :token_usage) SENSITIVE = [] include Aws::Structure end |
#stop_reason ⇒ String
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.
975 976 977 978 979 980 981 982 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 975 class SampledSequence < Struct.new( :stop_reason, :tokens, :logprobs, :token_usage) SENSITIVE = [] include Aws::Structure end |
#token_usage ⇒ Types::SampleTokenUsage
The token usage statistics for this individual sample.
975 976 977 978 979 980 981 982 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 975 class SampledSequence < Struct.new( :stop_reason, :tokens, :logprobs, :token_usage) SENSITIVE = [] include Aws::Structure end |
#tokens ⇒ Array<Integer>
The token IDs of the generated sequence.
975 976 977 978 979 980 981 982 |
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 975 class SampledSequence < Struct.new( :stop_reason, :tokens, :logprobs, :token_usage) SENSITIVE = [] include Aws::Structure end |