Class: Aws::Bedrock::Types::InferenceConfiguration

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-bedrock/types.rb

Overview

Inference configuration for a model.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#max_tokensInteger

The maximum number of tokens to generate.

Returns:

  • (Integer)


9641
9642
9643
9644
9645
9646
9647
9648
# File 'lib/aws-sdk-bedrock/types.rb', line 9641

class InferenceConfiguration < Struct.new(
  :max_tokens,
  :temperature,
  :top_p,
  :stop_sequences)
  SENSITIVE = []
  include Aws::Structure
end

#stop_sequencesArray<String>

Stop sequences that end generation.

Returns:

  • (Array<String>)


9641
9642
9643
9644
9645
9646
9647
9648
# File 'lib/aws-sdk-bedrock/types.rb', line 9641

class InferenceConfiguration < Struct.new(
  :max_tokens,
  :temperature,
  :top_p,
  :stop_sequences)
  SENSITIVE = []
  include Aws::Structure
end

#temperatureFloat

The temperature for sampling.

Returns:

  • (Float)


9641
9642
9643
9644
9645
9646
9647
9648
# File 'lib/aws-sdk-bedrock/types.rb', line 9641

class InferenceConfiguration < Struct.new(
  :max_tokens,
  :temperature,
  :top_p,
  :stop_sequences)
  SENSITIVE = []
  include Aws::Structure
end

#top_pFloat

The top-p value for nucleus sampling.

Returns:

  • (Float)


9641
9642
9643
9644
9645
9646
9647
9648
# File 'lib/aws-sdk-bedrock/types.rb', line 9641

class InferenceConfiguration < Struct.new(
  :max_tokens,
  :temperature,
  :top_p,
  :stop_sequences)
  SENSITIVE = []
  include Aws::Structure
end