aws-sdk-sagemaker 1.398.0 → 1.399.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sagemaker/client.rb +302 -1
- data/lib/aws-sdk-sagemaker/client_api.rb +168 -0
- data/lib/aws-sdk-sagemaker/types.rb +419 -0
- data/lib/aws-sdk-sagemaker.rb +1 -1
- data/sig/client.rbs +80 -0
- data/sig/types.rbs +117 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 798e39c753530547e8f43a2923462e8c4073939fc3ba9635eeb499ad7a3eabbb
|
|
4
|
+
data.tar.gz: 525f9f3187d11c6706745bc8c003ec1568f75fe6df0e96de105ab2d325fb8bc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fefb4657773dd10c0e053c5ff7063f3a527878f061d48b0c24b5d6be2737bb0377e8143f393b5e725a200a5888aa517fa357bd685fd92f99c1063710db1ec600
|
|
7
|
+
data.tar.gz: b01fc522f48284c7e17ad2f5db9568f409692ec455222268bed4872c80a4762d1e24caee920599a592bcd7606e81fd19207a7162834f493b75f13ee6377a8044
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.399.0 (2026-10-12)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon SageMaker Training Session is a managed service for training on shared GPU infrastructure. It provides full lifecycle management of training sessions and exposes low-level primitive APIs for operations like forward-backward passes, optimizer steps, and state management.
|
|
8
|
+
|
|
4
9
|
1.398.0 (2026-10-01)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.399.0
|
|
@@ -11326,6 +11326,108 @@ module Aws::SageMaker
|
|
|
11326
11326
|
req.send_request(options)
|
|
11327
11327
|
end
|
|
11328
11328
|
|
|
11329
|
+
# Creates a training session in Amazon SageMaker. A training session
|
|
11330
|
+
# provisions compute resources for fine-tuning a foundation model using
|
|
11331
|
+
# Low-Rank Adaptation (LoRA). After the session is created, you can
|
|
11332
|
+
# submit training operations and sample inference requests through the
|
|
11333
|
+
# Amazon SageMaker Training Session Runtime API.
|
|
11334
|
+
#
|
|
11335
|
+
# The following operations are related to `CreateTrainingSession`:
|
|
11336
|
+
#
|
|
11337
|
+
# * `DescribeTrainingSession`
|
|
11338
|
+
#
|
|
11339
|
+
# * `ListTrainingSessions`
|
|
11340
|
+
#
|
|
11341
|
+
# * `StopTrainingSession`
|
|
11342
|
+
#
|
|
11343
|
+
# * `DeleteTrainingSession`
|
|
11344
|
+
#
|
|
11345
|
+
# @option params [required, String] :training_session_name
|
|
11346
|
+
# The name of the training session.
|
|
11347
|
+
#
|
|
11348
|
+
# @option params [String] :model_package_group_arn
|
|
11349
|
+
# The Amazon Resource Name (ARN) of the model package group where
|
|
11350
|
+
# checkpoints and fine-tuned model artifacts are published.
|
|
11351
|
+
#
|
|
11352
|
+
# @option params [required, Types::LoraConfig] :lora_config
|
|
11353
|
+
# The Low-Rank Adaptation (LoRA) configuration for the training session,
|
|
11354
|
+
# including the rank and alpha parameters.
|
|
11355
|
+
#
|
|
11356
|
+
# @option params [required, String] :role_arn
|
|
11357
|
+
# The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker
|
|
11358
|
+
# assumes to access resources on your behalf. The role must have
|
|
11359
|
+
# permissions to access the output S3 path and model package group.
|
|
11360
|
+
#
|
|
11361
|
+
# @option params [Types::VpcConfig] :vpc_config
|
|
11362
|
+
# The Virtual Private Cloud (VPC) configuration for the training
|
|
11363
|
+
# session. Specify subnets and security groups to run the training
|
|
11364
|
+
# session in your VPC.
|
|
11365
|
+
#
|
|
11366
|
+
# @option params [required, Types::TrainingSessionModelConfig] :model_config
|
|
11367
|
+
# The configuration for the base model, including the model ARN and
|
|
11368
|
+
# end-user license agreement (EULA) acceptance.
|
|
11369
|
+
#
|
|
11370
|
+
# @option params [required, Types::TrainingSessionOutputConfig] :output_config
|
|
11371
|
+
# The output configuration for the training session, including the S3
|
|
11372
|
+
# location and optional encryption settings.
|
|
11373
|
+
#
|
|
11374
|
+
# @option params [Array<Types::Tag>] :tags
|
|
11375
|
+
# An array of key-value pairs to apply to the training session as tags.
|
|
11376
|
+
# For more information, see [Tagging Amazon Web Services Resources][1].
|
|
11377
|
+
#
|
|
11378
|
+
#
|
|
11379
|
+
#
|
|
11380
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
|
|
11381
|
+
#
|
|
11382
|
+
# @return [Types::CreateTrainingSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
11383
|
+
#
|
|
11384
|
+
# * {Types::CreateTrainingSessionResponse#training_session_arn #training_session_arn} => String
|
|
11385
|
+
#
|
|
11386
|
+
# @example Request syntax with placeholder values
|
|
11387
|
+
#
|
|
11388
|
+
# resp = client.create_training_session({
|
|
11389
|
+
# training_session_name: "TrainingSessionName", # required
|
|
11390
|
+
# model_package_group_arn: "ModelPackageGroupArn",
|
|
11391
|
+
# lora_config: { # required
|
|
11392
|
+
# rank: 1, # required
|
|
11393
|
+
# alpha: 1, # required
|
|
11394
|
+
# },
|
|
11395
|
+
# role_arn: "RoleArn", # required
|
|
11396
|
+
# vpc_config: {
|
|
11397
|
+
# security_group_ids: ["SecurityGroupId"], # required
|
|
11398
|
+
# subnets: ["SubnetId"], # required
|
|
11399
|
+
# },
|
|
11400
|
+
# model_config: { # required
|
|
11401
|
+
# base_model_arn: "BaseModelArn", # required
|
|
11402
|
+
# accept_eula: false,
|
|
11403
|
+
# },
|
|
11404
|
+
# output_config: { # required
|
|
11405
|
+
# s3_location: { # required
|
|
11406
|
+
# path: "OutputS3Path", # required
|
|
11407
|
+
# kms_key_arn: "CustomerKmsKeyArn",
|
|
11408
|
+
# },
|
|
11409
|
+
# },
|
|
11410
|
+
# tags: [
|
|
11411
|
+
# {
|
|
11412
|
+
# key: "TagKey", # required
|
|
11413
|
+
# value: "TagValue", # required
|
|
11414
|
+
# },
|
|
11415
|
+
# ],
|
|
11416
|
+
# })
|
|
11417
|
+
#
|
|
11418
|
+
# @example Response structure
|
|
11419
|
+
#
|
|
11420
|
+
# resp.training_session_arn #=> String
|
|
11421
|
+
#
|
|
11422
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrainingSession AWS API Documentation
|
|
11423
|
+
#
|
|
11424
|
+
# @overload create_training_session(params = {})
|
|
11425
|
+
# @param [Hash] params ({})
|
|
11426
|
+
def create_training_session(params = {}, options = {})
|
|
11427
|
+
req = build_request(:create_training_session, params)
|
|
11428
|
+
req.send_request(options)
|
|
11429
|
+
end
|
|
11430
|
+
|
|
11329
11431
|
# Starts a transform job. A transform job uses a trained model to get
|
|
11330
11432
|
# inferences on a dataset and saves these results to an Amazon S3
|
|
11331
11433
|
# location that you specify.
|
|
@@ -13892,6 +13994,38 @@ module Aws::SageMaker
|
|
|
13892
13994
|
req.send_request(options)
|
|
13893
13995
|
end
|
|
13894
13996
|
|
|
13997
|
+
# Deletes a training session. You must stop a running session before
|
|
13998
|
+
# deleting it. Use the `StopTrainingSession` operation to stop the
|
|
13999
|
+
# session first.
|
|
14000
|
+
#
|
|
14001
|
+
# The following operations are related to `DeleteTrainingSession`:
|
|
14002
|
+
#
|
|
14003
|
+
# * `CreateTrainingSession`
|
|
14004
|
+
#
|
|
14005
|
+
# * `DescribeTrainingSession`
|
|
14006
|
+
#
|
|
14007
|
+
# * `StopTrainingSession`
|
|
14008
|
+
#
|
|
14009
|
+
# @option params [required, String] :training_session_name
|
|
14010
|
+
# The name of the training session to delete.
|
|
14011
|
+
#
|
|
14012
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
14013
|
+
#
|
|
14014
|
+
# @example Request syntax with placeholder values
|
|
14015
|
+
#
|
|
14016
|
+
# resp = client.delete_training_session({
|
|
14017
|
+
# training_session_name: "TrainingSessionName", # required
|
|
14018
|
+
# })
|
|
14019
|
+
#
|
|
14020
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTrainingSession AWS API Documentation
|
|
14021
|
+
#
|
|
14022
|
+
# @overload delete_training_session(params = {})
|
|
14023
|
+
# @param [Hash] params ({})
|
|
14024
|
+
def delete_training_session(params = {}, options = {})
|
|
14025
|
+
req = build_request(:delete_training_session, params)
|
|
14026
|
+
req.send_request(options)
|
|
14027
|
+
end
|
|
14028
|
+
|
|
13895
14029
|
# Deletes the specified trial. All trial components that make up the
|
|
13896
14030
|
# trial must be deleted first. Use the [DescribeTrialComponent][1] API
|
|
13897
14031
|
# to get the list of trial components.
|
|
@@ -20776,6 +20910,71 @@ module Aws::SageMaker
|
|
|
20776
20910
|
req.send_request(options)
|
|
20777
20911
|
end
|
|
20778
20912
|
|
|
20913
|
+
# Retrieves detailed information about a training session, including its
|
|
20914
|
+
# current status, model configuration, Low-Rank Adaptation (LoRA)
|
|
20915
|
+
# parameters, and timestamps.
|
|
20916
|
+
#
|
|
20917
|
+
# The following operations are related to `DescribeTrainingSession`:
|
|
20918
|
+
#
|
|
20919
|
+
# * `CreateTrainingSession`
|
|
20920
|
+
#
|
|
20921
|
+
# * `ListTrainingSessions`
|
|
20922
|
+
#
|
|
20923
|
+
# * `StopTrainingSession`
|
|
20924
|
+
#
|
|
20925
|
+
# * `DeleteTrainingSession`
|
|
20926
|
+
#
|
|
20927
|
+
# @option params [required, String] :training_session_name
|
|
20928
|
+
# The name of the training session to describe.
|
|
20929
|
+
#
|
|
20930
|
+
# @return [Types::DescribeTrainingSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
20931
|
+
#
|
|
20932
|
+
# * {Types::DescribeTrainingSessionResponse#training_session_detail #training_session_detail} => Types::TrainingSessionDetail
|
|
20933
|
+
#
|
|
20934
|
+
# @example Request syntax with placeholder values
|
|
20935
|
+
#
|
|
20936
|
+
# resp = client.describe_training_session({
|
|
20937
|
+
# training_session_name: "TrainingSessionName", # required
|
|
20938
|
+
# })
|
|
20939
|
+
#
|
|
20940
|
+
# @example Response structure
|
|
20941
|
+
#
|
|
20942
|
+
# resp.training_session_detail.training_session_arn #=> String
|
|
20943
|
+
# resp.training_session_detail.training_session_name #=> String
|
|
20944
|
+
# resp.training_session_detail.training_session_status #=> String, one of "Created", "Blocked", "Running", "Failed", "Scheduled", "Stopping", "Stopped", "Expired", "Deleting", "DeletionFailed"
|
|
20945
|
+
# resp.training_session_detail.model_package_group_arn #=> String
|
|
20946
|
+
# resp.training_session_detail.creation_time #=> Time
|
|
20947
|
+
# resp.training_session_detail.last_modified_time #=> Time
|
|
20948
|
+
# resp.training_session_detail.end_time #=> Time
|
|
20949
|
+
# resp.training_session_detail.error_details #=> String
|
|
20950
|
+
# resp.training_session_detail.last_received_sequence_number #=> Integer
|
|
20951
|
+
# resp.training_session_detail.billable_token_usage.prefill_token_count #=> Integer
|
|
20952
|
+
# resp.training_session_detail.billable_token_usage.sample_token_count #=> Integer
|
|
20953
|
+
# resp.training_session_detail.billable_token_usage.training_token_count #=> Integer
|
|
20954
|
+
# resp.training_session_detail.vpc_config.security_group_ids #=> Array
|
|
20955
|
+
# resp.training_session_detail.vpc_config.security_group_ids[0] #=> String
|
|
20956
|
+
# resp.training_session_detail.vpc_config.subnets #=> Array
|
|
20957
|
+
# resp.training_session_detail.vpc_config.subnets[0] #=> String
|
|
20958
|
+
# resp.training_session_detail.role_arn #=> String
|
|
20959
|
+
# resp.training_session_detail.lora_config.rank #=> Integer
|
|
20960
|
+
# resp.training_session_detail.lora_config.alpha #=> Integer
|
|
20961
|
+
# resp.training_session_detail.model_config.base_model_arn #=> String
|
|
20962
|
+
# resp.training_session_detail.model_config.accept_eula #=> Boolean
|
|
20963
|
+
# resp.training_session_detail.output_config.s3_location.path #=> String
|
|
20964
|
+
# resp.training_session_detail.output_config.s3_location.kms_key_arn #=> String
|
|
20965
|
+
# resp.training_session_detail.tags #=> Array
|
|
20966
|
+
# resp.training_session_detail.tags[0].key #=> String
|
|
20967
|
+
# resp.training_session_detail.tags[0].value #=> String
|
|
20968
|
+
#
|
|
20969
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingSession AWS API Documentation
|
|
20970
|
+
#
|
|
20971
|
+
# @overload describe_training_session(params = {})
|
|
20972
|
+
# @param [Hash] params ({})
|
|
20973
|
+
def describe_training_session(params = {}, options = {})
|
|
20974
|
+
req = build_request(:describe_training_session, params)
|
|
20975
|
+
req.send_request(options)
|
|
20976
|
+
end
|
|
20977
|
+
|
|
20779
20978
|
# Returns information about a transform job.
|
|
20780
20979
|
#
|
|
20781
20980
|
# @option params [required, String] :transform_job_name
|
|
@@ -28354,6 +28553,75 @@ module Aws::SageMaker
|
|
|
28354
28553
|
req.send_request(options)
|
|
28355
28554
|
end
|
|
28356
28555
|
|
|
28556
|
+
# Lists training sessions in your account. You can filter results by
|
|
28557
|
+
# creation time, name, and status. The operation paginates results. To
|
|
28558
|
+
# retrieve additional results, use the `NextToken` parameter.
|
|
28559
|
+
#
|
|
28560
|
+
# The following operations are related to `ListTrainingSessions`:
|
|
28561
|
+
#
|
|
28562
|
+
# * `CreateTrainingSession`
|
|
28563
|
+
#
|
|
28564
|
+
# * `DescribeTrainingSession`
|
|
28565
|
+
#
|
|
28566
|
+
# @option params [String] :next_token
|
|
28567
|
+
# If the response was truncated, use the token returned in the previous
|
|
28568
|
+
# response to retrieve the next page of results.
|
|
28569
|
+
#
|
|
28570
|
+
# @option params [Integer] :max_results
|
|
28571
|
+
# The maximum number of training sessions to return in the response.
|
|
28572
|
+
#
|
|
28573
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
|
28574
|
+
# A filter that returns only training sessions created after the
|
|
28575
|
+
# specified time.
|
|
28576
|
+
#
|
|
28577
|
+
# @option params [Time,DateTime,Date,Integer,String] :creation_time_before
|
|
28578
|
+
# A filter that returns only training sessions created before the
|
|
28579
|
+
# specified time.
|
|
28580
|
+
#
|
|
28581
|
+
# @option params [String] :name_contains
|
|
28582
|
+
# A string in the training session name to filter results. Only sessions
|
|
28583
|
+
# whose name contains the specified string are returned.
|
|
28584
|
+
#
|
|
28585
|
+
# @option params [String] :status_equals
|
|
28586
|
+
# A filter that returns only training sessions with the specified
|
|
28587
|
+
# status.
|
|
28588
|
+
#
|
|
28589
|
+
# @return [Types::ListTrainingSessionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
28590
|
+
#
|
|
28591
|
+
# * {Types::ListTrainingSessionsResponse#next_token #next_token} => String
|
|
28592
|
+
# * {Types::ListTrainingSessionsResponse#training_session_summaries #training_session_summaries} => Array<Types::TrainingSessionSummary>
|
|
28593
|
+
#
|
|
28594
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
28595
|
+
#
|
|
28596
|
+
# @example Request syntax with placeholder values
|
|
28597
|
+
#
|
|
28598
|
+
# resp = client.list_training_sessions({
|
|
28599
|
+
# next_token: "NextToken",
|
|
28600
|
+
# max_results: 1,
|
|
28601
|
+
# creation_time_after: Time.now,
|
|
28602
|
+
# creation_time_before: Time.now,
|
|
28603
|
+
# name_contains: "NameContains",
|
|
28604
|
+
# status_equals: "Created", # accepts Created, Blocked, Running, Failed, Scheduled, Stopping, Stopped, Expired, Deleting, DeletionFailed
|
|
28605
|
+
# })
|
|
28606
|
+
#
|
|
28607
|
+
# @example Response structure
|
|
28608
|
+
#
|
|
28609
|
+
# resp.next_token #=> String
|
|
28610
|
+
# resp.training_session_summaries #=> Array
|
|
28611
|
+
# resp.training_session_summaries[0].training_session_arn #=> String
|
|
28612
|
+
# resp.training_session_summaries[0].training_session_status #=> String, one of "Created", "Blocked", "Running", "Failed", "Scheduled", "Stopping", "Stopped", "Expired", "Deleting", "DeletionFailed"
|
|
28613
|
+
# resp.training_session_summaries[0].creation_time #=> Time
|
|
28614
|
+
# resp.training_session_summaries[0].last_modified_time #=> Time
|
|
28615
|
+
#
|
|
28616
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingSessions AWS API Documentation
|
|
28617
|
+
#
|
|
28618
|
+
# @overload list_training_sessions(params = {})
|
|
28619
|
+
# @param [Hash] params ({})
|
|
28620
|
+
def list_training_sessions(params = {}, options = {})
|
|
28621
|
+
req = build_request(:list_training_sessions, params)
|
|
28622
|
+
req.send_request(options)
|
|
28623
|
+
end
|
|
28624
|
+
|
|
28357
28625
|
# Lists transform jobs.
|
|
28358
28626
|
#
|
|
28359
28627
|
# @option params [Time,DateTime,Date,Integer,String] :creation_time_after
|
|
@@ -30389,6 +30657,39 @@ module Aws::SageMaker
|
|
|
30389
30657
|
req.send_request(options)
|
|
30390
30658
|
end
|
|
30391
30659
|
|
|
30660
|
+
# Stops a running training session and sets the session status to
|
|
30661
|
+
# `Stopping`. After the session stops, the status changes to `Stopped`.
|
|
30662
|
+
# To delete a stopped session, use the `DeleteTrainingSession`
|
|
30663
|
+
# operation.
|
|
30664
|
+
#
|
|
30665
|
+
# The following operations are related to `StopTrainingSession`:
|
|
30666
|
+
#
|
|
30667
|
+
# * `CreateTrainingSession`
|
|
30668
|
+
#
|
|
30669
|
+
# * `DescribeTrainingSession`
|
|
30670
|
+
#
|
|
30671
|
+
# * `DeleteTrainingSession`
|
|
30672
|
+
#
|
|
30673
|
+
# @option params [required, String] :training_session_name
|
|
30674
|
+
# The name of the training session to stop.
|
|
30675
|
+
#
|
|
30676
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
30677
|
+
#
|
|
30678
|
+
# @example Request syntax with placeholder values
|
|
30679
|
+
#
|
|
30680
|
+
# resp = client.stop_training_session({
|
|
30681
|
+
# training_session_name: "TrainingSessionName", # required
|
|
30682
|
+
# })
|
|
30683
|
+
#
|
|
30684
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingSession AWS API Documentation
|
|
30685
|
+
#
|
|
30686
|
+
# @overload stop_training_session(params = {})
|
|
30687
|
+
# @param [Hash] params ({})
|
|
30688
|
+
def stop_training_session(params = {}, options = {})
|
|
30689
|
+
req = build_request(:stop_training_session, params)
|
|
30690
|
+
req.send_request(options)
|
|
30691
|
+
end
|
|
30692
|
+
|
|
30392
30693
|
# Stops a batch transform job.
|
|
30393
30694
|
#
|
|
30394
30695
|
# When Amazon SageMaker receives a `StopTransformJob` request, the
|
|
@@ -34787,7 +35088,7 @@ module Aws::SageMaker
|
|
|
34787
35088
|
tracer: tracer
|
|
34788
35089
|
)
|
|
34789
35090
|
context[:gem_name] = 'aws-sdk-sagemaker'
|
|
34790
|
-
context[:gem_version] = '1.
|
|
35091
|
+
context[:gem_version] = '1.399.0'
|
|
34791
35092
|
Seahorse::Client::Request.new(handlers, context)
|
|
34792
35093
|
end
|
|
34793
35094
|
|