Class: Aws::SageMaker::Types::TextGenerationJobConfig

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

Overview

The collection of settings used by an AutoML job V2 for the text generation problem type.

The text generation models that support fine-tuning in Autopilot are currently accessible exclusively in regions supported by Canvas. Refer to the documentation of Canvas for the full list of its supported Regions.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#base_model_nameString

The name of the base model to fine-tune. Autopilot supports fine-tuning a variety of large language models. For information on the list of supported models, see Text generation models supporting fine-tuning in Autopilot. If no BaseModelName is provided, the default model used is Falcon7BInstruct.

Returns:

  • (String)


40319
40320
40321
40322
40323
40324
40325
40326
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 40319

class TextGenerationJobConfig < Struct.new(
  :completion_criteria,
  :base_model_name,
  :text_generation_hyper_parameters,
  :model_access_config)
  SENSITIVE = []
  include Aws::Structure
end

#completion_criteriaTypes::AutoMLJobCompletionCriteria

How long a fine-tuning job is allowed to run. For TextGenerationJobConfig problem types, the MaxRuntimePerTrainingJobInSeconds attribute of AutoMLJobCompletionCriteria defaults to 72h (259200s).



40319
40320
40321
40322
40323
40324
40325
40326
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 40319

class TextGenerationJobConfig < Struct.new(
  :completion_criteria,
  :base_model_name,
  :text_generation_hyper_parameters,
  :model_access_config)
  SENSITIVE = []
  include Aws::Structure
end

#model_access_configTypes::ModelAccessConfig

The access configuration file to control access to the ML model. You can explicitly accept the model end-user license agreement (EULA) within the ModelAccessConfig.



40319
40320
40321
40322
40323
40324
40325
40326
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 40319

class TextGenerationJobConfig < Struct.new(
  :completion_criteria,
  :base_model_name,
  :text_generation_hyper_parameters,
  :model_access_config)
  SENSITIVE = []
  include Aws::Structure
end

#text_generation_hyper_parametersHash<String,String>

The hyperparameters used to configure and optimize the learning process of the base model. You can set any combination of the following hyperparameters for all base models. For more information on each supported hyperparameter, see Optimize the learning process of your text generation models with hyperparameters.

  • "epochCount": The number of times the model goes through the entire training dataset. Its value should be a string containing an integer value within the range of "1" to "10".

  • "batchSize": The number of data samples used in each iteration of training. Its value should be a string containing an integer value within the range of "1" to "64".

  • "learningRate": The step size at which a model's parameters are updated during training. Its value should be a string containing a floating-point value within the range of "0" to "1".

  • "learningRateWarmupSteps": The number of training steps during which the learning rate gradually increases before reaching its target or maximum value. Its value should be a string containing an integer value within the range of "0" to "250".

Here is an example where all four hyperparameters are configured.

\{ "epochCount":"5", "learningRate":"0.5", "batchSize": "32", "learningRateWarmupSteps": "10" \}

Returns:

  • (Hash<String,String>)


40319
40320
40321
40322
40323
40324
40325
40326
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 40319

class TextGenerationJobConfig < Struct.new(
  :completion_criteria,
  :base_model_name,
  :text_generation_hyper_parameters,
  :model_access_config)
  SENSITIVE = []
  include Aws::Structure
end