Class: Aws::SageMakerTrainingSessionRuntime::Types::SampleTokenUsage

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb

Overview

The token usage statistics for a sample generation.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#decode ⇒ Integer

The number of tokens generated (decode phase).

Returns:

  • (Integer)


847
848
849
850
851
852
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 847

class SampleTokenUsage < Struct.new(
  :prefill,
  :decode)
  SENSITIVE = []
  include Aws::Structure
end

#prefill ⇒ Integer

The number of tokens in the input prompt (prefill phase).

Returns:

  • (Integer)


847
848
849
850
851
852
# File 'gems/aws-sdk-sagemakertrainingsessionruntime/lib/aws-sdk-sagemakertrainingsessionruntime/types.rb', line 847

class SampleTokenUsage < Struct.new(
  :prefill,
  :decode)
  SENSITIVE = []
  include Aws::Structure
end