@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,206 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ExecuteTrainingOperationInput, ExecuteTrainingOperationOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ExecuteTrainingOperationCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ExecuteTrainingOperationCommandInput extends ExecuteTrainingOperationInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ExecuteTrainingOperationCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ExecuteTrainingOperationCommandOutput extends ExecuteTrainingOperationOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ExecuteTrainingOperationCommand_base: {
|
|
22
|
+
new (input: ExecuteTrainingOperationCommandInput): import("@smithy/core/client").CommandImpl<ExecuteTrainingOperationCommandInput, ExecuteTrainingOperationCommandOutput, import("..").SageMakerTrainingSessionRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ExecuteTrainingOperationCommandInput): import("@smithy/core/client").CommandImpl<ExecuteTrainingOperationCommandInput, ExecuteTrainingOperationCommandOutput, import("..").SageMakerTrainingSessionRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Submits an asynchronous training operation to the specified training session. The service executes operations in sequence number order. The session must be in <code>Running</code> or <code>Blocked</code> state. Use <code>GetTrainingOperationResult</code> to poll for the result. Supported operation types: <code>forward</code>, <code>forwardBackward</code>, <code>optimizerStep</code>, <code>saveWeights</code>, <code>saveState</code>, and <code>loadState</code>.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SageMakerTrainingSessionRuntimeClient, ExecuteTrainingOperationCommand } from "@aws-sdk/client-sagemakertrainingsessionruntime"; // ES Modules import
|
|
32
|
+
* // const { SageMakerTrainingSessionRuntimeClient, ExecuteTrainingOperationCommand } = require("@aws-sdk/client-sagemakertrainingsessionruntime"); // CommonJS import
|
|
33
|
+
* // import type { SageMakerTrainingSessionRuntimeClientConfig } from "@aws-sdk/client-sagemakertrainingsessionruntime";
|
|
34
|
+
* const config = {}; // type is SageMakerTrainingSessionRuntimeClientConfig
|
|
35
|
+
* const client = new SageMakerTrainingSessionRuntimeClient(config);
|
|
36
|
+
* const input = { // ExecuteTrainingOperationInput
|
|
37
|
+
* trainingSessionName: "STRING_VALUE", // required
|
|
38
|
+
* sequenceNumber: Number("int"), // required
|
|
39
|
+
* clientToken: "STRING_VALUE",
|
|
40
|
+
* operationConfig: { // OperationConfig Union: only one key present
|
|
41
|
+
* forward: { // ForwardConfig
|
|
42
|
+
* lossFnName: "cross_entropy" || "importance_sampling" || "ppo" || "cispo", // required
|
|
43
|
+
* datumList: [ // DatumList // required
|
|
44
|
+
* { // Datum
|
|
45
|
+
* modelInput: { // ModelInput
|
|
46
|
+
* chunks: [ // EncodedTextChunkList // required
|
|
47
|
+
* { // EncodedTextChunk
|
|
48
|
+
* tokens: [ // IntegerList // required
|
|
49
|
+
* Number("int"),
|
|
50
|
+
* ],
|
|
51
|
+
* type: "encoded_text", // required
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* },
|
|
55
|
+
* lossFnInputs: { // TensorDataMap
|
|
56
|
+
* "<keys>": { // TensorData
|
|
57
|
+
* data: "DOCUMENT_VALUE", // required
|
|
58
|
+
* dtype: "STRING_VALUE", // required
|
|
59
|
+
* shape: [
|
|
60
|
+
* Number("int"),
|
|
61
|
+
* ],
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* },
|
|
65
|
+
* ],
|
|
66
|
+
* lossFnConfig: "DOCUMENT_VALUE",
|
|
67
|
+
* },
|
|
68
|
+
* forwardBackward: { // ForwardBackwardConfig
|
|
69
|
+
* lossFnName: "cross_entropy" || "importance_sampling" || "ppo" || "cispo", // required
|
|
70
|
+
* datumList: [ // required
|
|
71
|
+
* {
|
|
72
|
+
* modelInput: {
|
|
73
|
+
* chunks: [ // required
|
|
74
|
+
* {
|
|
75
|
+
* tokens: [ // required
|
|
76
|
+
* Number("int"),
|
|
77
|
+
* ],
|
|
78
|
+
* type: "encoded_text", // required
|
|
79
|
+
* },
|
|
80
|
+
* ],
|
|
81
|
+
* },
|
|
82
|
+
* lossFnInputs: {
|
|
83
|
+
* "<keys>": {
|
|
84
|
+
* data: "DOCUMENT_VALUE", // required
|
|
85
|
+
* dtype: "STRING_VALUE", // required
|
|
86
|
+
* shape: [
|
|
87
|
+
* Number("int"),
|
|
88
|
+
* ],
|
|
89
|
+
* },
|
|
90
|
+
* },
|
|
91
|
+
* },
|
|
92
|
+
* ],
|
|
93
|
+
* lossFnConfig: "DOCUMENT_VALUE",
|
|
94
|
+
* },
|
|
95
|
+
* optimizerStep: { // OptimizerStepConfig
|
|
96
|
+
* adamParamsConfig: { // AdamParamsConfig
|
|
97
|
+
* learningRate: Number("double"), // required
|
|
98
|
+
* beta1: Number("double"),
|
|
99
|
+
* beta2: Number("double"),
|
|
100
|
+
* eps: Number("double"),
|
|
101
|
+
* weightDecay: Number("double"),
|
|
102
|
+
* gradClipNorm: Number("double"),
|
|
103
|
+
* loraPlusLrRatio: Number("double"),
|
|
104
|
+
* },
|
|
105
|
+
* },
|
|
106
|
+
* saveWeights: { // SaveWeightsConfig
|
|
107
|
+
* mergeWeights: true || false,
|
|
108
|
+
* description: "STRING_VALUE",
|
|
109
|
+
* },
|
|
110
|
+
* saveState: { // SaveStateConfig
|
|
111
|
+
* description: "STRING_VALUE",
|
|
112
|
+
* },
|
|
113
|
+
* loadState: { // LoadStateConfig
|
|
114
|
+
* modelPackageArn: "STRING_VALUE", // required
|
|
115
|
+
* loadOptimizer: true || false, // required
|
|
116
|
+
* },
|
|
117
|
+
* },
|
|
118
|
+
* };
|
|
119
|
+
* const command = new ExecuteTrainingOperationCommand(input);
|
|
120
|
+
* const response = await client.send(command);
|
|
121
|
+
* // { // ExecuteTrainingOperationOutput
|
|
122
|
+
* // operationId: "STRING_VALUE", // required
|
|
123
|
+
* // };
|
|
124
|
+
*
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
127
|
+
* @param ExecuteTrainingOperationCommandInput - {@link ExecuteTrainingOperationCommandInput}
|
|
128
|
+
* @returns {@link ExecuteTrainingOperationCommandOutput}
|
|
129
|
+
* @see {@link ExecuteTrainingOperationCommandInput} for command's `input` shape.
|
|
130
|
+
* @see {@link ExecuteTrainingOperationCommandOutput} for command's `response` shape.
|
|
131
|
+
* @see {@link SageMakerTrainingSessionRuntimeClientResolvedConfig | config} for SageMakerTrainingSessionRuntimeClient's `config` shape.
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link ConflictException} (client fault)
|
|
134
|
+
* <p>The training session is in a state that cannot accept new operations. The session must be in <code>Running</code> or <code>Blocked</code> state to accept requests.</p>
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link InternalServerException} (server fault)
|
|
137
|
+
* <p>An internal service error occurred. Retry the request using exponential backoff.</p>
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
140
|
+
* <p>The specified training session or operation does not exist, or the operation does not belong to the specified training session.</p>
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
143
|
+
* <p>The request was throttled. Retry the request after a brief wait using exponential backoff.</p>
|
|
144
|
+
*
|
|
145
|
+
* @throws {@link ValidationException} (client fault)
|
|
146
|
+
* <p>The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.</p>
|
|
147
|
+
*
|
|
148
|
+
* @throws {@link SageMakerTrainingSessionRuntimeServiceException}
|
|
149
|
+
* <p>Base exception class for all service exceptions from SageMakerTrainingSessionRuntime service.</p>
|
|
150
|
+
*
|
|
151
|
+
*
|
|
152
|
+
* @example Run a forward and backward pass
|
|
153
|
+
* ```javascript
|
|
154
|
+
* // Computes gradients for a batch of tokenized prompts and accumulates them into the session. Operations are applied in `sequenceNumber` order, so each call must supply the next number in the sequence.
|
|
155
|
+
* const input = {
|
|
156
|
+
* operationConfig: {
|
|
157
|
+
* forwardBackward: {
|
|
158
|
+
* datumList: [
|
|
159
|
+
* {
|
|
160
|
+
* modelInput: {
|
|
161
|
+
* chunks: [
|
|
162
|
+
* {
|
|
163
|
+
* tokens: [
|
|
164
|
+
* 791,
|
|
165
|
+
* 6864,
|
|
166
|
+
* 315,
|
|
167
|
+
* 9822,
|
|
168
|
+
* 374,
|
|
169
|
+
* 12366
|
|
170
|
+
* ],
|
|
171
|
+
* type: "encoded_text"
|
|
172
|
+
* }
|
|
173
|
+
* ]
|
|
174
|
+
* }
|
|
175
|
+
* }
|
|
176
|
+
* ],
|
|
177
|
+
* lossFnName: "cross_entropy"
|
|
178
|
+
* }
|
|
179
|
+
* },
|
|
180
|
+
* sequenceNumber: 1,
|
|
181
|
+
* trainingSessionName: "my-training-session"
|
|
182
|
+
* };
|
|
183
|
+
* const command = new ExecuteTrainingOperationCommand(input);
|
|
184
|
+
* const response = await client.send(command);
|
|
185
|
+
* /* response is
|
|
186
|
+
* {
|
|
187
|
+
* operationId: "a1b2c3d4-5678-90ab-cdef-1234567890ab"
|
|
188
|
+
* }
|
|
189
|
+
* *\/
|
|
190
|
+
* ```
|
|
191
|
+
*
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
export declare class ExecuteTrainingOperationCommand extends ExecuteTrainingOperationCommand_base {
|
|
195
|
+
/** @internal type navigation helper, not in runtime. */
|
|
196
|
+
protected static __types: {
|
|
197
|
+
api: {
|
|
198
|
+
input: ExecuteTrainingOperationInput;
|
|
199
|
+
output: ExecuteTrainingOperationOutput;
|
|
200
|
+
};
|
|
201
|
+
sdk: {
|
|
202
|
+
input: ExecuteTrainingOperationCommandInput;
|
|
203
|
+
output: ExecuteTrainingOperationCommandOutput;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetSamplingOperationResultInput, GetSamplingOperationResultOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetSamplingOperationResultCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetSamplingOperationResultCommandInput extends GetSamplingOperationResultInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetSamplingOperationResultCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetSamplingOperationResultCommandOutput extends GetSamplingOperationResultOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetSamplingOperationResultCommand_base: {
|
|
22
|
+
new (input: GetSamplingOperationResultCommandInput): import("@smithy/core/client").CommandImpl<GetSamplingOperationResultCommandInput, GetSamplingOperationResultCommandOutput, import("..").SageMakerTrainingSessionRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetSamplingOperationResultCommandInput): import("@smithy/core/client").CommandImpl<GetSamplingOperationResultCommandInput, GetSamplingOperationResultCommandOutput, import("..").SageMakerTrainingSessionRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves the current status and result of a previously submitted sampling operation. Poll this operation until the status reaches a terminal state (Completed or Failed).</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SageMakerTrainingSessionRuntimeClient, GetSamplingOperationResultCommand } from "@aws-sdk/client-sagemakertrainingsessionruntime"; // ES Modules import
|
|
32
|
+
* // const { SageMakerTrainingSessionRuntimeClient, GetSamplingOperationResultCommand } = require("@aws-sdk/client-sagemakertrainingsessionruntime"); // CommonJS import
|
|
33
|
+
* // import type { SageMakerTrainingSessionRuntimeClientConfig } from "@aws-sdk/client-sagemakertrainingsessionruntime";
|
|
34
|
+
* const config = {}; // type is SageMakerTrainingSessionRuntimeClientConfig
|
|
35
|
+
* const client = new SageMakerTrainingSessionRuntimeClient(config);
|
|
36
|
+
* const input = { // GetSamplingOperationResultInput
|
|
37
|
+
* trainingSessionName: "STRING_VALUE", // required
|
|
38
|
+
* operationId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetSamplingOperationResultCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetSamplingOperationResultOutput
|
|
43
|
+
* // status: "Pending" || "InProgress" || "Completed" || "Failed" || "Skipped", // required
|
|
44
|
+
* // operationResult: { // SampleOperationResult Union: only one key present
|
|
45
|
+
* // sample: { // SampleResponse
|
|
46
|
+
* // sequences: [ // SampledSequenceList // required
|
|
47
|
+
* // { // SampledSequence
|
|
48
|
+
* // stopReason: "stop" || "length", // required
|
|
49
|
+
* // tokens: [ // IntegerList // required
|
|
50
|
+
* // Number("int"),
|
|
51
|
+
* // ],
|
|
52
|
+
* // logprobs: [ // DoubleList
|
|
53
|
+
* // Number("double"),
|
|
54
|
+
* // ],
|
|
55
|
+
* // tokenUsage: { // SampleTokenUsage
|
|
56
|
+
* // prefill: Number("int"), // required
|
|
57
|
+
* // decode: Number("int"), // required
|
|
58
|
+
* // },
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // promptLogprobs: [
|
|
62
|
+
* // Number("double"),
|
|
63
|
+
* // ],
|
|
64
|
+
* // topkPromptLogprobs: [ // TopkPromptLogprobsList
|
|
65
|
+
* // [ // TokenLogprobList
|
|
66
|
+
* // { // TokenLogprob
|
|
67
|
+
* // tokenId: Number("int"), // required
|
|
68
|
+
* // logprob: Number("double"), // required
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // ],
|
|
72
|
+
* // },
|
|
73
|
+
* // computeLogprobs: { // ComputeLogprobsResult
|
|
74
|
+
* // logprobs: [ // required
|
|
75
|
+
* // Number("double"),
|
|
76
|
+
* // ],
|
|
77
|
+
* // },
|
|
78
|
+
* // loadWeightsForSampling: {},
|
|
79
|
+
* // },
|
|
80
|
+
* // errorDetails: "STRING_VALUE",
|
|
81
|
+
* // };
|
|
82
|
+
*
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* @param GetSamplingOperationResultCommandInput - {@link GetSamplingOperationResultCommandInput}
|
|
86
|
+
* @returns {@link GetSamplingOperationResultCommandOutput}
|
|
87
|
+
* @see {@link GetSamplingOperationResultCommandInput} for command's `input` shape.
|
|
88
|
+
* @see {@link GetSamplingOperationResultCommandOutput} for command's `response` shape.
|
|
89
|
+
* @see {@link SageMakerTrainingSessionRuntimeClientResolvedConfig | config} for SageMakerTrainingSessionRuntimeClient's `config` shape.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link InternalServerException} (server fault)
|
|
92
|
+
* <p>An internal service error occurred. Retry the request using exponential backoff.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
95
|
+
* <p>The specified training session or operation does not exist, or the operation does not belong to the specified training session.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
98
|
+
* <p>The request was throttled. Retry the request after a brief wait using exponential backoff.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ValidationException} (client fault)
|
|
101
|
+
* <p>The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link SageMakerTrainingSessionRuntimeServiceException}
|
|
104
|
+
* <p>Base exception class for all service exceptions from SageMakerTrainingSessionRuntime service.</p>
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @example Get the result of a sampling operation
|
|
108
|
+
* ```javascript
|
|
109
|
+
* // Retrieves the status and generated sequences for a sampling operation submitted with ExecuteSamplingOperation.
|
|
110
|
+
* const input = {
|
|
111
|
+
* operationId: "a1b2c3d4-5678-90ab-cdef-1234567890ab",
|
|
112
|
+
* trainingSessionName: "my-training-session"
|
|
113
|
+
* };
|
|
114
|
+
* const command = new GetSamplingOperationResultCommand(input);
|
|
115
|
+
* const response = await client.send(command);
|
|
116
|
+
* /* response is
|
|
117
|
+
* {
|
|
118
|
+
* operationResult: {
|
|
119
|
+
* sample: {
|
|
120
|
+
* sequences: [
|
|
121
|
+
* {
|
|
122
|
+
* stopReason: "stop",
|
|
123
|
+
* tokenUsage: {
|
|
124
|
+
* decode: 7,
|
|
125
|
+
* prefill: 5
|
|
126
|
+
* },
|
|
127
|
+
* tokens: [
|
|
128
|
+
* 791,
|
|
129
|
+
* 6864,
|
|
130
|
+
* 315,
|
|
131
|
+
* 9822,
|
|
132
|
+
* 374,
|
|
133
|
+
* 12366,
|
|
134
|
+
* 13
|
|
135
|
+
* ]
|
|
136
|
+
* }
|
|
137
|
+
* ]
|
|
138
|
+
* }
|
|
139
|
+
* },
|
|
140
|
+
* status: "Completed"
|
|
141
|
+
* }
|
|
142
|
+
* *\/
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
export declare class GetSamplingOperationResultCommand extends GetSamplingOperationResultCommand_base {
|
|
148
|
+
/** @internal type navigation helper, not in runtime. */
|
|
149
|
+
protected static __types: {
|
|
150
|
+
api: {
|
|
151
|
+
input: GetSamplingOperationResultInput;
|
|
152
|
+
output: GetSamplingOperationResultOutput;
|
|
153
|
+
};
|
|
154
|
+
sdk: {
|
|
155
|
+
input: GetSamplingOperationResultCommandInput;
|
|
156
|
+
output: GetSamplingOperationResultCommandOutput;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetTrainingOperationResultInput, GetTrainingOperationResultOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetTrainingOperationResultCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetTrainingOperationResultCommandInput extends GetTrainingOperationResultInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetTrainingOperationResultCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetTrainingOperationResultCommandOutput extends GetTrainingOperationResultOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetTrainingOperationResultCommand_base: {
|
|
22
|
+
new (input: GetTrainingOperationResultCommandInput): import("@smithy/core/client").CommandImpl<GetTrainingOperationResultCommandInput, GetTrainingOperationResultCommandOutput, import("..").SageMakerTrainingSessionRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetTrainingOperationResultCommandInput): import("@smithy/core/client").CommandImpl<GetTrainingOperationResultCommandInput, GetTrainingOperationResultCommandOutput, import("..").SageMakerTrainingSessionRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves the current status and result of a previously submitted training operation. Poll this operation until the status reaches a terminal state (Completed, Failed, or Skipped).</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SageMakerTrainingSessionRuntimeClient, GetTrainingOperationResultCommand } from "@aws-sdk/client-sagemakertrainingsessionruntime"; // ES Modules import
|
|
32
|
+
* // const { SageMakerTrainingSessionRuntimeClient, GetTrainingOperationResultCommand } = require("@aws-sdk/client-sagemakertrainingsessionruntime"); // CommonJS import
|
|
33
|
+
* // import type { SageMakerTrainingSessionRuntimeClientConfig } from "@aws-sdk/client-sagemakertrainingsessionruntime";
|
|
34
|
+
* const config = {}; // type is SageMakerTrainingSessionRuntimeClientConfig
|
|
35
|
+
* const client = new SageMakerTrainingSessionRuntimeClient(config);
|
|
36
|
+
* const input = { // GetTrainingOperationResultInput
|
|
37
|
+
* trainingSessionName: "STRING_VALUE", // required
|
|
38
|
+
* operationId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetTrainingOperationResultCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetTrainingOperationResultOutput
|
|
43
|
+
* // status: "Pending" || "InProgress" || "Completed" || "Failed" || "Skipped", // required
|
|
44
|
+
* // operationResult: { // OperationResult Union: only one key present
|
|
45
|
+
* // forward: { // ForwardResult
|
|
46
|
+
* // lossFnOutputType: "STRING_VALUE",
|
|
47
|
+
* // lossFnOutputs: [ // TensorDataMapList
|
|
48
|
+
* // { // TensorDataMap
|
|
49
|
+
* // "<keys>": { // TensorData
|
|
50
|
+
* // data: "DOCUMENT_VALUE", // required
|
|
51
|
+
* // dtype: "STRING_VALUE", // required
|
|
52
|
+
* // shape: [ // IntegerList
|
|
53
|
+
* // Number("int"),
|
|
54
|
+
* // ],
|
|
55
|
+
* // },
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // metrics: { // MetricsMap
|
|
59
|
+
* // "<keys>": Number("double"),
|
|
60
|
+
* // },
|
|
61
|
+
* // tokenUsage: { // TrainingTokenUsage
|
|
62
|
+
* // trainingTokens: Number("int"),
|
|
63
|
+
* // },
|
|
64
|
+
* // },
|
|
65
|
+
* // forwardBackward: { // ForwardBackwardResult
|
|
66
|
+
* // lossFnOutputType: "STRING_VALUE",
|
|
67
|
+
* // lossFnOutputs: [
|
|
68
|
+
* // {
|
|
69
|
+
* // "<keys>": {
|
|
70
|
+
* // data: "DOCUMENT_VALUE", // required
|
|
71
|
+
* // dtype: "STRING_VALUE", // required
|
|
72
|
+
* // shape: [
|
|
73
|
+
* // Number("int"),
|
|
74
|
+
* // ],
|
|
75
|
+
* // },
|
|
76
|
+
* // },
|
|
77
|
+
* // ],
|
|
78
|
+
* // metrics: {
|
|
79
|
+
* // "<keys>": Number("double"),
|
|
80
|
+
* // },
|
|
81
|
+
* // tokenUsage: {
|
|
82
|
+
* // trainingTokens: Number("int"),
|
|
83
|
+
* // },
|
|
84
|
+
* // },
|
|
85
|
+
* // optimizerStep: { // OptimizerStepResult
|
|
86
|
+
* // metrics: {
|
|
87
|
+
* // "<keys>": Number("double"),
|
|
88
|
+
* // },
|
|
89
|
+
* // },
|
|
90
|
+
* // saveWeights: { // SaveWeightsResult
|
|
91
|
+
* // modelPackageArn: "STRING_VALUE",
|
|
92
|
+
* // },
|
|
93
|
+
* // saveState: { // SaveStateResult
|
|
94
|
+
* // modelPackageArn: "STRING_VALUE", // required
|
|
95
|
+
* // },
|
|
96
|
+
* // loadState: {},
|
|
97
|
+
* // },
|
|
98
|
+
* // errorDetails: "STRING_VALUE",
|
|
99
|
+
* // tokenUsage: {
|
|
100
|
+
* // trainingTokens: Number("int"),
|
|
101
|
+
* // },
|
|
102
|
+
* // };
|
|
103
|
+
*
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* @param GetTrainingOperationResultCommandInput - {@link GetTrainingOperationResultCommandInput}
|
|
107
|
+
* @returns {@link GetTrainingOperationResultCommandOutput}
|
|
108
|
+
* @see {@link GetTrainingOperationResultCommandInput} for command's `input` shape.
|
|
109
|
+
* @see {@link GetTrainingOperationResultCommandOutput} for command's `response` shape.
|
|
110
|
+
* @see {@link SageMakerTrainingSessionRuntimeClientResolvedConfig | config} for SageMakerTrainingSessionRuntimeClient's `config` shape.
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link InternalServerException} (server fault)
|
|
113
|
+
* <p>An internal service error occurred. Retry the request using exponential backoff.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
116
|
+
* <p>The specified training session or operation does not exist, or the operation does not belong to the specified training session.</p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
119
|
+
* <p>The request was throttled. Retry the request after a brief wait using exponential backoff.</p>
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link ValidationException} (client fault)
|
|
122
|
+
* <p>The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.</p>
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link SageMakerTrainingSessionRuntimeServiceException}
|
|
125
|
+
* <p>Base exception class for all service exceptions from SageMakerTrainingSessionRuntime service.</p>
|
|
126
|
+
*
|
|
127
|
+
*
|
|
128
|
+
* @example Get the result of a training operation
|
|
129
|
+
* ```javascript
|
|
130
|
+
* // Retrieves the status and result of a training operation submitted with ExecuteTrainingOperation.
|
|
131
|
+
* const input = {
|
|
132
|
+
* operationId: "a1b2c3d4-5678-90ab-cdef-1234567890ab",
|
|
133
|
+
* trainingSessionName: "my-training-session"
|
|
134
|
+
* };
|
|
135
|
+
* const command = new GetTrainingOperationResultCommand(input);
|
|
136
|
+
* const response = await client.send(command);
|
|
137
|
+
* /* response is
|
|
138
|
+
* {
|
|
139
|
+
* operationResult: {
|
|
140
|
+
* forwardBackward: {
|
|
141
|
+
* lossFnOutputType: "logprobs",
|
|
142
|
+
* metrics: {
|
|
143
|
+
* loss: 1.8342
|
|
144
|
+
* }
|
|
145
|
+
* }
|
|
146
|
+
* },
|
|
147
|
+
* status: "Completed",
|
|
148
|
+
* tokenUsage: {
|
|
149
|
+
* trainingTokens: 4096
|
|
150
|
+
* }
|
|
151
|
+
* }
|
|
152
|
+
* *\/
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
export declare class GetTrainingOperationResultCommand extends GetTrainingOperationResultCommand_base {
|
|
158
|
+
/** @internal type navigation helper, not in runtime. */
|
|
159
|
+
protected static __types: {
|
|
160
|
+
api: {
|
|
161
|
+
input: GetTrainingOperationResultInput;
|
|
162
|
+
output: GetTrainingOperationResultOutput;
|
|
163
|
+
};
|
|
164
|
+
sdk: {
|
|
165
|
+
input: GetTrainingOperationResultCommandInput;
|
|
166
|
+
output: GetTrainingOperationResultCommandOutput;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Uint8ArrayBlobAdapter } from "@smithy/core/serde";
|
|
2
|
+
import type { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { SampleTrainingSessionInput, SampleTrainingSessionOutput } from "../models/models_0";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export type { __MetadataBearer };
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export type SampleTrainingSessionCommandInputType = Omit<SampleTrainingSessionInput, "body"> & {
|
|
12
|
+
body?: BlobPayloadInputTypes;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The input for {@link SampleTrainingSessionCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface SampleTrainingSessionCommandInput extends SampleTrainingSessionCommandInputType {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export type SampleTrainingSessionCommandOutputType = Omit<SampleTrainingSessionOutput, "body"> & {
|
|
25
|
+
body: Uint8ArrayBlobAdapter;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
*
|
|
30
|
+
* The output of {@link SampleTrainingSessionCommand}.
|
|
31
|
+
*/
|
|
32
|
+
export interface SampleTrainingSessionCommandOutput extends SampleTrainingSessionCommandOutputType, __MetadataBearer {
|
|
33
|
+
}
|
|
34
|
+
declare const SampleTrainingSessionCommand_base: {
|
|
35
|
+
new (input: SampleTrainingSessionCommandInput): import("@smithy/core/client").CommandImpl<SampleTrainingSessionCommandInput, SampleTrainingSessionCommandOutput, import("..").SageMakerTrainingSessionRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
36
|
+
new (input: SampleTrainingSessionCommandInput): import("@smithy/core/client").CommandImpl<SampleTrainingSessionCommandInput, SampleTrainingSessionCommandOutput, import("..").SageMakerTrainingSessionRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* <p>Sends an inference request to the model associated with the specified training session and returns the response synchronously. The service passes the request and response bodies to and from the model without modification.</p>
|
|
41
|
+
* @example
|
|
42
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
43
|
+
* ```javascript
|
|
44
|
+
* import { SageMakerTrainingSessionRuntimeClient, SampleTrainingSessionCommand } from "@aws-sdk/client-sagemakertrainingsessionruntime"; // ES Modules import
|
|
45
|
+
* // const { SageMakerTrainingSessionRuntimeClient, SampleTrainingSessionCommand } = require("@aws-sdk/client-sagemakertrainingsessionruntime"); // CommonJS import
|
|
46
|
+
* // import type { SageMakerTrainingSessionRuntimeClientConfig } from "@aws-sdk/client-sagemakertrainingsessionruntime";
|
|
47
|
+
* const config = {}; // type is SageMakerTrainingSessionRuntimeClientConfig
|
|
48
|
+
* const client = new SageMakerTrainingSessionRuntimeClient(config);
|
|
49
|
+
* const input = { // SampleTrainingSessionInput
|
|
50
|
+
* trainingSessionName: "STRING_VALUE", // required
|
|
51
|
+
* contentType: "STRING_VALUE",
|
|
52
|
+
* accept: "STRING_VALUE",
|
|
53
|
+
* modelPackageArn: "STRING_VALUE",
|
|
54
|
+
* body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
55
|
+
* };
|
|
56
|
+
* const command = new SampleTrainingSessionCommand(input);
|
|
57
|
+
* const response = await client.send(command);
|
|
58
|
+
* // { // SampleTrainingSessionOutput
|
|
59
|
+
* // contentType: "STRING_VALUE",
|
|
60
|
+
* // body: new Uint8Array(), // required
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param SampleTrainingSessionCommandInput - {@link SampleTrainingSessionCommandInput}
|
|
66
|
+
* @returns {@link SampleTrainingSessionCommandOutput}
|
|
67
|
+
* @see {@link SampleTrainingSessionCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link SampleTrainingSessionCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link SageMakerTrainingSessionRuntimeClientResolvedConfig | config} for SageMakerTrainingSessionRuntimeClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ConflictException} (client fault)
|
|
72
|
+
* <p>The training session is in a state that cannot accept new operations. The session must be in <code>Running</code> or <code>Blocked</code> state to accept requests.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InternalServerException} (server fault)
|
|
75
|
+
* <p>An internal service error occurred. Retry the request using exponential backoff.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The specified training session or operation does not exist, or the operation does not belong to the specified training session.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
81
|
+
* <p>The request was throttled. Retry the request after a brief wait using exponential backoff.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ValidationException} (client fault)
|
|
84
|
+
* <p>The request is not valid. Check the request syntax and parameters. Examples include invalid sequence numbers, malformed client tokens, missing required fields, or invalid operation configuration.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link SageMakerTrainingSessionRuntimeServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from SageMakerTrainingSessionRuntime service.</p>
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
* @example Sample from a training session
|
|
91
|
+
* ```javascript
|
|
92
|
+
* // Sends a chat completion request to the session's current weights and receives the complete response in a single payload.
|
|
93
|
+
* const input = {
|
|
94
|
+
* accept: "application/json",
|
|
95
|
+
* body: "eyJtZXNzYWdlcyI6W3sicm9sZSI6InVzZXIiLCJjb250ZW50IjoiV2hhdCBpcyB0aGUgY2FwaXRhbCBvZiBGcmFuY2U/In1dLCJtYXhfdG9rZW5zIjoxMjh9",
|
|
96
|
+
* contentType: "application/json",
|
|
97
|
+
* trainingSessionName: "my-training-session"
|
|
98
|
+
* };
|
|
99
|
+
* const command = new SampleTrainingSessionCommand(input);
|
|
100
|
+
* const response = await client.send(command);
|
|
101
|
+
* /* response is
|
|
102
|
+
* {
|
|
103
|
+
* body: "eyJjaG9pY2VzIjpbeyJtZXNzYWdlIjp7InJvbGUiOiJhc3Npc3RhbnQiLCJjb250ZW50IjoiUGFyaXMifSwiZmluaXNoX3JlYXNvbiI6InN0b3AifV19",
|
|
104
|
+
* contentType: "application/json"
|
|
105
|
+
* }
|
|
106
|
+
* *\/
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
export declare class SampleTrainingSessionCommand extends SampleTrainingSessionCommand_base {
|
|
112
|
+
/** @internal type navigation helper, not in runtime. */
|
|
113
|
+
protected static __types: {
|
|
114
|
+
api: {
|
|
115
|
+
input: SampleTrainingSessionInput;
|
|
116
|
+
output: SampleTrainingSessionOutput;
|
|
117
|
+
};
|
|
118
|
+
sdk: {
|
|
119
|
+
input: SampleTrainingSessionCommandInput;
|
|
120
|
+
output: SampleTrainingSessionCommandOutput;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
}
|