@aws-sdk/client-sagemakertrainingsessionruntime 0.0.0-stage → 3.1151.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.
- package/LICENSE +201 -0
- package/README.md +222 -2
- package/dist-cjs/index.js +913 -0
- package/dist-es/SageMakerTrainingSessionRuntime.js +19 -0
- package/dist-es/SageMakerTrainingSessionRuntimeClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/ExecuteSamplingOperationCommand.js +4 -0
- package/dist-es/commands/ExecuteTrainingOperationCommand.js +4 -0
- package/dist-es/commands/GetSamplingOperationResultCommand.js +4 -0
- package/dist-es/commands/GetTrainingOperationResultCommand.js +4 -0
- package/dist-es/commands/SampleTrainingSessionCommand.js +4 -0
- package/dist-es/commands/SampleTrainingSessionWithResponseStreamCommand.js +4 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +29 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/SageMakerTrainingSessionRuntimeServiceException.js +9 -0
- package/dist-es/models/enums.js +20 -0
- package/dist-es/models/errors.js +66 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +41 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +454 -0
- package/dist-types/SageMakerTrainingSessionRuntime.d.ts +58 -0
- package/dist-types/SageMakerTrainingSessionRuntimeClient.d.ts +197 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/ExecuteSamplingOperationCommand.d.ts +169 -0
- package/dist-types/commands/ExecuteTrainingOperationCommand.d.ts +206 -0
- package/dist-types/commands/GetSamplingOperationResultCommand.d.ts +159 -0
- package/dist-types/commands/GetTrainingOperationResultCommand.d.ts +169 -0
- package/dist-types/commands/SampleTrainingSessionCommand.d.ts +123 -0
- package/dist-types/commands/SampleTrainingSessionWithResponseStreamCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/SageMakerTrainingSessionRuntimeServiceException.d.ts +15 -0
- package/dist-types/models/enums.d.ts +52 -0
- package/dist-types/models/errors.d.ts +67 -0
- package/dist-types/models/models_0.d.ts +1069 -0
- package/dist-types/runtimeConfig.browser.d.ts +58 -0
- package/dist-types/runtimeConfig.d.ts +58 -0
- package/dist-types/runtimeConfig.native.d.ts +57 -0
- package/dist-types/runtimeConfig.shared.d.ts +29 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +64 -0
- package/dist-types/ts3.4/SageMakerTrainingSessionRuntime.d.ts +115 -0
- package/dist-types/ts3.4/SageMakerTrainingSessionRuntimeClient.d.ts +143 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +27 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/ExecuteSamplingOperationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ExecuteTrainingOperationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetSamplingOperationResultCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTrainingOperationResultCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/SampleTrainingSessionCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/SampleTrainingSessionWithResponseStreamCommand.d.ts +59 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +12 -0
- package/dist-types/ts3.4/models/SageMakerTrainingSessionRuntimeServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +24 -0
- package/dist-types/ts3.4/models/errors.d.ts +32 -0
- package/dist-types/ts3.4/models/models_0.d.ts +417 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +94 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +98 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +64 -0
- package/package.json +67 -4
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
const _A = "Accept";
|
|
2
|
+
const _APC = "AdamParamsConfig";
|
|
3
|
+
const _CE = "ConflictException";
|
|
4
|
+
const _CLC = "ComputeLogprobsConfig";
|
|
5
|
+
const _CLR = "ComputeLogprobsResult";
|
|
6
|
+
const _CT = "Content-Type";
|
|
7
|
+
const _D = "Datum";
|
|
8
|
+
const _DL = "DatumList";
|
|
9
|
+
const _ESO = "ExecuteSamplingOperation";
|
|
10
|
+
const _ESOI = "ExecuteSamplingOperationInput";
|
|
11
|
+
const _ESOO = "ExecuteSamplingOperationOutput";
|
|
12
|
+
const _ETC = "EncodedTextChunk";
|
|
13
|
+
const _ETCL = "EncodedTextChunkList";
|
|
14
|
+
const _ETO = "ExecuteTrainingOperation";
|
|
15
|
+
const _ETOI = "ExecuteTrainingOperationInput";
|
|
16
|
+
const _ETOO = "ExecuteTrainingOperationOutput";
|
|
17
|
+
const _FBC = "ForwardBackwardConfig";
|
|
18
|
+
const _FBR = "ForwardBackwardResult";
|
|
19
|
+
const _FC = "ForwardConfig";
|
|
20
|
+
const _FR = "ForwardResult";
|
|
21
|
+
const _GSOR = "GetSamplingOperationResult";
|
|
22
|
+
const _GSORI = "GetSamplingOperationResultInput";
|
|
23
|
+
const _GSORO = "GetSamplingOperationResultOutput";
|
|
24
|
+
const _GTOR = "GetTrainingOperationResult";
|
|
25
|
+
const _GTORI = "GetTrainingOperationResultInput";
|
|
26
|
+
const _GTORO = "GetTrainingOperationResultOutput";
|
|
27
|
+
const _IB = "InferenceBody";
|
|
28
|
+
const _ISE = "InternalServerException";
|
|
29
|
+
const _LSC = "LoadStateConfig";
|
|
30
|
+
const _LSR = "LoadStateResult";
|
|
31
|
+
const _LWFSC = "LoadWeightsForSamplingConfig";
|
|
32
|
+
const _LWFSR = "LoadWeightsForSamplingResult";
|
|
33
|
+
const _MI = "ModelInput";
|
|
34
|
+
const _OC = "OperationConfig";
|
|
35
|
+
const _OR = "OperationResult";
|
|
36
|
+
const _OSC = "OptimizerStepConfig";
|
|
37
|
+
const _OSR = "OptimizerStepResult";
|
|
38
|
+
const _RNFE = "ResourceNotFoundException";
|
|
39
|
+
const _SC = "SampleConfig";
|
|
40
|
+
const _SOC = "SampleOperationConfig";
|
|
41
|
+
const _SOR = "SampleOperationResult";
|
|
42
|
+
const _SP = "SamplingParams";
|
|
43
|
+
const _SR = "SampleResponse";
|
|
44
|
+
const _SRS = "SampleResponseStream";
|
|
45
|
+
const _SS = "SampledSequence";
|
|
46
|
+
const _SSC = "SaveStateConfig";
|
|
47
|
+
const _SSL = "SampledSequenceList";
|
|
48
|
+
const _SSR = "SaveStateResult";
|
|
49
|
+
const _STS = "SampleTrainingSession";
|
|
50
|
+
const _STSI = "SampleTrainingSessionInput";
|
|
51
|
+
const _STSO = "SampleTrainingSessionOutput";
|
|
52
|
+
const _STSWRS = "SampleTrainingSessionWithResponseStream";
|
|
53
|
+
const _STSWRSI = "SampleTrainingSessionWithResponseStreamInput";
|
|
54
|
+
const _STSWRSO = "SampleTrainingSessionWithResponseStreamOutput";
|
|
55
|
+
const _STU = "SampleTokenUsage";
|
|
56
|
+
const _SWC = "SaveWeightsConfig";
|
|
57
|
+
const _SWR = "SaveWeightsResult";
|
|
58
|
+
const _TD = "TensorData";
|
|
59
|
+
const _TDM = "TensorDataMap";
|
|
60
|
+
const _TDML = "TensorDataMapList";
|
|
61
|
+
const _TE = "ThrottlingException";
|
|
62
|
+
const _TL = "TokenLogprob";
|
|
63
|
+
const _TLL = "TokenLogprobList";
|
|
64
|
+
const _TPLL = "TopkPromptLogprobsList";
|
|
65
|
+
const _TTU = "TrainingTokenUsage";
|
|
66
|
+
const _VE = "ValidationException";
|
|
67
|
+
const _XASMP = "X-Amzn-SageMaker-Model-Package";
|
|
68
|
+
const _a = "accept";
|
|
69
|
+
const _aPC = "adamParamsConfig";
|
|
70
|
+
const _b = "beta1";
|
|
71
|
+
const _be = "beta2";
|
|
72
|
+
const _bo = "body";
|
|
73
|
+
const _c = "client";
|
|
74
|
+
const _cL = "computeLogprobs";
|
|
75
|
+
const _cT = "clientToken";
|
|
76
|
+
const _cTo = "contentType";
|
|
77
|
+
const _ch = "chunks";
|
|
78
|
+
const _d = "decode";
|
|
79
|
+
const _dL = "datumList";
|
|
80
|
+
const _da = "data";
|
|
81
|
+
const _de = "description";
|
|
82
|
+
const _dt = "dtype";
|
|
83
|
+
const _e = "error";
|
|
84
|
+
const _eD = "errorDetails";
|
|
85
|
+
const _ep = "eps";
|
|
86
|
+
const _f = "forward";
|
|
87
|
+
const _fB = "forwardBackward";
|
|
88
|
+
const _gCN = "gradClipNorm";
|
|
89
|
+
const _h = "http";
|
|
90
|
+
const _hE = "httpError";
|
|
91
|
+
const _hH = "httpHeader";
|
|
92
|
+
const _iPL = "includePromptLogprobs";
|
|
93
|
+
const _l = "logprobs";
|
|
94
|
+
const _lFC = "lossFnConfig";
|
|
95
|
+
const _lFI = "lossFnInputs";
|
|
96
|
+
const _lFN = "lossFnName";
|
|
97
|
+
const _lFO = "lossFnOutputs";
|
|
98
|
+
const _lFOT = "lossFnOutputType";
|
|
99
|
+
const _lO = "loadOptimizer";
|
|
100
|
+
const _lPLR = "loraPlusLrRatio";
|
|
101
|
+
const _lR = "learningRate";
|
|
102
|
+
const _lS = "loadState";
|
|
103
|
+
const _lWFS = "loadWeightsForSampling";
|
|
104
|
+
const _lo = "logprob";
|
|
105
|
+
const _m = "message";
|
|
106
|
+
const _mI = "modelInput";
|
|
107
|
+
const _mPA = "modelPackageArn";
|
|
108
|
+
const _mT = "mediaType";
|
|
109
|
+
const _mTa = "maxTokens";
|
|
110
|
+
const _mW = "mergeWeights";
|
|
111
|
+
const _me = "metrics";
|
|
112
|
+
const _nS = "numSamples";
|
|
113
|
+
const _oC = "operationConfig";
|
|
114
|
+
const _oI = "operationId";
|
|
115
|
+
const _oR = "operationResult";
|
|
116
|
+
const _oS = "optimizerStep";
|
|
117
|
+
const _p = "prompt";
|
|
118
|
+
const _pL = "promptLogprobs";
|
|
119
|
+
const _pr = "prefill";
|
|
120
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakertrainingsessionruntime";
|
|
121
|
+
const _sN = "sequenceNumber";
|
|
122
|
+
const _sP = "samplingParams";
|
|
123
|
+
const _sR = "stopReason";
|
|
124
|
+
const _sS = "saveState";
|
|
125
|
+
const _sW = "saveWeights";
|
|
126
|
+
const _sa = "sample";
|
|
127
|
+
const _se = "server";
|
|
128
|
+
const _see = "seed";
|
|
129
|
+
const _sen = "sensitive";
|
|
130
|
+
const _seq = "sequences";
|
|
131
|
+
const _sh = "shape";
|
|
132
|
+
const _st = "streaming";
|
|
133
|
+
const _sta = "status";
|
|
134
|
+
const _sto = "stop";
|
|
135
|
+
const _t = "tokens";
|
|
136
|
+
const _tI = "tokenId";
|
|
137
|
+
const _tK = "topK";
|
|
138
|
+
const _tP = "topP";
|
|
139
|
+
const _tPL = "topkPromptLogprobs";
|
|
140
|
+
const _tSN = "trainingSessionName";
|
|
141
|
+
const _tT = "trainingTokens";
|
|
142
|
+
const _tU = "tokenUsage";
|
|
143
|
+
const _te = "temperature";
|
|
144
|
+
const _ts = "text/event-stream";
|
|
145
|
+
const _ty = "type";
|
|
146
|
+
const _wD = "weightDecay";
|
|
147
|
+
const n0 = "com.amazonaws.sagemakertrainingsessionruntime";
|
|
148
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
149
|
+
import { ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
150
|
+
import { SageMakerTrainingSessionRuntimeServiceException, } from "../models/SageMakerTrainingSessionRuntimeServiceException";
|
|
151
|
+
const _s_registry = new TypeRegistry(_s);
|
|
152
|
+
export var SageMakerTrainingSessionRuntimeServiceException$ = [-3, _s, "SageMakerTrainingSessionRuntimeServiceException", 0, [], []];
|
|
153
|
+
_s_registry.registerError(SageMakerTrainingSessionRuntimeServiceException$, SageMakerTrainingSessionRuntimeServiceException);
|
|
154
|
+
const n0_registry = new TypeRegistry(n0);
|
|
155
|
+
export var ConflictException$ = [-3, n0, _CE,
|
|
156
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
157
|
+
[_m],
|
|
158
|
+
[0], 1
|
|
159
|
+
];
|
|
160
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
161
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
162
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
163
|
+
[_m],
|
|
164
|
+
[0], 1
|
|
165
|
+
];
|
|
166
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
167
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
168
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
169
|
+
[_m],
|
|
170
|
+
[0], 1
|
|
171
|
+
];
|
|
172
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
173
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
174
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
175
|
+
[_m],
|
|
176
|
+
[0], 1
|
|
177
|
+
];
|
|
178
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
179
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
180
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
181
|
+
[_m],
|
|
182
|
+
[0], 1
|
|
183
|
+
];
|
|
184
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
185
|
+
export const errorTypeRegistries = [
|
|
186
|
+
_s_registry,
|
|
187
|
+
n0_registry,
|
|
188
|
+
];
|
|
189
|
+
var InferenceBody = [0, n0, _IB, 8, 21];
|
|
190
|
+
var SampleResponseStream = [0, n0, _SRS, { [_mT]: _ts, [_sen]: 1, [_st]: 1 }, 42];
|
|
191
|
+
export var AdamParamsConfig$ = [3, n0, _APC,
|
|
192
|
+
0,
|
|
193
|
+
[_lR, _b, _be, _ep, _wD, _gCN, _lPLR],
|
|
194
|
+
[1, 1, 1, 1, 1, 1, 1], 1
|
|
195
|
+
];
|
|
196
|
+
export var ComputeLogprobsConfig$ = [3, n0, _CLC,
|
|
197
|
+
0,
|
|
198
|
+
[_p, _mPA],
|
|
199
|
+
[[() => ModelInput$, 0], 0], 1
|
|
200
|
+
];
|
|
201
|
+
export var ComputeLogprobsResult$ = [3, n0, _CLR,
|
|
202
|
+
0,
|
|
203
|
+
[_l],
|
|
204
|
+
[64 | 1], 1
|
|
205
|
+
];
|
|
206
|
+
export var Datum$ = [3, n0, _D,
|
|
207
|
+
8,
|
|
208
|
+
[_mI, _lFI],
|
|
209
|
+
[[() => ModelInput$, 0], () => TensorDataMap], 1
|
|
210
|
+
];
|
|
211
|
+
export var EncodedTextChunk$ = [3, n0, _ETC,
|
|
212
|
+
0,
|
|
213
|
+
[_t, _ty],
|
|
214
|
+
[64 | 1, 0], 2
|
|
215
|
+
];
|
|
216
|
+
export var ExecuteSamplingOperationInput$ = [3, n0, _ESOI,
|
|
217
|
+
0,
|
|
218
|
+
[_tSN, _oC],
|
|
219
|
+
[[0, 1], [() => SampleOperationConfig$, 0]], 2
|
|
220
|
+
];
|
|
221
|
+
export var ExecuteSamplingOperationOutput$ = [3, n0, _ESOO,
|
|
222
|
+
0,
|
|
223
|
+
[_oI],
|
|
224
|
+
[0], 1
|
|
225
|
+
];
|
|
226
|
+
export var ExecuteTrainingOperationInput$ = [3, n0, _ETOI,
|
|
227
|
+
0,
|
|
228
|
+
[_tSN, _sN, _oC, _cT],
|
|
229
|
+
[[0, 1], 1, [() => OperationConfig$, 0], 0], 3
|
|
230
|
+
];
|
|
231
|
+
export var ExecuteTrainingOperationOutput$ = [3, n0, _ETOO,
|
|
232
|
+
0,
|
|
233
|
+
[_oI],
|
|
234
|
+
[0], 1
|
|
235
|
+
];
|
|
236
|
+
export var ForwardBackwardConfig$ = [3, n0, _FBC,
|
|
237
|
+
0,
|
|
238
|
+
[_lFN, _dL, _lFC],
|
|
239
|
+
[0, [() => DatumList, 0], 15], 2
|
|
240
|
+
];
|
|
241
|
+
export var ForwardBackwardResult$ = [3, n0, _FBR,
|
|
242
|
+
0,
|
|
243
|
+
[_lFOT, _lFO, _me, _tU],
|
|
244
|
+
[0, () => TensorDataMapList, 128 | 1, () => TrainingTokenUsage$]
|
|
245
|
+
];
|
|
246
|
+
export var ForwardConfig$ = [3, n0, _FC,
|
|
247
|
+
0,
|
|
248
|
+
[_lFN, _dL, _lFC],
|
|
249
|
+
[0, [() => DatumList, 0], 15], 2
|
|
250
|
+
];
|
|
251
|
+
export var ForwardResult$ = [3, n0, _FR,
|
|
252
|
+
0,
|
|
253
|
+
[_lFOT, _lFO, _me, _tU],
|
|
254
|
+
[0, () => TensorDataMapList, 128 | 1, () => TrainingTokenUsage$]
|
|
255
|
+
];
|
|
256
|
+
export var GetSamplingOperationResultInput$ = [3, n0, _GSORI,
|
|
257
|
+
0,
|
|
258
|
+
[_tSN, _oI],
|
|
259
|
+
[[0, 1], [0, 1]], 2
|
|
260
|
+
];
|
|
261
|
+
export var GetSamplingOperationResultOutput$ = [3, n0, _GSORO,
|
|
262
|
+
0,
|
|
263
|
+
[_sta, _oR, _eD],
|
|
264
|
+
[0, [() => SampleOperationResult$, 0], 0], 1
|
|
265
|
+
];
|
|
266
|
+
export var GetTrainingOperationResultInput$ = [3, n0, _GTORI,
|
|
267
|
+
0,
|
|
268
|
+
[_tSN, _oI],
|
|
269
|
+
[[0, 1], [0, 1]], 2
|
|
270
|
+
];
|
|
271
|
+
export var GetTrainingOperationResultOutput$ = [3, n0, _GTORO,
|
|
272
|
+
0,
|
|
273
|
+
[_sta, _oR, _eD, _tU],
|
|
274
|
+
[0, () => OperationResult$, 0, () => TrainingTokenUsage$], 1
|
|
275
|
+
];
|
|
276
|
+
export var LoadStateConfig$ = [3, n0, _LSC,
|
|
277
|
+
0,
|
|
278
|
+
[_mPA, _lO],
|
|
279
|
+
[0, 2], 2
|
|
280
|
+
];
|
|
281
|
+
export var LoadStateResult$ = [3, n0, _LSR,
|
|
282
|
+
0,
|
|
283
|
+
[],
|
|
284
|
+
[]
|
|
285
|
+
];
|
|
286
|
+
export var LoadWeightsForSamplingConfig$ = [3, n0, _LWFSC,
|
|
287
|
+
0,
|
|
288
|
+
[_mPA],
|
|
289
|
+
[0], 1
|
|
290
|
+
];
|
|
291
|
+
export var LoadWeightsForSamplingResult$ = [3, n0, _LWFSR,
|
|
292
|
+
0,
|
|
293
|
+
[],
|
|
294
|
+
[]
|
|
295
|
+
];
|
|
296
|
+
export var ModelInput$ = [3, n0, _MI,
|
|
297
|
+
8,
|
|
298
|
+
[_ch],
|
|
299
|
+
[() => EncodedTextChunkList], 1
|
|
300
|
+
];
|
|
301
|
+
export var OptimizerStepConfig$ = [3, n0, _OSC,
|
|
302
|
+
0,
|
|
303
|
+
[_aPC],
|
|
304
|
+
[() => AdamParamsConfig$], 1
|
|
305
|
+
];
|
|
306
|
+
export var OptimizerStepResult$ = [3, n0, _OSR,
|
|
307
|
+
0,
|
|
308
|
+
[_me],
|
|
309
|
+
[128 | 1]
|
|
310
|
+
];
|
|
311
|
+
export var SampleConfig$ = [3, n0, _SC,
|
|
312
|
+
0,
|
|
313
|
+
[_p, _nS, _sP, _iPL, _tPL, _mPA],
|
|
314
|
+
[[() => ModelInput$, 0], 1, () => SamplingParams$, 2, 1, 0], 3
|
|
315
|
+
];
|
|
316
|
+
export var SampledSequence$ = [3, n0, _SS,
|
|
317
|
+
0,
|
|
318
|
+
[_sR, _t, _l, _tU],
|
|
319
|
+
[0, 64 | 1, 64 | 1, () => SampleTokenUsage$], 2
|
|
320
|
+
];
|
|
321
|
+
export var SampleResponse$ = [3, n0, _SR,
|
|
322
|
+
8,
|
|
323
|
+
[_seq, _pL, _tPL],
|
|
324
|
+
[() => SampledSequenceList, 64 | 1, () => TopkPromptLogprobsList], 1
|
|
325
|
+
];
|
|
326
|
+
export var SampleTokenUsage$ = [3, n0, _STU,
|
|
327
|
+
0,
|
|
328
|
+
[_pr, _d],
|
|
329
|
+
[1, 1], 2
|
|
330
|
+
];
|
|
331
|
+
export var SampleTrainingSessionInput$ = [3, n0, _STSI,
|
|
332
|
+
0,
|
|
333
|
+
[_tSN, _cTo, _a, _mPA, _bo],
|
|
334
|
+
[[0, 1], [0, { [_hH]: _CT }], [0, { [_hH]: _A }], [0, { [_hH]: _XASMP }], [() => InferenceBody, 16]], 1
|
|
335
|
+
];
|
|
336
|
+
export var SampleTrainingSessionOutput$ = [3, n0, _STSO,
|
|
337
|
+
0,
|
|
338
|
+
[_bo, _cTo],
|
|
339
|
+
[[() => InferenceBody, 16], [0, { [_hH]: _CT }]], 1
|
|
340
|
+
];
|
|
341
|
+
export var SampleTrainingSessionWithResponseStreamInput$ = [3, n0, _STSWRSI,
|
|
342
|
+
0,
|
|
343
|
+
[_tSN, _cTo, _a, _mPA, _bo],
|
|
344
|
+
[[0, 1], [0, { [_hH]: _CT }], [0, { [_hH]: _A }], [0, { [_hH]: _XASMP }], [() => InferenceBody, 16]], 1
|
|
345
|
+
];
|
|
346
|
+
export var SampleTrainingSessionWithResponseStreamOutput$ = [3, n0, _STSWRSO,
|
|
347
|
+
0,
|
|
348
|
+
[_bo, _cTo],
|
|
349
|
+
[[() => SampleResponseStream, 16], [0, { [_hH]: _CT }]], 1
|
|
350
|
+
];
|
|
351
|
+
export var SamplingParams$ = [3, n0, _SP,
|
|
352
|
+
0,
|
|
353
|
+
[_mTa, _te, _tK, _tP, _see, _sto],
|
|
354
|
+
[1, 1, 1, 1, 1, 64 | 0], 1
|
|
355
|
+
];
|
|
356
|
+
export var SaveStateConfig$ = [3, n0, _SSC,
|
|
357
|
+
0,
|
|
358
|
+
[_de],
|
|
359
|
+
[0]
|
|
360
|
+
];
|
|
361
|
+
export var SaveStateResult$ = [3, n0, _SSR,
|
|
362
|
+
0,
|
|
363
|
+
[_mPA],
|
|
364
|
+
[0], 1
|
|
365
|
+
];
|
|
366
|
+
export var SaveWeightsConfig$ = [3, n0, _SWC,
|
|
367
|
+
0,
|
|
368
|
+
[_mW, _de],
|
|
369
|
+
[2, 0]
|
|
370
|
+
];
|
|
371
|
+
export var SaveWeightsResult$ = [3, n0, _SWR,
|
|
372
|
+
0,
|
|
373
|
+
[_mPA],
|
|
374
|
+
[0]
|
|
375
|
+
];
|
|
376
|
+
export var TensorData$ = [3, n0, _TD,
|
|
377
|
+
0,
|
|
378
|
+
[_da, _dt, _sh],
|
|
379
|
+
[15, 0, 64 | 1], 2
|
|
380
|
+
];
|
|
381
|
+
export var TokenLogprob$ = [3, n0, _TL,
|
|
382
|
+
0,
|
|
383
|
+
[_tI, _lo],
|
|
384
|
+
[1, 1], 2
|
|
385
|
+
];
|
|
386
|
+
export var TrainingTokenUsage$ = [3, n0, _TTU,
|
|
387
|
+
0,
|
|
388
|
+
[_tT],
|
|
389
|
+
[1]
|
|
390
|
+
];
|
|
391
|
+
var DatumList = [1, n0, _DL,
|
|
392
|
+
0, [() => Datum$,
|
|
393
|
+
0]
|
|
394
|
+
];
|
|
395
|
+
var DoubleList = 64 | 1;
|
|
396
|
+
var EncodedTextChunkList = [1, n0, _ETCL,
|
|
397
|
+
0, () => EncodedTextChunk$
|
|
398
|
+
];
|
|
399
|
+
var IntegerList = 64 | 1;
|
|
400
|
+
var SampledSequenceList = [1, n0, _SSL,
|
|
401
|
+
0, () => SampledSequence$
|
|
402
|
+
];
|
|
403
|
+
var StopSequenceList = 64 | 0;
|
|
404
|
+
var TensorDataMapList = [1, n0, _TDML,
|
|
405
|
+
0, () => TensorDataMap
|
|
406
|
+
];
|
|
407
|
+
var TokenLogprobList = [1, n0, _TLL,
|
|
408
|
+
0, () => TokenLogprob$
|
|
409
|
+
];
|
|
410
|
+
var TopkPromptLogprobsList = [1, n0, _TPLL,
|
|
411
|
+
0, () => TokenLogprobList
|
|
412
|
+
];
|
|
413
|
+
var MetricsMap = 128 | 1;
|
|
414
|
+
var TensorDataMap = [2, n0, _TDM,
|
|
415
|
+
0, 0, () => TensorData$
|
|
416
|
+
];
|
|
417
|
+
export var OperationConfig$ = [4, n0, _OC,
|
|
418
|
+
0,
|
|
419
|
+
[_f, _fB, _oS, _sW, _sS, _lS],
|
|
420
|
+
[[() => ForwardConfig$, 0], [() => ForwardBackwardConfig$, 0], () => OptimizerStepConfig$, () => SaveWeightsConfig$, () => SaveStateConfig$, () => LoadStateConfig$]
|
|
421
|
+
];
|
|
422
|
+
export var OperationResult$ = [4, n0, _OR,
|
|
423
|
+
0,
|
|
424
|
+
[_f, _fB, _oS, _sW, _sS, _lS],
|
|
425
|
+
[() => ForwardResult$, () => ForwardBackwardResult$, () => OptimizerStepResult$, () => SaveWeightsResult$, () => SaveStateResult$, () => LoadStateResult$]
|
|
426
|
+
];
|
|
427
|
+
export var SampleOperationConfig$ = [4, n0, _SOC,
|
|
428
|
+
0,
|
|
429
|
+
[_sa, _cL, _lWFS],
|
|
430
|
+
[[() => SampleConfig$, 0], [() => ComputeLogprobsConfig$, 0], () => LoadWeightsForSamplingConfig$]
|
|
431
|
+
];
|
|
432
|
+
export var SampleOperationResult$ = [4, n0, _SOR,
|
|
433
|
+
0,
|
|
434
|
+
[_sa, _cL, _lWFS],
|
|
435
|
+
[[() => SampleResponse$, 0], () => ComputeLogprobsResult$, () => LoadWeightsForSamplingResult$]
|
|
436
|
+
];
|
|
437
|
+
export var ExecuteSamplingOperation$ = [9, n0, _ESO,
|
|
438
|
+
{ [_h]: ["POST", "/v1/training-sessions/{trainingSessionName}/sampling-operations", 200] }, () => ExecuteSamplingOperationInput$, () => ExecuteSamplingOperationOutput$
|
|
439
|
+
];
|
|
440
|
+
export var ExecuteTrainingOperation$ = [9, n0, _ETO,
|
|
441
|
+
{ [_h]: ["POST", "/v1/training-sessions/{trainingSessionName}/operations", 200] }, () => ExecuteTrainingOperationInput$, () => ExecuteTrainingOperationOutput$
|
|
442
|
+
];
|
|
443
|
+
export var GetSamplingOperationResult$ = [9, n0, _GSOR,
|
|
444
|
+
{ [_h]: ["GET", "/v1/training-sessions/{trainingSessionName}/sampling-operations/{operationId}", 200] }, () => GetSamplingOperationResultInput$, () => GetSamplingOperationResultOutput$
|
|
445
|
+
];
|
|
446
|
+
export var GetTrainingOperationResult$ = [9, n0, _GTOR,
|
|
447
|
+
{ [_h]: ["GET", "/v1/training-sessions/{trainingSessionName}/operations/{operationId}", 200] }, () => GetTrainingOperationResultInput$, () => GetTrainingOperationResultOutput$
|
|
448
|
+
];
|
|
449
|
+
export var SampleTrainingSession$ = [9, n0, _STS,
|
|
450
|
+
{ [_h]: ["POST", "/training-sessions/{trainingSessionName}/sample", 200] }, () => SampleTrainingSessionInput$, () => SampleTrainingSessionOutput$
|
|
451
|
+
];
|
|
452
|
+
export var SampleTrainingSessionWithResponseStream$ = [9, n0, _STSWRS,
|
|
453
|
+
{ [_h]: ["POST", "/training-sessions/{trainingSessionName}/sample-with-response-stream", 200] }, () => SampleTrainingSessionWithResponseStreamInput$, () => SampleTrainingSessionWithResponseStreamOutput$
|
|
454
|
+
];
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
|
|
2
|
+
import { type ExecuteSamplingOperationCommandInput, type ExecuteSamplingOperationCommandOutput } from "./commands/ExecuteSamplingOperationCommand";
|
|
3
|
+
import { type ExecuteTrainingOperationCommandInput, type ExecuteTrainingOperationCommandOutput } from "./commands/ExecuteTrainingOperationCommand";
|
|
4
|
+
import { type GetSamplingOperationResultCommandInput, type GetSamplingOperationResultCommandOutput } from "./commands/GetSamplingOperationResultCommand";
|
|
5
|
+
import { type GetTrainingOperationResultCommandInput, type GetTrainingOperationResultCommandOutput } from "./commands/GetTrainingOperationResultCommand";
|
|
6
|
+
import { type SampleTrainingSessionCommandInput, type SampleTrainingSessionCommandOutput } from "./commands/SampleTrainingSessionCommand";
|
|
7
|
+
import { type SampleTrainingSessionWithResponseStreamCommandInput, type SampleTrainingSessionWithResponseStreamCommandOutput } from "./commands/SampleTrainingSessionWithResponseStreamCommand";
|
|
8
|
+
import { SageMakerTrainingSessionRuntimeClient } from "./SageMakerTrainingSessionRuntimeClient";
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export interface SageMakerTrainingSessionRuntimeRequestOptions extends __HttpHandlerOptions {
|
|
13
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
14
|
+
}
|
|
15
|
+
export interface SageMakerTrainingSessionRuntime {
|
|
16
|
+
/**
|
|
17
|
+
* @see {@link ExecuteSamplingOperationCommand}
|
|
18
|
+
*/
|
|
19
|
+
executeSamplingOperation(args: ExecuteSamplingOperationCommandInput, options?: SageMakerTrainingSessionRuntimeRequestOptions): Promise<ExecuteSamplingOperationCommandOutput>;
|
|
20
|
+
executeSamplingOperation(args: ExecuteSamplingOperationCommandInput, cb: (err: any, data?: ExecuteSamplingOperationCommandOutput) => void): void;
|
|
21
|
+
executeSamplingOperation(args: ExecuteSamplingOperationCommandInput, options: SageMakerTrainingSessionRuntimeRequestOptions, cb: (err: any, data?: ExecuteSamplingOperationCommandOutput) => void): void;
|
|
22
|
+
/**
|
|
23
|
+
* @see {@link ExecuteTrainingOperationCommand}
|
|
24
|
+
*/
|
|
25
|
+
executeTrainingOperation(args: ExecuteTrainingOperationCommandInput, options?: SageMakerTrainingSessionRuntimeRequestOptions): Promise<ExecuteTrainingOperationCommandOutput>;
|
|
26
|
+
executeTrainingOperation(args: ExecuteTrainingOperationCommandInput, cb: (err: any, data?: ExecuteTrainingOperationCommandOutput) => void): void;
|
|
27
|
+
executeTrainingOperation(args: ExecuteTrainingOperationCommandInput, options: SageMakerTrainingSessionRuntimeRequestOptions, cb: (err: any, data?: ExecuteTrainingOperationCommandOutput) => void): void;
|
|
28
|
+
/**
|
|
29
|
+
* @see {@link GetSamplingOperationResultCommand}
|
|
30
|
+
*/
|
|
31
|
+
getSamplingOperationResult(args: GetSamplingOperationResultCommandInput, options?: SageMakerTrainingSessionRuntimeRequestOptions): Promise<GetSamplingOperationResultCommandOutput>;
|
|
32
|
+
getSamplingOperationResult(args: GetSamplingOperationResultCommandInput, cb: (err: any, data?: GetSamplingOperationResultCommandOutput) => void): void;
|
|
33
|
+
getSamplingOperationResult(args: GetSamplingOperationResultCommandInput, options: SageMakerTrainingSessionRuntimeRequestOptions, cb: (err: any, data?: GetSamplingOperationResultCommandOutput) => void): void;
|
|
34
|
+
/**
|
|
35
|
+
* @see {@link GetTrainingOperationResultCommand}
|
|
36
|
+
*/
|
|
37
|
+
getTrainingOperationResult(args: GetTrainingOperationResultCommandInput, options?: SageMakerTrainingSessionRuntimeRequestOptions): Promise<GetTrainingOperationResultCommandOutput>;
|
|
38
|
+
getTrainingOperationResult(args: GetTrainingOperationResultCommandInput, cb: (err: any, data?: GetTrainingOperationResultCommandOutput) => void): void;
|
|
39
|
+
getTrainingOperationResult(args: GetTrainingOperationResultCommandInput, options: SageMakerTrainingSessionRuntimeRequestOptions, cb: (err: any, data?: GetTrainingOperationResultCommandOutput) => void): void;
|
|
40
|
+
/**
|
|
41
|
+
* @see {@link SampleTrainingSessionCommand}
|
|
42
|
+
*/
|
|
43
|
+
sampleTrainingSession(args: SampleTrainingSessionCommandInput, options?: SageMakerTrainingSessionRuntimeRequestOptions): Promise<SampleTrainingSessionCommandOutput>;
|
|
44
|
+
sampleTrainingSession(args: SampleTrainingSessionCommandInput, cb: (err: any, data?: SampleTrainingSessionCommandOutput) => void): void;
|
|
45
|
+
sampleTrainingSession(args: SampleTrainingSessionCommandInput, options: SageMakerTrainingSessionRuntimeRequestOptions, cb: (err: any, data?: SampleTrainingSessionCommandOutput) => void): void;
|
|
46
|
+
/**
|
|
47
|
+
* @see {@link SampleTrainingSessionWithResponseStreamCommand}
|
|
48
|
+
*/
|
|
49
|
+
sampleTrainingSessionWithResponseStream(args: SampleTrainingSessionWithResponseStreamCommandInput, options?: SageMakerTrainingSessionRuntimeRequestOptions): Promise<SampleTrainingSessionWithResponseStreamCommandOutput>;
|
|
50
|
+
sampleTrainingSessionWithResponseStream(args: SampleTrainingSessionWithResponseStreamCommandInput, cb: (err: any, data?: SampleTrainingSessionWithResponseStreamCommandOutput) => void): void;
|
|
51
|
+
sampleTrainingSessionWithResponseStream(args: SampleTrainingSessionWithResponseStreamCommandInput, options: SageMakerTrainingSessionRuntimeRequestOptions, cb: (err: any, data?: SampleTrainingSessionWithResponseStreamCommandOutput) => void): void;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* <p>Amazon SageMaker Training Session Runtime provides APIs for executing training operations and sampling operations against a running training session. Use these APIs to submit asynchronous training steps (such as forward-backward passes, optimizer steps, and checkpoint saves) and to generate text samples from the model being trained.</p>
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
export declare class SageMakerTrainingSessionRuntime extends SageMakerTrainingSessionRuntimeClient implements SageMakerTrainingSessionRuntime {
|
|
58
|
+
}
|