Skip to content

Commit fd8ca90

Browse files
author
awstools
committed
feat(client-sagemaker): Amazon Sagemaker Autopilot now supports Text Generation jobs.
1 parent 0bc9a39 commit fd8ca90

14 files changed

+851
-551
lines changed

clients/client-sagemaker/src/commands/CreateAutoMLJobCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export interface CreateAutoMLJobCommandOutput extends CreateAutoMLJobResponse, _
4343
* <p>
4444
* <code>CreateAutoMLJobV2</code> can manage tabular problem types identical to those of
4545
* its previous version <code>CreateAutoMLJob</code>, as well as time-series forecasting,
46-
* and non-tabular problem types such as image or text classification.</p>
46+
* non-tabular problem types such as image or text classification, and text generation
47+
* (LLMs fine-tuning).</p>
4748
* <p>Find guidelines about how to migrate a <code>CreateAutoMLJob</code> to
4849
* <code>CreateAutoMLJobV2</code> in <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development-create-experiment-api.html#autopilot-create-experiment-api-migrate-v1-v2">Migrate a CreateAutoMLJob to CreateAutoMLJobV2</a>.</p>
4950
* </note>

clients/client-sagemaker/src/commands/CreateAutoMLJobV2Command.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export interface CreateAutoMLJobV2CommandOutput extends CreateAutoMLJobV2Respons
4545
* <p>
4646
* <code>CreateAutoMLJobV2</code> can manage tabular problem types identical to those of
4747
* its previous version <code>CreateAutoMLJob</code>, as well as time-series forecasting,
48-
* and non-tabular problem types such as image or text classification.</p>
48+
* non-tabular problem types such as image or text classification, and text generation
49+
* (LLMs fine-tuning).</p>
4950
* <p>Find guidelines about how to migrate a <code>CreateAutoMLJob</code> to
5051
* <code>CreateAutoMLJobV2</code> in <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development-create-experiment-api.html#autopilot-create-experiment-api-migrate-v1-v2">Migrate a CreateAutoMLJob to CreateAutoMLJobV2</a>.</p>
5152
* </note>
@@ -152,6 +153,14 @@ export interface CreateAutoMLJobV2CommandOutput extends CreateAutoMLJobV2Respons
152153
* },
153154
* ],
154155
* },
156+
* TextGenerationJobConfig: { // TextGenerationJobConfig
157+
* CompletionCriteria: {
158+
* MaxCandidates: Number("int"),
159+
* MaxRuntimePerTrainingJobInSeconds: Number("int"),
160+
* MaxAutoMLJobRuntimeInSeconds: Number("int"),
161+
* },
162+
* BaseModelName: "STRING_VALUE",
163+
* },
155164
* },
156165
* RoleArn: "STRING_VALUE", // required
157166
* Tags: [ // TagList

clients/client-sagemaker/src/commands/CreateDataQualityJobDefinitionCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { CreateDataQualityJobDefinitionRequest } from "../models/models_0";
18-
import { CreateDataQualityJobDefinitionResponse } from "../models/models_1";
17+
import { CreateDataQualityJobDefinitionRequest, CreateDataQualityJobDefinitionResponse } from "../models/models_1";
1918
import {
2019
de_CreateDataQualityJobDefinitionCommand,
2120
se_CreateDataQualityJobDefinitionCommand,

clients/client-sagemaker/src/commands/DeleteContextCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
SMITHY_CONTEXT_KEY,
1515
} from "@smithy/types";
1616

17-
import { DeleteContextRequest, DeleteContextResponse } from "../models/models_1";
17+
import { DeleteContextRequest, DeleteContextResponse } from "../models/models_2";
1818
import { de_DeleteContextCommand, se_DeleteContextCommand } from "../protocols/Aws_json1_1";
1919
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
2020

clients/client-sagemaker/src/commands/DescribeAutoMLJobCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export interface DescribeAutoMLJobCommandOutput extends DescribeAutoMLJobRespons
163163
* // MetricName: "Accuracy" || "MSE" || "F1" || "F1macro" || "AUC" || "RMSE" || "MAE" || "R2" || "BalancedAccuracy" || "Precision" || "PrecisionMacro" || "Recall" || "RecallMacro" || "MAPE" || "MASE" || "WAPE" || "AverageWeightedQuantileLoss",
164164
* // Value: Number("float"),
165165
* // Set: "Train" || "Validation" || "Test",
166-
* // StandardMetricName: "Accuracy" || "MSE" || "F1" || "F1macro" || "AUC" || "RMSE" || "MAE" || "R2" || "BalancedAccuracy" || "Precision" || "PrecisionMacro" || "Recall" || "RecallMacro" || "LogLoss" || "InferenceLatency" || "MAPE" || "MASE" || "WAPE" || "AverageWeightedQuantileLoss",
166+
* // StandardMetricName: "Accuracy" || "MSE" || "F1" || "F1macro" || "AUC" || "RMSE" || "MAE" || "R2" || "BalancedAccuracy" || "Precision" || "PrecisionMacro" || "Recall" || "RecallMacro" || "LogLoss" || "InferenceLatency" || "MAPE" || "MASE" || "WAPE" || "AverageWeightedQuantileLoss" || "Rouge1" || "Rouge2" || "RougeL" || "RougeLSum" || "Perplexity" || "ValidationLoss" || "TrainingLoss",
167167
* // },
168168
* // ],
169169
* // },

clients/client-sagemaker/src/commands/DescribeAutoMLJobV2Command.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ export interface DescribeAutoMLJobV2CommandOutput extends DescribeAutoMLJobV2Res
149149
* // },
150150
* // ],
151151
* // },
152+
* // TextGenerationJobConfig: { // TextGenerationJobConfig
153+
* // CompletionCriteria: {
154+
* // MaxCandidates: Number("int"),
155+
* // MaxRuntimePerTrainingJobInSeconds: Number("int"),
156+
* // MaxAutoMLJobRuntimeInSeconds: Number("int"),
157+
* // },
158+
* // BaseModelName: "STRING_VALUE",
159+
* // },
152160
* // },
153161
* // CreationTime: new Date("TIMESTAMP"), // required
154162
* // EndTime: new Date("TIMESTAMP"),
@@ -200,7 +208,7 @@ export interface DescribeAutoMLJobV2CommandOutput extends DescribeAutoMLJobV2Res
200208
* // MetricName: "Accuracy" || "MSE" || "F1" || "F1macro" || "AUC" || "RMSE" || "MAE" || "R2" || "BalancedAccuracy" || "Precision" || "PrecisionMacro" || "Recall" || "RecallMacro" || "MAPE" || "MASE" || "WAPE" || "AverageWeightedQuantileLoss",
201209
* // Value: Number("float"),
202210
* // Set: "Train" || "Validation" || "Test",
203-
* // StandardMetricName: "Accuracy" || "MSE" || "F1" || "F1macro" || "AUC" || "RMSE" || "MAE" || "R2" || "BalancedAccuracy" || "Precision" || "PrecisionMacro" || "Recall" || "RecallMacro" || "LogLoss" || "InferenceLatency" || "MAPE" || "MASE" || "WAPE" || "AverageWeightedQuantileLoss",
211+
* // StandardMetricName: "Accuracy" || "MSE" || "F1" || "F1macro" || "AUC" || "RMSE" || "MAE" || "R2" || "BalancedAccuracy" || "Precision" || "PrecisionMacro" || "Recall" || "RecallMacro" || "LogLoss" || "InferenceLatency" || "MAPE" || "MASE" || "WAPE" || "AverageWeightedQuantileLoss" || "Rouge1" || "Rouge2" || "RougeL" || "RougeLSum" || "Perplexity" || "ValidationLoss" || "TrainingLoss",
204212
* // },
205213
* // ],
206214
* // },
@@ -248,18 +256,17 @@ export interface DescribeAutoMLJobV2CommandOutput extends DescribeAutoMLJobV2Res
248256
* // AutoMLJobObjective: {
249257
* // MetricName: "Accuracy" || "MSE" || "F1" || "F1macro" || "AUC" || "RMSE" || "MAE" || "R2" || "BalancedAccuracy" || "Precision" || "PrecisionMacro" || "Recall" || "RecallMacro" || "MAPE" || "MASE" || "WAPE" || "AverageWeightedQuantileLoss", // required
250258
* // },
251-
* // CompletionCriteria: {
252-
* // MaxCandidates: Number("int"),
253-
* // MaxRuntimePerTrainingJobInSeconds: Number("int"),
254-
* // MaxAutoMLJobRuntimeInSeconds: Number("int"),
255-
* // },
259+
* // CompletionCriteria: "<AutoMLJobCompletionCriteria>",
256260
* // AutoMLProblemTypeResolvedAttributes: { // AutoMLProblemTypeResolvedAttributes Union: only one key present
257261
* // TabularResolvedAttributes: { // TabularResolvedAttributes
258262
* // ProblemType: "BinaryClassification" || "MulticlassClassification" || "Regression",
259263
* // },
264+
* // TextGenerationResolvedAttributes: { // TextGenerationResolvedAttributes
265+
* // BaseModelName: "STRING_VALUE",
266+
* // },
260267
* // },
261268
* // },
262-
* // AutoMLProblemTypeConfigName: "ImageClassification" || "TextClassification" || "Tabular" || "TimeSeriesForecasting",
269+
* // AutoMLProblemTypeConfigName: "ImageClassification" || "TextClassification" || "Tabular" || "TimeSeriesForecasting" || "TextGeneration",
263270
* // };
264271
*
265272
* ```

clients/client-sagemaker/src/commands/ListCandidatesForAutoMLJobCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export interface ListCandidatesForAutoMLJobCommandOutput extends ListCandidatesF
9898
* // MetricName: "Accuracy" || "MSE" || "F1" || "F1macro" || "AUC" || "RMSE" || "MAE" || "R2" || "BalancedAccuracy" || "Precision" || "PrecisionMacro" || "Recall" || "RecallMacro" || "MAPE" || "MASE" || "WAPE" || "AverageWeightedQuantileLoss",
9999
* // Value: Number("float"),
100100
* // Set: "Train" || "Validation" || "Test",
101-
* // StandardMetricName: "Accuracy" || "MSE" || "F1" || "F1macro" || "AUC" || "RMSE" || "MAE" || "R2" || "BalancedAccuracy" || "Precision" || "PrecisionMacro" || "Recall" || "RecallMacro" || "LogLoss" || "InferenceLatency" || "MAPE" || "MASE" || "WAPE" || "AverageWeightedQuantileLoss",
101+
* // StandardMetricName: "Accuracy" || "MSE" || "F1" || "F1macro" || "AUC" || "RMSE" || "MAE" || "R2" || "BalancedAccuracy" || "Precision" || "PrecisionMacro" || "Recall" || "RecallMacro" || "LogLoss" || "InferenceLatency" || "MAPE" || "MASE" || "WAPE" || "AverageWeightedQuantileLoss" || "Rouge1" || "Rouge2" || "RougeL" || "RougeLSum" || "Perplexity" || "ValidationLoss" || "TrainingLoss",
102102
* // },
103103
* // ],
104104
* // },

0 commit comments

Comments
 (0)