aws-sdk-sagemakertrainingsessionruntime 1.0.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.
data/sig/types.rbs ADDED
@@ -0,0 +1,379 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::SageMakerTrainingSessionRuntime
9
+ module Types
10
+
11
+ class AdamParamsConfig
12
+ attr_accessor learning_rate: ::Float
13
+ attr_accessor beta1: ::Float
14
+ attr_accessor beta2: ::Float
15
+ attr_accessor eps: ::Float
16
+ attr_accessor weight_decay: ::Float
17
+ attr_accessor grad_clip_norm: ::Float
18
+ attr_accessor lora_plus_lr_ratio: ::Float
19
+ SENSITIVE: []
20
+ end
21
+
22
+ class ComputeLogprobsConfig
23
+ attr_accessor prompt: Types::ModelInput
24
+ attr_accessor model_package_arn: ::String
25
+ SENSITIVE: [:prompt]
26
+ end
27
+
28
+ class ComputeLogprobsResult
29
+ attr_accessor logprobs: ::Array[::Float]
30
+ SENSITIVE: []
31
+ end
32
+
33
+ class ConflictException
34
+ attr_accessor message: ::String
35
+ SENSITIVE: []
36
+ end
37
+
38
+ class Datum
39
+ attr_accessor model_input: Types::ModelInput
40
+ attr_accessor loss_fn_inputs: ::Hash[::String, Types::TensorData]
41
+ SENSITIVE: [:model_input]
42
+ end
43
+
44
+ class EncodedTextChunk
45
+ attr_accessor tokens: ::Array[::Integer]
46
+ attr_accessor type: ("encoded_text")
47
+ SENSITIVE: []
48
+ end
49
+
50
+ class ExecuteSamplingOperationInput
51
+ attr_accessor training_session_name: ::String
52
+ attr_accessor operation_config: Types::SampleOperationConfig
53
+ SENSITIVE: []
54
+ end
55
+
56
+ class ExecuteSamplingOperationOutput
57
+ attr_accessor operation_id: ::String
58
+ SENSITIVE: []
59
+ end
60
+
61
+ class ExecuteTrainingOperationInput
62
+ attr_accessor training_session_name: ::String
63
+ attr_accessor sequence_number: ::Integer
64
+ attr_accessor client_token: ::String
65
+ attr_accessor operation_config: Types::OperationConfig
66
+ SENSITIVE: []
67
+ end
68
+
69
+ class ExecuteTrainingOperationOutput
70
+ attr_accessor operation_id: ::String
71
+ SENSITIVE: []
72
+ end
73
+
74
+ class ForwardBackwardConfig
75
+ attr_accessor loss_fn_name: ("cross_entropy" | "importance_sampling" | "ppo" | "cispo")
76
+ attr_accessor datum_list: ::Array[Types::Datum]
77
+ attr_accessor loss_fn_config: untyped
78
+ SENSITIVE: []
79
+ end
80
+
81
+ class ForwardBackwardResult
82
+ attr_accessor loss_fn_output_type: ::String
83
+ attr_accessor loss_fn_outputs: ::Array[::Hash[::String, Types::TensorData]]
84
+ attr_accessor metrics: ::Hash[::String, ::Float]
85
+ attr_accessor token_usage: Types::TrainingTokenUsage
86
+ SENSITIVE: []
87
+ end
88
+
89
+ class ForwardConfig
90
+ attr_accessor loss_fn_name: ("cross_entropy" | "importance_sampling" | "ppo" | "cispo")
91
+ attr_accessor datum_list: ::Array[Types::Datum]
92
+ attr_accessor loss_fn_config: untyped
93
+ SENSITIVE: []
94
+ end
95
+
96
+ class ForwardResult
97
+ attr_accessor loss_fn_output_type: ::String
98
+ attr_accessor loss_fn_outputs: ::Array[::Hash[::String, Types::TensorData]]
99
+ attr_accessor metrics: ::Hash[::String, ::Float]
100
+ attr_accessor token_usage: Types::TrainingTokenUsage
101
+ SENSITIVE: []
102
+ end
103
+
104
+ class GetSamplingOperationResultInput
105
+ attr_accessor training_session_name: ::String
106
+ attr_accessor operation_id: ::String
107
+ SENSITIVE: []
108
+ end
109
+
110
+ class GetSamplingOperationResultOutput
111
+ attr_accessor status: ("Pending" | "InProgress" | "Completed" | "Failed" | "Skipped")
112
+ attr_accessor operation_result: Types::SampleOperationResult
113
+ attr_accessor error_details: ::String
114
+ SENSITIVE: []
115
+ end
116
+
117
+ class GetTrainingOperationResultInput
118
+ attr_accessor training_session_name: ::String
119
+ attr_accessor operation_id: ::String
120
+ SENSITIVE: []
121
+ end
122
+
123
+ class GetTrainingOperationResultOutput
124
+ attr_accessor status: ("Pending" | "InProgress" | "Completed" | "Failed" | "Skipped")
125
+ attr_accessor operation_result: Types::OperationResult
126
+ attr_accessor error_details: ::String
127
+ attr_accessor token_usage: Types::TrainingTokenUsage
128
+ SENSITIVE: []
129
+ end
130
+
131
+ class InternalServerException
132
+ attr_accessor message: ::String
133
+ SENSITIVE: []
134
+ end
135
+
136
+ class LoadStateConfig
137
+ attr_accessor model_package_arn: ::String
138
+ attr_accessor load_optimizer: bool
139
+ SENSITIVE: []
140
+ end
141
+
142
+ class LoadStateResult < Aws::EmptyStructure
143
+ end
144
+
145
+ class LoadWeightsForSamplingConfig
146
+ attr_accessor model_package_arn: ::String
147
+ SENSITIVE: []
148
+ end
149
+
150
+ class LoadWeightsForSamplingResult < Aws::EmptyStructure
151
+ end
152
+
153
+ class ModelInput
154
+ attr_accessor chunks: ::Array[Types::EncodedTextChunk]
155
+ SENSITIVE: []
156
+ end
157
+
158
+ class OperationConfig
159
+ attr_accessor forward: Types::ForwardConfig
160
+ attr_accessor forward_backward: Types::ForwardBackwardConfig
161
+ attr_accessor optimizer_step: Types::OptimizerStepConfig
162
+ attr_accessor save_weights: Types::SaveWeightsConfig
163
+ attr_accessor save_state: Types::SaveStateConfig
164
+ attr_accessor load_state: Types::LoadStateConfig
165
+ attr_accessor unknown: untyped
166
+ SENSITIVE: []
167
+
168
+ class Forward < OperationConfig
169
+ end
170
+ class ForwardBackward < OperationConfig
171
+ end
172
+ class OptimizerStep < OperationConfig
173
+ end
174
+ class SaveWeights < OperationConfig
175
+ end
176
+ class SaveState < OperationConfig
177
+ end
178
+ class LoadState < OperationConfig
179
+ end
180
+ class Unknown < OperationConfig
181
+ end
182
+ end
183
+
184
+ class OperationResult
185
+ attr_accessor forward: Types::ForwardResult
186
+ attr_accessor forward_backward: Types::ForwardBackwardResult
187
+ attr_accessor optimizer_step: Types::OptimizerStepResult
188
+ attr_accessor save_weights: Types::SaveWeightsResult
189
+ attr_accessor save_state: Types::SaveStateResult
190
+ attr_accessor load_state: Types::LoadStateResult
191
+ attr_accessor unknown: untyped
192
+ SENSITIVE: []
193
+
194
+ class Forward < OperationResult
195
+ end
196
+ class ForwardBackward < OperationResult
197
+ end
198
+ class OptimizerStep < OperationResult
199
+ end
200
+ class SaveWeights < OperationResult
201
+ end
202
+ class SaveState < OperationResult
203
+ end
204
+ class LoadState < OperationResult
205
+ end
206
+ class Unknown < OperationResult
207
+ end
208
+ end
209
+
210
+ class OptimizerStepConfig
211
+ attr_accessor adam_params_config: Types::AdamParamsConfig
212
+ SENSITIVE: []
213
+ end
214
+
215
+ class OptimizerStepResult
216
+ attr_accessor metrics: ::Hash[::String, ::Float]
217
+ SENSITIVE: []
218
+ end
219
+
220
+ class ResourceNotFoundException
221
+ attr_accessor message: ::String
222
+ SENSITIVE: []
223
+ end
224
+
225
+ class SampleConfig
226
+ attr_accessor prompt: Types::ModelInput
227
+ attr_accessor num_samples: ::Integer
228
+ attr_accessor sampling_params: Types::SamplingParams
229
+ attr_accessor include_prompt_logprobs: bool
230
+ attr_accessor topk_prompt_logprobs: ::Integer
231
+ attr_accessor model_package_arn: ::String
232
+ SENSITIVE: [:prompt]
233
+ end
234
+
235
+ class SampleOperationConfig
236
+ attr_accessor sample: Types::SampleConfig
237
+ attr_accessor compute_logprobs: Types::ComputeLogprobsConfig
238
+ attr_accessor load_weights_for_sampling: Types::LoadWeightsForSamplingConfig
239
+ attr_accessor unknown: untyped
240
+ SENSITIVE: []
241
+
242
+ class Sample < SampleOperationConfig
243
+ end
244
+ class ComputeLogprobs < SampleOperationConfig
245
+ end
246
+ class LoadWeightsForSampling < SampleOperationConfig
247
+ end
248
+ class Unknown < SampleOperationConfig
249
+ end
250
+ end
251
+
252
+ class SampleOperationResult
253
+ attr_accessor sample: Types::SampleResponse
254
+ attr_accessor compute_logprobs: Types::ComputeLogprobsResult
255
+ attr_accessor load_weights_for_sampling: Types::LoadWeightsForSamplingResult
256
+ attr_accessor unknown: untyped
257
+ SENSITIVE: [:sample]
258
+
259
+ class Sample < SampleOperationResult
260
+ end
261
+ class ComputeLogprobs < SampleOperationResult
262
+ end
263
+ class LoadWeightsForSampling < SampleOperationResult
264
+ end
265
+ class Unknown < SampleOperationResult
266
+ end
267
+ end
268
+
269
+ class SampleResponse
270
+ attr_accessor sequences: ::Array[Types::SampledSequence]
271
+ attr_accessor prompt_logprobs: ::Array[::Float]
272
+ attr_accessor topk_prompt_logprobs: ::Array[::Array[Types::TokenLogprob]]
273
+ SENSITIVE: []
274
+ end
275
+
276
+ class SampleTokenUsage
277
+ attr_accessor prefill: ::Integer
278
+ attr_accessor decode: ::Integer
279
+ SENSITIVE: []
280
+ end
281
+
282
+ class SampleTrainingSessionInput
283
+ attr_accessor training_session_name: ::String
284
+ attr_accessor content_type: ::String
285
+ attr_accessor accept: ::String
286
+ attr_accessor model_package_arn: ::String
287
+ attr_accessor body: ::String
288
+ SENSITIVE: [:body]
289
+ end
290
+
291
+ class SampleTrainingSessionOutput
292
+ attr_accessor content_type: ::String
293
+ attr_accessor body: ::String
294
+ SENSITIVE: [:body]
295
+ end
296
+
297
+ class SampleTrainingSessionWithResponseStreamInput
298
+ attr_accessor training_session_name: ::String
299
+ attr_accessor content_type: ::String
300
+ attr_accessor accept: ::String
301
+ attr_accessor model_package_arn: ::String
302
+ attr_accessor body: ::String
303
+ SENSITIVE: [:body]
304
+ end
305
+
306
+ class SampleTrainingSessionWithResponseStreamOutput
307
+ attr_accessor content_type: ::String
308
+ attr_accessor body: ::IO
309
+ SENSITIVE: [:body]
310
+ end
311
+
312
+ class SampledSequence
313
+ attr_accessor stop_reason: ("stop" | "length")
314
+ attr_accessor tokens: ::Array[::Integer]
315
+ attr_accessor logprobs: ::Array[::Float]
316
+ attr_accessor token_usage: Types::SampleTokenUsage
317
+ SENSITIVE: []
318
+ end
319
+
320
+ class SamplingParams
321
+ attr_accessor max_tokens: ::Integer
322
+ attr_accessor temperature: ::Float
323
+ attr_accessor top_k: ::Integer
324
+ attr_accessor top_p: ::Float
325
+ attr_accessor seed: ::Integer
326
+ attr_accessor stop: ::Array[::String]
327
+ SENSITIVE: []
328
+ end
329
+
330
+ class SaveStateConfig
331
+ attr_accessor description: ::String
332
+ SENSITIVE: []
333
+ end
334
+
335
+ class SaveStateResult
336
+ attr_accessor model_package_arn: ::String
337
+ SENSITIVE: []
338
+ end
339
+
340
+ class SaveWeightsConfig
341
+ attr_accessor merge_weights: bool
342
+ attr_accessor description: ::String
343
+ SENSITIVE: []
344
+ end
345
+
346
+ class SaveWeightsResult
347
+ attr_accessor model_package_arn: ::String
348
+ SENSITIVE: []
349
+ end
350
+
351
+ class TensorData
352
+ attr_accessor data: untyped
353
+ attr_accessor dtype: ::String
354
+ attr_accessor shape: ::Array[::Integer]
355
+ SENSITIVE: []
356
+ end
357
+
358
+ class ThrottlingException
359
+ attr_accessor message: ::String
360
+ SENSITIVE: []
361
+ end
362
+
363
+ class TokenLogprob
364
+ attr_accessor token_id: ::Integer
365
+ attr_accessor logprob: ::Float
366
+ SENSITIVE: []
367
+ end
368
+
369
+ class TrainingTokenUsage
370
+ attr_accessor training_tokens: ::Integer
371
+ SENSITIVE: []
372
+ end
373
+
374
+ class ValidationException
375
+ attr_accessor message: ::String
376
+ SENSITIVE: []
377
+ end
378
+ end
379
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SageMakerTrainingSessionRuntime
10
+ module Waiters
11
+ end
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aws-sdk-sagemakertrainingsessionruntime
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Amazon Web Services
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: aws-sdk-core
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '3'
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: 3.256.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '3'
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 3.256.0
32
+ - !ruby/object:Gem::Dependency
33
+ name: aws-sigv4
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - "~>"
37
+ - !ruby/object:Gem::Version
38
+ version: '1.5'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - "~>"
44
+ - !ruby/object:Gem::Version
45
+ version: '1.5'
46
+ description: Official AWS Ruby gem for SageMaker Training Session Runtime. This gem
47
+ is part of the AWS SDK for Ruby.
48
+ email:
49
+ - aws-dr-rubygems@amazon.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - CHANGELOG.md
55
+ - LICENSE.txt
56
+ - VERSION
57
+ - lib/aws-sdk-sagemakertrainingsessionruntime.rb
58
+ - lib/aws-sdk-sagemakertrainingsessionruntime/async_client.rb
59
+ - lib/aws-sdk-sagemakertrainingsessionruntime/client.rb
60
+ - lib/aws-sdk-sagemakertrainingsessionruntime/client_api.rb
61
+ - lib/aws-sdk-sagemakertrainingsessionruntime/customizations.rb
62
+ - lib/aws-sdk-sagemakertrainingsessionruntime/endpoint_parameters.rb
63
+ - lib/aws-sdk-sagemakertrainingsessionruntime/endpoint_provider.rb
64
+ - lib/aws-sdk-sagemakertrainingsessionruntime/endpoints.rb
65
+ - lib/aws-sdk-sagemakertrainingsessionruntime/errors.rb
66
+ - lib/aws-sdk-sagemakertrainingsessionruntime/plugins/endpoints.rb
67
+ - lib/aws-sdk-sagemakertrainingsessionruntime/resource.rb
68
+ - lib/aws-sdk-sagemakertrainingsessionruntime/types.rb
69
+ - lib/aws-sdk-sagemakertrainingsessionruntime/waiters.rb
70
+ - sig/async_client.rbs
71
+ - sig/client.rbs
72
+ - sig/errors.rbs
73
+ - sig/params.rbs
74
+ - sig/resource.rbs
75
+ - sig/types.rbs
76
+ - sig/waiters.rbs
77
+ homepage: https://github.com/aws/aws-sdk-ruby
78
+ licenses:
79
+ - Apache-2.0
80
+ metadata:
81
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-sagemakertrainingsessionruntime
82
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-sagemakertrainingsessionruntime/CHANGELOG.md
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '2.7'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubygems_version: 3.6.7
98
+ specification_version: 4
99
+ summary: AWS SDK for Ruby - SageMaker Training Session Runtime
100
+ test_files: []