import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateModelCustomizationJobRequest, CreateModelCustomizationJobResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateModelCustomizationJobCommand}. */ export interface CreateModelCustomizationJobCommandInput extends CreateModelCustomizationJobRequest { } /** * @public * * The output of {@link CreateModelCustomizationJobCommand}. */ export interface CreateModelCustomizationJobCommandOutput extends CreateModelCustomizationJobResponse, __MetadataBearer { } declare const CreateModelCustomizationJobCommand_base: { new (input: CreateModelCustomizationJobCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateModelCustomizationJobCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates 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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { BedrockClient, CreateModelCustomizationJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import * // const { BedrockClient, CreateModelCustomizationJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import * // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock"; * const config = {}; // type is BedrockClientConfig * const client = new BedrockClient(config); * const input = { // CreateModelCustomizationJobRequest * jobName: "STRING_VALUE", // required * customModelName: "STRING_VALUE", // required * roleArn: "STRING_VALUE", // required * clientRequestToken: "STRING_VALUE", * baseModelIdentifier: "STRING_VALUE", // required * customizationType: "FINE_TUNING" || "CONTINUED_PRE_TRAINING" || "DISTILLATION" || "REINFORCEMENT_FINE_TUNING" || "IMPORTED", * customModelKmsKeyId: "STRING_VALUE", * jobTags: [ // TagList * { // Tag * key: "STRING_VALUE", // required * value: "STRING_VALUE", // required * }, * ], * customModelTags: [ * { * key: "STRING_VALUE", // required * value: "STRING_VALUE", // required * }, * ], * trainingDataConfig: { // TrainingDataConfig * s3Uri: "STRING_VALUE", * invocationLogsConfig: { // InvocationLogsConfig * usePromptResponse: true || false, * invocationLogSource: { // InvocationLogSource Union: only one key present * s3Uri: "STRING_VALUE", * }, * requestMetadataFilters: { // RequestMetadataFilters Union: only one key present * equals: { // RequestMetadataMap * "": "STRING_VALUE", * }, * notEquals: { * "": "STRING_VALUE", * }, * andAll: [ // RequestMetadataFiltersList * { // RequestMetadataBaseFilters * equals: { * "": "STRING_VALUE", * }, * notEquals: { * "": "STRING_VALUE", * }, * }, * ], * orAll: [ * { * equals: { * "": "STRING_VALUE", * }, * notEquals: "", * }, * ], * }, * }, * }, * validationDataConfig: { // ValidationDataConfig * validators: [ // Validators // required * { // Validator * s3Uri: "STRING_VALUE", // required * }, * ], * }, * outputDataConfig: { // OutputDataConfig * s3Uri: "STRING_VALUE", // required * }, * hyperParameters: { // ModelCustomizationHyperParameters * "": "STRING_VALUE", * }, * vpcConfig: { // VpcConfig * subnetIds: [ // SubnetIds // required * "STRING_VALUE", * ], * securityGroupIds: [ // SecurityGroupIds // required * "STRING_VALUE", * ], * }, * customizationConfig: { // CustomizationConfig Union: only one key present * distillationConfig: { // DistillationConfig * teacherModelConfig: { // TeacherModelConfig * teacherModelIdentifier: "STRING_VALUE", // required * maxResponseLengthForInference: Number("int"), * }, * }, * rftConfig: { // RFTConfig * graderConfig: { // GraderConfig Union: only one key present * lambdaGrader: { // LambdaGraderConfig * lambdaArn: "STRING_VALUE", // required * }, * }, * hyperParameters: { // RFTHyperParameters * epochCount: Number("int"), * batchSize: Number("int"), * learningRate: Number("float"), * maxPromptLength: Number("int"), * trainingSamplePerPrompt: Number("int"), * inferenceMaxTokens: Number("int"), * reasoningEffort: "low" || "medium" || "high", * evalInterval: Number("int"), * }, * }, * }, * }; * const command = new CreateModelCustomizationJobCommand(input); * const response = await client.send(command); * // { // CreateModelCustomizationJobResponse * // jobArn: "STRING_VALUE", // required * // }; * * ``` * * @param CreateModelCustomizationJobCommandInput - {@link CreateModelCustomizationJobCommandInput} * @returns {@link CreateModelCustomizationJobCommandOutput} * @see {@link CreateModelCustomizationJobCommandInput} for command's `input` shape. * @see {@link CreateModelCustomizationJobCommandOutput} for command's `response` shape. * @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

The request is denied because of missing access permissions.

* * @throws {@link ConflictException} (client fault) *

Error occurred because of a conflict while performing an operation.

* * @throws {@link InternalServerException} (server fault) *

An internal server error occurred. Retry your request.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

The number of requests exceeds the service quota. Resubmit your request later.

* * @throws {@link ThrottlingException} (client fault) *

The number of requests exceeds the limit. Resubmit your request later.

* * @throws {@link TooManyTagsException} (client fault) *

The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.

* * @throws {@link ValidationException} (client fault) *

Input validation failed. Check your request parameters and retry the request.

* * @throws {@link BedrockServiceException} *

Base exception class for all service exceptions from Bedrock service.

* * * @public */ export declare class CreateModelCustomizationJobCommand extends CreateModelCustomizationJobCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateModelCustomizationJobRequest; output: CreateModelCustomizationJobResponse; }; sdk: { input: CreateModelCustomizationJobCommandInput; output: CreateModelCustomizationJobCommandOutput; }; }; }