Values.CreateModelCustomizationJobRequestSourceCreates a fine-tuning job to customize a base model. You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes. For information on the format of training and validation data, see Prepare the datasets. Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. To monitor a job, use the GetModelCustomizationJob operation to retrieve the job status. For more information, see Custom models in the Amazon Bedrock User Guide.
type nonrec t = {jobName : JobName.t;A name for the fine-tuning job.
*)customModelName : CustomModelName.t;A name for the resulting custom model.
*)roleArn : RoleArn.t;The Amazon Resource Name (ARN) of an IAM service role that Amazon Bedrock can assume to perform tasks on your behalf. For example, during model training, Amazon Bedrock needs your permission to read input data from an S3 bucket, write model artifacts to an S3 bucket. To pass this role to Amazon Bedrock, the caller of this API must have the iam:PassRole permission.
*)clientRequestToken : IdempotencyToken.t option;A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
*)baseModelIdentifier : BaseModelIdentifier.t;Name of the base model.
*)customizationType : CustomizationType.t option;The customization type.
*)customModelKmsKeyId : KmsKeyId.t option;The custom model is encrypted at rest using this key.
*)jobTags : TagList.t option;Tags to attach to the job.
*)customModelTags : TagList.t option;Tags to attach to the resulting custom model.
*)trainingDataConfig : TrainingDataConfig.t;Information about the training dataset.
*)validationDataConfig : ValidationDataConfig.t option;Information about the validation dataset.
*)outputDataConfig : OutputDataConfig.t;S3 location for the output data.
*)hyperParameters : ModelCustomizationHyperParameters.t option;Parameters related to tuning the model. For details on the format for different models, see Custom model hyperparameters.
*)vpcConfig : VpcConfig.t option;The configuration of the Virtual Private Cloud (VPC) that contains the resources that you're using for this job. For more information, see Protect your model customization jobs using a VPC.
*)customizationConfig : CustomizationConfig.t option;The customization configuration for the model customization job.
*)}val make :
?clientRequestToken:??? ->
?customizationType:??? ->
?customModelKmsKeyId:??? ->
?jobTags:??? ->
?customModelTags:??? ->
?validationDataConfig:??? ->
?hyperParameters:??? ->
?vpcConfig:??? ->
?customizationConfig:??? ->
jobName:JobName.t ->
customModelName:CustomModelName.t ->
roleArn:RoleArn.t ->
baseModelIdentifier:BaseModelIdentifier.t ->
trainingDataConfig:TrainingDataConfig.t ->
outputDataConfig:OutputDataConfig.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of (string * [> `String of TagKey.t ]) list ] list
| `Map of
([> `String of String_.t ] * [> `String of String_.t ]) list
| `String of JobName.t
| `Structure of
(string
* [> `List of
[> `String of SubnetId.t
| `Structure of (string * [> `String of S3Uri.t ]) list ]
list
| `String of S3Uri.t
| `Structure of
(string
* [> `Boolean of UsePromptResponse.t
| `Structure of
(string
* [> `Enum of string
| `Float of RFTLearningRate.t
| `Integer of Integer.t
| `List of
[> `Structure of
(string
* [> `Map of
([> `String of
RequestMetadataMapKeyString.t ]
* [> `String of
RequestMetadataMapValueString.t ])
list ])
list ]
list
| `Map of
([> `String of RequestMetadataMapKeyString.t ]
* [> `String of RequestMetadataMapValueString.t ])
list
| `String of S3Uri.t
| `Structure of
(string * [> `String of LambdaArn.t ]) list ])
list ])
list ])
list ])
list ]