Class: Aws::SageMakerTrainingSessionRuntime::Types::SampledSequence

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#logprobs ⇒ Array<Float>

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

Returns:

  • (Array<Float>)


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.

Returns:

  • (String)


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.

Returns:

  • (Array<Integer>)


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