llama-stack-client 0.6.1 → 0.7.1
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/.github/workflows/ci.yml +16 -10
- package/.gitignore +1 -0
- package/.release-please-manifest.json +1 -1
- package/.stats.yml +4 -4
- package/CHANGELOG.md +80 -0
- package/CONTRIBUTING.md +2 -2
- package/README.md +22 -0
- package/api.md +1 -71
- package/dist/CHANGELOG.md +80 -0
- package/dist/README.md +22 -0
- package/dist/core.d.ts +1 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +8 -17
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +8 -17
- package/dist/core.mjs.map +1 -1
- package/dist/index.d.mts +51 -12
- package/dist/index.d.ts +51 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +50 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -11
- package/dist/index.mjs.map +1 -1
- package/dist/internal/utils/query.d.ts +2 -0
- package/dist/internal/utils/query.d.ts.map +1 -0
- package/dist/{resources/alpha/post-training/post-training.js → internal/utils/query.js} +6 -24
- package/dist/internal/utils/query.js.map +1 -0
- package/dist/{resources/alpha/post-training.mjs → internal/utils/query.mjs} +5 -2
- package/dist/internal/utils/query.mjs.map +1 -0
- package/dist/package.json +1 -1
- package/dist/resources/alpha/alpha.d.ts +0 -4
- package/dist/resources/alpha/alpha.d.ts.map +1 -1
- package/dist/resources/alpha/alpha.js +0 -4
- package/dist/resources/alpha/alpha.js.map +1 -1
- package/dist/resources/alpha/alpha.mjs +0 -4
- package/dist/resources/alpha/alpha.mjs.map +1 -1
- package/dist/resources/alpha/eval/eval.d.ts +3 -0
- package/dist/resources/alpha/eval/eval.d.ts.map +1 -1
- package/dist/resources/alpha/eval/eval.js +3 -0
- package/dist/resources/alpha/eval/eval.js.map +1 -1
- package/dist/resources/alpha/eval/eval.mjs +3 -0
- package/dist/resources/alpha/eval/eval.mjs.map +1 -1
- package/dist/resources/alpha/eval/jobs.d.ts +3 -0
- package/dist/resources/alpha/eval/jobs.d.ts.map +1 -1
- package/dist/resources/alpha/eval/jobs.js +3 -0
- package/dist/resources/alpha/eval/jobs.js.map +1 -1
- package/dist/resources/alpha/eval/jobs.mjs +3 -0
- package/dist/resources/alpha/eval/jobs.mjs.map +1 -1
- package/dist/resources/alpha/index.d.ts +0 -1
- package/dist/resources/alpha/index.d.ts.map +1 -1
- package/dist/resources/alpha/index.js +1 -3
- package/dist/resources/alpha/index.js.map +1 -1
- package/dist/resources/alpha/index.mjs +0 -1
- package/dist/resources/alpha/index.mjs.map +1 -1
- package/dist/resources/alpha/inference.d.ts +8 -0
- package/dist/resources/alpha/inference.d.ts.map +1 -1
- package/dist/resources/alpha/inference.js +8 -0
- package/dist/resources/alpha/inference.js.map +1 -1
- package/dist/resources/alpha/inference.mjs +8 -0
- package/dist/resources/alpha/inference.mjs.map +1 -1
- package/dist/resources/batches.d.ts +8 -0
- package/dist/resources/batches.d.ts.map +1 -1
- package/dist/resources/batches.js +8 -0
- package/dist/resources/batches.js.map +1 -1
- package/dist/resources/batches.mjs +8 -0
- package/dist/resources/batches.mjs.map +1 -1
- package/dist/resources/beta/datasets.d.ts +4 -8
- package/dist/resources/beta/datasets.d.ts.map +1 -1
- package/dist/resources/chat/chat.d.ts +34 -32
- package/dist/resources/chat/chat.d.ts.map +1 -1
- package/dist/resources/chat/chat.js.map +1 -1
- package/dist/resources/chat/chat.mjs.map +1 -1
- package/dist/resources/chat/completions.d.ts +321 -713
- package/dist/resources/chat/completions.d.ts.map +1 -1
- package/dist/resources/chat/completions.js +8 -0
- package/dist/resources/chat/completions.js.map +1 -1
- package/dist/resources/chat/completions.mjs +8 -0
- package/dist/resources/chat/completions.mjs.map +1 -1
- package/dist/resources/completions.d.ts +10 -4
- package/dist/resources/completions.d.ts.map +1 -1
- package/dist/resources/completions.js +8 -0
- package/dist/resources/completions.js.map +1 -1
- package/dist/resources/completions.mjs +8 -0
- package/dist/resources/completions.mjs.map +1 -1
- package/dist/resources/conversations/conversations.d.ts +95 -2
- package/dist/resources/conversations/conversations.d.ts.map +1 -1
- package/dist/resources/conversations/conversations.js +3 -0
- package/dist/resources/conversations/conversations.js.map +1 -1
- package/dist/resources/conversations/conversations.mjs +3 -0
- package/dist/resources/conversations/conversations.mjs.map +1 -1
- package/dist/resources/conversations/items.d.ts +371 -8
- package/dist/resources/conversations/items.d.ts.map +1 -1
- package/dist/resources/conversations/items.js +3 -0
- package/dist/resources/conversations/items.js.map +1 -1
- package/dist/resources/conversations/items.mjs +3 -0
- package/dist/resources/conversations/items.mjs.map +1 -1
- package/dist/resources/embeddings.d.ts +8 -0
- package/dist/resources/embeddings.d.ts.map +1 -1
- package/dist/resources/embeddings.js +8 -0
- package/dist/resources/embeddings.js.map +1 -1
- package/dist/resources/embeddings.mjs +8 -0
- package/dist/resources/embeddings.mjs.map +1 -1
- package/dist/resources/files.d.ts +11 -8
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js +3 -0
- package/dist/resources/files.js.map +1 -1
- package/dist/resources/files.mjs +3 -0
- package/dist/resources/files.mjs.map +1 -1
- package/dist/resources/index.d.ts +1 -4
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +1 -7
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/index.mjs +0 -3
- package/dist/resources/index.mjs.map +1 -1
- package/dist/resources/inspect.d.ts +3 -0
- package/dist/resources/inspect.d.ts.map +1 -1
- package/dist/resources/inspect.js +3 -0
- package/dist/resources/inspect.js.map +1 -1
- package/dist/resources/inspect.mjs +3 -0
- package/dist/resources/inspect.mjs.map +1 -1
- package/dist/resources/models/index.d.ts +1 -1
- package/dist/resources/models/index.d.ts.map +1 -1
- package/dist/resources/models/index.js.map +1 -1
- package/dist/resources/models/index.mjs.map +1 -1
- package/dist/resources/models/models.d.ts +7 -65
- package/dist/resources/models/models.d.ts.map +1 -1
- package/dist/resources/models/models.js +0 -19
- package/dist/resources/models/models.js.map +1 -1
- package/dist/resources/models/models.mjs +0 -19
- package/dist/resources/models/models.mjs.map +1 -1
- package/dist/resources/moderations.d.ts +3 -0
- package/dist/resources/moderations.d.ts.map +1 -1
- package/dist/resources/moderations.js +3 -0
- package/dist/resources/moderations.js.map +1 -1
- package/dist/resources/moderations.mjs +3 -0
- package/dist/resources/moderations.mjs.map +1 -1
- package/dist/resources/prompts/prompts.d.ts +3 -0
- package/dist/resources/prompts/prompts.d.ts.map +1 -1
- package/dist/resources/prompts/prompts.js +3 -0
- package/dist/resources/prompts/prompts.js.map +1 -1
- package/dist/resources/prompts/prompts.mjs +3 -0
- package/dist/resources/prompts/prompts.mjs.map +1 -1
- package/dist/resources/prompts/versions.d.ts +3 -0
- package/dist/resources/prompts/versions.d.ts.map +1 -1
- package/dist/resources/prompts/versions.js +3 -0
- package/dist/resources/prompts/versions.js.map +1 -1
- package/dist/resources/prompts/versions.mjs +3 -0
- package/dist/resources/prompts/versions.mjs.map +1 -1
- package/dist/resources/providers.d.ts +3 -0
- package/dist/resources/providers.d.ts.map +1 -1
- package/dist/resources/providers.js +3 -0
- package/dist/resources/providers.js.map +1 -1
- package/dist/resources/providers.mjs +3 -0
- package/dist/resources/providers.mjs.map +1 -1
- package/dist/resources/responses/input-items.d.ts +102 -3
- package/dist/resources/responses/input-items.d.ts.map +1 -1
- package/dist/resources/responses/responses.d.ts +582 -11
- package/dist/resources/responses/responses.d.ts.map +1 -1
- package/dist/resources/responses/responses.js.map +1 -1
- package/dist/resources/responses/responses.mjs.map +1 -1
- package/dist/resources/routes.d.ts +3 -0
- package/dist/resources/routes.d.ts.map +1 -1
- package/dist/resources/routes.js +3 -0
- package/dist/resources/routes.js.map +1 -1
- package/dist/resources/routes.mjs +3 -0
- package/dist/resources/routes.mjs.map +1 -1
- package/dist/resources/safety.d.ts +14 -11
- package/dist/resources/safety.d.ts.map +1 -1
- package/dist/resources/safety.js +3 -0
- package/dist/resources/safety.js.map +1 -1
- package/dist/resources/safety.mjs +3 -0
- package/dist/resources/safety.mjs.map +1 -1
- package/dist/resources/vector-io.d.ts +4 -4
- package/dist/resources/vector-stores/file-batches.d.ts +49 -1
- package/dist/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/dist/resources/vector-stores/file-batches.js.map +1 -1
- package/dist/resources/vector-stores/file-batches.mjs.map +1 -1
- package/dist/resources/vector-stores/files.d.ts +100 -4
- package/dist/resources/vector-stores/files.d.ts.map +1 -1
- package/dist/resources/vector-stores/files.js.map +1 -1
- package/dist/resources/vector-stores/files.mjs.map +1 -1
- package/dist/resources/vector-stores/vector-stores.d.ts +51 -3
- package/dist/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/dist/resources/vector-stores/vector-stores.js.map +1 -1
- package/dist/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/dist/src/core.ts +10 -21
- package/dist/src/index.ts +51 -48
- package/{src/resources/alpha/post-training.ts → dist/src/internal/utils/query.ts} +5 -1
- package/dist/src/resources/alpha/alpha.ts +0 -20
- package/dist/src/resources/alpha/eval/eval.ts +3 -0
- package/dist/src/resources/alpha/eval/jobs.ts +3 -0
- package/dist/src/resources/alpha/index.ts +0 -8
- package/dist/src/resources/alpha/inference.ts +8 -0
- package/dist/src/resources/batches.ts +8 -0
- package/dist/src/resources/beta/datasets.ts +4 -9
- package/dist/src/resources/chat/chat.ts +36 -33
- package/dist/src/resources/chat/completions.ts +307 -811
- package/dist/src/resources/completions.ts +10 -4
- package/dist/src/resources/conversations/conversations.ts +121 -1
- package/dist/src/resources/conversations/items.ts +477 -6
- package/dist/src/resources/embeddings.ts +8 -0
- package/dist/src/resources/files.ts +12 -9
- package/dist/src/resources/index.ts +0 -18
- package/dist/src/resources/inspect.ts +3 -0
- package/dist/src/resources/models/index.ts +0 -2
- package/dist/src/resources/models/models.ts +7 -82
- package/dist/src/resources/moderations.ts +3 -0
- package/dist/src/resources/prompts/prompts.ts +3 -0
- package/dist/src/resources/prompts/versions.ts +3 -0
- package/dist/src/resources/providers.ts +3 -0
- package/dist/src/resources/responses/input-items.ts +128 -2
- package/dist/src/resources/responses/responses.ts +706 -7
- package/dist/src/resources/routes.ts +3 -0
- package/dist/src/resources/safety.ts +15 -12
- package/dist/src/resources/vector-io.ts +4 -4
- package/dist/src/resources/vector-stores/file-batches.ts +57 -0
- package/dist/src/resources/vector-stores/files.ts +117 -3
- package/dist/src/resources/vector-stores/vector-stores.ts +59 -2
- package/dist/src/streaming.ts +24 -6
- package/dist/src/version.ts +1 -1
- package/dist/streaming.d.ts.map +1 -1
- package/dist/streaming.js +21 -6
- package/dist/streaming.js.map +1 -1
- package/dist/streaming.mjs +21 -6
- package/dist/streaming.mjs.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
- package/scripts/mock +21 -10
- package/scripts/test +8 -8
- package/src/core.ts +10 -21
- package/src/index.ts +51 -48
- package/{dist/src/resources/alpha/post-training.ts → src/internal/utils/query.ts} +5 -1
- package/src/resources/alpha/alpha.ts +0 -20
- package/src/resources/alpha/eval/eval.ts +3 -0
- package/src/resources/alpha/eval/jobs.ts +3 -0
- package/src/resources/alpha/index.ts +0 -8
- package/src/resources/alpha/inference.ts +8 -0
- package/src/resources/batches.ts +8 -0
- package/src/resources/beta/datasets.ts +4 -9
- package/src/resources/chat/chat.ts +36 -33
- package/src/resources/chat/completions.ts +307 -811
- package/src/resources/completions.ts +10 -4
- package/src/resources/conversations/conversations.ts +121 -1
- package/src/resources/conversations/items.ts +477 -6
- package/src/resources/embeddings.ts +8 -0
- package/src/resources/files.ts +12 -9
- package/src/resources/index.ts +0 -18
- package/src/resources/inspect.ts +3 -0
- package/src/resources/models/index.ts +0 -2
- package/src/resources/models/models.ts +7 -82
- package/src/resources/moderations.ts +3 -0
- package/src/resources/prompts/prompts.ts +3 -0
- package/src/resources/prompts/versions.ts +3 -0
- package/src/resources/providers.ts +3 -0
- package/src/resources/responses/input-items.ts +128 -2
- package/src/resources/responses/responses.ts +706 -7
- package/src/resources/routes.ts +3 -0
- package/src/resources/safety.ts +15 -12
- package/src/resources/vector-io.ts +4 -4
- package/src/resources/vector-stores/file-batches.ts +57 -0
- package/src/resources/vector-stores/files.ts +117 -3
- package/src/resources/vector-stores/vector-stores.ts +59 -2
- package/src/streaming.ts +24 -6
- package/src/version.ts +1 -1
- package/tests/api-resources/beta/datasets.test.ts +4 -10
- package/tests/api-resources/chat/completions.test.ts +2 -0
- package/tests/api-resources/files.test.ts +2 -2
- package/tests/api-resources/models/models.test.ts +0 -39
- package/tests/api-resources/responses/responses.test.ts +10 -1
- package/tests/api-resources/vector-stores/file-batches.test.ts +1 -1
- package/tests/api-resources/vector-stores/files.test.ts +1 -1
- package/tests/api-resources/vector-stores/vector-stores.test.ts +1 -1
- package/tests/stringifyQuery.test.ts +2 -4
- package/dist/resources/alpha/post-training/index.d.ts +0 -3
- package/dist/resources/alpha/post-training/index.d.ts.map +0 -1
- package/dist/resources/alpha/post-training/index.js +0 -15
- package/dist/resources/alpha/post-training/index.js.map +0 -1
- package/dist/resources/alpha/post-training/index.mjs +0 -10
- package/dist/resources/alpha/post-training/index.mjs.map +0 -1
- package/dist/resources/alpha/post-training/job.d.ts +0 -104
- package/dist/resources/alpha/post-training/job.d.ts.map +0 -1
- package/dist/resources/alpha/post-training/job.js +0 -42
- package/dist/resources/alpha/post-training/job.js.map +0 -1
- package/dist/resources/alpha/post-training/job.mjs +0 -38
- package/dist/resources/alpha/post-training/job.mjs.map +0 -1
- package/dist/resources/alpha/post-training/post-training.d.ts +0 -269
- package/dist/resources/alpha/post-training/post-training.d.ts.map +0 -1
- package/dist/resources/alpha/post-training/post-training.js.map +0 -1
- package/dist/resources/alpha/post-training/post-training.mjs +0 -30
- package/dist/resources/alpha/post-training/post-training.mjs.map +0 -1
- package/dist/resources/alpha/post-training.d.ts +0 -2
- package/dist/resources/alpha/post-training.d.ts.map +0 -1
- package/dist/resources/alpha/post-training.js +0 -25
- package/dist/resources/alpha/post-training.js.map +0 -1
- package/dist/resources/alpha/post-training.mjs.map +0 -1
- package/dist/resources/tool-runtime.d.ts +0 -152
- package/dist/resources/tool-runtime.d.ts.map +0 -1
- package/dist/resources/tool-runtime.js +0 -30
- package/dist/resources/tool-runtime.js.map +0 -1
- package/dist/resources/tool-runtime.mjs +0 -26
- package/dist/resources/tool-runtime.mjs.map +0 -1
- package/dist/resources/toolgroups.d.ts +0 -91
- package/dist/resources/toolgroups.d.ts.map +0 -1
- package/dist/resources/toolgroups.js +0 -54
- package/dist/resources/toolgroups.js.map +0 -1
- package/dist/resources/toolgroups.mjs +0 -50
- package/dist/resources/toolgroups.mjs.map +0 -1
- package/dist/resources/tools.d.ts +0 -26
- package/dist/resources/tools.d.ts.map +0 -1
- package/dist/resources/tools.js +0 -30
- package/dist/resources/tools.js.map +0 -1
- package/dist/resources/tools.mjs +0 -26
- package/dist/resources/tools.mjs.map +0 -1
- package/dist/src/resources/alpha/post-training/index.ts +0 -17
- package/dist/src/resources/alpha/post-training/job.ts +0 -161
- package/dist/src/resources/alpha/post-training/post-training.ts +0 -385
- package/dist/src/resources/tool-runtime.ts +0 -217
- package/dist/src/resources/toolgroups.ts +0 -135
- package/dist/src/resources/tools.ts +0 -52
- package/src/resources/alpha/post-training/index.ts +0 -17
- package/src/resources/alpha/post-training/job.ts +0 -161
- package/src/resources/alpha/post-training/post-training.ts +0 -385
- package/src/resources/tool-runtime.ts +0 -217
- package/src/resources/toolgroups.ts +0 -135
- package/src/resources/tools.ts +0 -52
- package/tests/api-resources/alpha/post-training/job.test.ts +0 -86
- package/tests/api-resources/alpha/post-training/post-training.test.ts +0 -134
- package/tests/api-resources/tool-runtime.test.ts +0 -68
- package/tests/api-resources/toolgroups.test.ts +0 -91
- package/tests/api-resources/tools.test.ts +0 -57
|
@@ -6,9 +6,7 @@
|
|
|
6
6
|
//
|
|
7
7
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const { stringifyQuery } = LlamaStackClient.prototype as any;
|
|
9
|
+
import { stringifyQuery } from 'llama-stack-client/internal/utils/query';
|
|
12
10
|
|
|
13
11
|
describe(stringifyQuery, () => {
|
|
14
12
|
for (const [input, expected] of [
|
|
@@ -21,7 +19,7 @@ describe(stringifyQuery, () => {
|
|
|
21
19
|
'e=f',
|
|
22
20
|
)}=${encodeURIComponent('g&h')}`,
|
|
23
21
|
],
|
|
24
|
-
]) {
|
|
22
|
+
] as const) {
|
|
25
23
|
it(`${JSON.stringify(input)} -> ${expected}`, () => {
|
|
26
24
|
expect(stringifyQuery(input)).toEqual(expected);
|
|
27
25
|
});
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { Job, type JobListResponse, type JobArtifactsResponse, type JobStatusResponse } from "./job.js";
|
|
2
|
-
export { PostTraining, type AlgorithmConfig, type ListPostTrainingJobsResponse, type PostTrainingJob, type PostTrainingPreferenceOptimizeParams, type PostTrainingSupervisedFineTuneParams, } from "./post-training.js";
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/alpha/post-training/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,GAAG,EAAE,KAAK,eAAe,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACrG,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,4BAA4B,EACjC,KAAK,eAAe,EACpB,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,GAC1C,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
// All rights reserved.
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
-
// the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.PostTraining = exports.Job = void 0;
|
|
11
|
-
var job_1 = require("./job.js");
|
|
12
|
-
Object.defineProperty(exports, "Job", { enumerable: true, get: function () { return job_1.Job; } });
|
|
13
|
-
var post_training_1 = require("./post-training.js");
|
|
14
|
-
Object.defineProperty(exports, "PostTraining", { enumerable: true, get: function () { return post_training_1.PostTraining; } });
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/alpha/post-training/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,gCAAqG;AAA5F,0FAAA,GAAG,OAAA;AACZ,oDAOyB;AANvB,6GAAA,YAAY,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
-
export { Job } from "./job.mjs";
|
|
9
|
-
export { PostTraining, } from "./post-training.mjs";
|
|
10
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/alpha/post-training/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,GAAG,EAA2E;OAChF,EACL,YAAY,GAMb"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../resource.js";
|
|
2
|
-
import * as Core from "../../../core.js";
|
|
3
|
-
import * as PostTrainingAPI from "./post-training.js";
|
|
4
|
-
export declare class Job extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get all training jobs.
|
|
7
|
-
*/
|
|
8
|
-
list(options?: Core.RequestOptions): Core.APIPromise<JobListResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Get the artifacts of a training job.
|
|
11
|
-
*/
|
|
12
|
-
artifacts(options?: Core.RequestOptions): Core.APIPromise<JobArtifactsResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Cancel a training job.
|
|
15
|
-
*/
|
|
16
|
-
cancel(options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Get the status of a training job.
|
|
19
|
-
*/
|
|
20
|
-
status(options?: Core.RequestOptions): Core.APIPromise<JobStatusResponse>;
|
|
21
|
-
}
|
|
22
|
-
export type JobListResponse = Array<PostTrainingAPI.PostTrainingJob>;
|
|
23
|
-
/**
|
|
24
|
-
* Artifacts of a finetuning job.
|
|
25
|
-
*/
|
|
26
|
-
export interface JobArtifactsResponse {
|
|
27
|
-
job_uuid: string;
|
|
28
|
-
checkpoints?: Array<JobArtifactsResponse.Checkpoint>;
|
|
29
|
-
}
|
|
30
|
-
export declare namespace JobArtifactsResponse {
|
|
31
|
-
/**
|
|
32
|
-
* Checkpoint created during training runs.
|
|
33
|
-
*/
|
|
34
|
-
interface Checkpoint {
|
|
35
|
-
created_at: string;
|
|
36
|
-
epoch: number;
|
|
37
|
-
identifier: string;
|
|
38
|
-
path: string;
|
|
39
|
-
post_training_job_id: string;
|
|
40
|
-
/**
|
|
41
|
-
* Training metrics captured during post-training jobs.
|
|
42
|
-
*/
|
|
43
|
-
training_metrics?: Checkpoint.TrainingMetrics | null;
|
|
44
|
-
}
|
|
45
|
-
namespace Checkpoint {
|
|
46
|
-
/**
|
|
47
|
-
* Training metrics captured during post-training jobs.
|
|
48
|
-
*/
|
|
49
|
-
interface TrainingMetrics {
|
|
50
|
-
epoch: number;
|
|
51
|
-
perplexity: number;
|
|
52
|
-
train_loss: number;
|
|
53
|
-
validation_loss: number;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Status of a finetuning job.
|
|
59
|
-
*/
|
|
60
|
-
export interface JobStatusResponse {
|
|
61
|
-
job_uuid: string;
|
|
62
|
-
/**
|
|
63
|
-
* Status of a job execution.
|
|
64
|
-
*/
|
|
65
|
-
status: 'completed' | 'in_progress' | 'failed' | 'scheduled' | 'cancelled';
|
|
66
|
-
checkpoints?: Array<JobStatusResponse.Checkpoint>;
|
|
67
|
-
completed_at?: string | null;
|
|
68
|
-
resources_allocated?: {
|
|
69
|
-
[key: string]: unknown;
|
|
70
|
-
} | null;
|
|
71
|
-
scheduled_at?: string | null;
|
|
72
|
-
started_at?: string | null;
|
|
73
|
-
}
|
|
74
|
-
export declare namespace JobStatusResponse {
|
|
75
|
-
/**
|
|
76
|
-
* Checkpoint created during training runs.
|
|
77
|
-
*/
|
|
78
|
-
interface Checkpoint {
|
|
79
|
-
created_at: string;
|
|
80
|
-
epoch: number;
|
|
81
|
-
identifier: string;
|
|
82
|
-
path: string;
|
|
83
|
-
post_training_job_id: string;
|
|
84
|
-
/**
|
|
85
|
-
* Training metrics captured during post-training jobs.
|
|
86
|
-
*/
|
|
87
|
-
training_metrics?: Checkpoint.TrainingMetrics | null;
|
|
88
|
-
}
|
|
89
|
-
namespace Checkpoint {
|
|
90
|
-
/**
|
|
91
|
-
* Training metrics captured during post-training jobs.
|
|
92
|
-
*/
|
|
93
|
-
interface TrainingMetrics {
|
|
94
|
-
epoch: number;
|
|
95
|
-
perplexity: number;
|
|
96
|
-
train_loss: number;
|
|
97
|
-
validation_loss: number;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
export declare namespace Job {
|
|
102
|
-
export { type JobListResponse as JobListResponse, type JobArtifactsResponse as JobArtifactsResponse, type JobStatusResponse as JobStatusResponse, };
|
|
103
|
-
}
|
|
104
|
-
//# sourceMappingURL=job.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"job.d.ts","sourceRoot":"","sources":["../../../src/resources/alpha/post-training/job.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;AAEnD,qBAAa,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;IAMrE;;OAEG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAI/E;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAO5D;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;CAG1E;AAED,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IAEjB,WAAW,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;CACtD;AAED,yBAAiB,oBAAoB,CAAC;IACpC;;OAEG;IACH,UAAiB,UAAU;QACzB,UAAU,EAAE,MAAM,CAAC;QAEnB,KAAK,EAAE,MAAM,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,MAAM,CAAC;YAEd,UAAU,EAAE,MAAM,CAAC;YAEnB,UAAU,EAAE,MAAM,CAAC;YAEnB,eAAe,EAAE,MAAM,CAAC;SACzB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
// All rights reserved.
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
-
// the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.Job = void 0;
|
|
11
|
-
const resource_1 = require("../../../resource.js");
|
|
12
|
-
class Job extends resource_1.APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Get all training jobs.
|
|
15
|
-
*/
|
|
16
|
-
list(options) {
|
|
17
|
-
return this._client.get('/v1alpha/post-training/jobs', options)._thenUnwrap((obj) => obj.data);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get the artifacts of a training job.
|
|
21
|
-
*/
|
|
22
|
-
artifacts(options) {
|
|
23
|
-
return this._client.get('/v1alpha/post-training/job/artifacts', options);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Cancel a training job.
|
|
27
|
-
*/
|
|
28
|
-
cancel(options) {
|
|
29
|
-
return this._client.post('/v1alpha/post-training/job/cancel', {
|
|
30
|
-
...options,
|
|
31
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Get the status of a training job.
|
|
36
|
-
*/
|
|
37
|
-
status(options) {
|
|
38
|
-
return this._client.get('/v1alpha/post-training/job/status', options);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.Job = Job;
|
|
42
|
-
//# sourceMappingURL=job.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"job.js","sourceRoot":"","sources":["../../../src/resources/alpha/post-training/job.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,mDAAgD;AAIhD,MAAa,GAAI,SAAQ,sBAAW;IAClC;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CACxD,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAA6B;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AAjCD,kBAiCC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
-
import { APIResource } from "../../../resource.mjs";
|
|
9
|
-
export class Job extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Get all training jobs.
|
|
12
|
-
*/
|
|
13
|
-
list(options) {
|
|
14
|
-
return this._client.get('/v1alpha/post-training/jobs', options)._thenUnwrap((obj) => obj.data);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get the artifacts of a training job.
|
|
18
|
-
*/
|
|
19
|
-
artifacts(options) {
|
|
20
|
-
return this._client.get('/v1alpha/post-training/job/artifacts', options);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Cancel a training job.
|
|
24
|
-
*/
|
|
25
|
-
cancel(options) {
|
|
26
|
-
return this._client.post('/v1alpha/post-training/job/cancel', {
|
|
27
|
-
...options,
|
|
28
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Get the status of a training job.
|
|
33
|
-
*/
|
|
34
|
-
status(options) {
|
|
35
|
-
return this._client.get('/v1alpha/post-training/job/status', options);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=job.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"job.mjs","sourceRoot":"","sources":["../../../src/resources/alpha/post-training/job.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CACxD,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAA6B;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../resource.js";
|
|
2
|
-
import * as Core from "../../../core.js";
|
|
3
|
-
import * as JobAPI from "./job.js";
|
|
4
|
-
import { Job, JobArtifactsResponse, JobListResponse, JobStatusResponse } from "./job.js";
|
|
5
|
-
export declare class PostTraining extends APIResource {
|
|
6
|
-
job: JobAPI.Job;
|
|
7
|
-
/**
|
|
8
|
-
* Run preference optimization of a model.
|
|
9
|
-
*/
|
|
10
|
-
preferenceOptimize(body: PostTrainingPreferenceOptimizeParams, options?: Core.RequestOptions): Core.APIPromise<PostTrainingJob>;
|
|
11
|
-
/**
|
|
12
|
-
* Run supervised fine-tuning of a model.
|
|
13
|
-
*/
|
|
14
|
-
supervisedFineTune(body: PostTrainingSupervisedFineTuneParams, options?: Core.RequestOptions): Core.APIPromise<PostTrainingJob>;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Configuration for Low-Rank Adaptation (LoRA) fine-tuning.
|
|
18
|
-
*/
|
|
19
|
-
export type AlgorithmConfig = AlgorithmConfig.LoraFinetuningConfig | AlgorithmConfig.QatFinetuningConfig;
|
|
20
|
-
export declare namespace AlgorithmConfig {
|
|
21
|
-
/**
|
|
22
|
-
* Configuration for Low-Rank Adaptation (LoRA) fine-tuning.
|
|
23
|
-
*/
|
|
24
|
-
interface LoraFinetuningConfig {
|
|
25
|
-
alpha: number;
|
|
26
|
-
apply_lora_to_mlp: boolean;
|
|
27
|
-
apply_lora_to_output: boolean;
|
|
28
|
-
lora_attn_modules: Array<string>;
|
|
29
|
-
rank: number;
|
|
30
|
-
quantize_base?: boolean | null;
|
|
31
|
-
type?: 'LoRA';
|
|
32
|
-
use_dora?: boolean | null;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Configuration for Quantization-Aware Training (QAT) fine-tuning.
|
|
36
|
-
*/
|
|
37
|
-
interface QatFinetuningConfig {
|
|
38
|
-
group_size: number;
|
|
39
|
-
quantizer_name: string;
|
|
40
|
-
type?: 'QAT';
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export interface ListPostTrainingJobsResponse {
|
|
44
|
-
data: JobAPI.JobListResponse;
|
|
45
|
-
}
|
|
46
|
-
export interface PostTrainingJob {
|
|
47
|
-
job_uuid: string;
|
|
48
|
-
}
|
|
49
|
-
export interface PostTrainingPreferenceOptimizeParams {
|
|
50
|
-
/**
|
|
51
|
-
* The algorithm configuration.
|
|
52
|
-
*/
|
|
53
|
-
algorithm_config: PostTrainingPreferenceOptimizeParams.AlgorithmConfig;
|
|
54
|
-
/**
|
|
55
|
-
* The model to fine-tune.
|
|
56
|
-
*/
|
|
57
|
-
finetuned_model: string;
|
|
58
|
-
/**
|
|
59
|
-
* The hyperparam search configuration.
|
|
60
|
-
*/
|
|
61
|
-
hyperparam_search_config: {
|
|
62
|
-
[key: string]: unknown;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* The UUID of the job to create.
|
|
66
|
-
*/
|
|
67
|
-
job_uuid: string;
|
|
68
|
-
/**
|
|
69
|
-
* The logger configuration.
|
|
70
|
-
*/
|
|
71
|
-
logger_config: {
|
|
72
|
-
[key: string]: unknown;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* The training configuration.
|
|
76
|
-
*/
|
|
77
|
-
training_config: PostTrainingPreferenceOptimizeParams.TrainingConfig;
|
|
78
|
-
}
|
|
79
|
-
export declare namespace PostTrainingPreferenceOptimizeParams {
|
|
80
|
-
/**
|
|
81
|
-
* The algorithm configuration.
|
|
82
|
-
*/
|
|
83
|
-
interface AlgorithmConfig {
|
|
84
|
-
beta: number;
|
|
85
|
-
loss_type?: 'sigmoid' | 'hinge' | 'ipo' | 'kto_pair';
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* The training configuration.
|
|
89
|
-
*/
|
|
90
|
-
interface TrainingConfig {
|
|
91
|
-
n_epochs: number;
|
|
92
|
-
/**
|
|
93
|
-
* Configuration for training data and data loading.
|
|
94
|
-
*/
|
|
95
|
-
data_config?: TrainingConfig.DataConfig | null;
|
|
96
|
-
dtype?: string | null;
|
|
97
|
-
/**
|
|
98
|
-
* Configuration for memory and compute efficiency optimizations.
|
|
99
|
-
*/
|
|
100
|
-
efficiency_config?: TrainingConfig.EfficiencyConfig | null;
|
|
101
|
-
gradient_accumulation_steps?: number;
|
|
102
|
-
max_steps_per_epoch?: number;
|
|
103
|
-
max_validation_steps?: number | null;
|
|
104
|
-
/**
|
|
105
|
-
* Configuration parameters for the optimization algorithm.
|
|
106
|
-
*/
|
|
107
|
-
optimizer_config?: TrainingConfig.OptimizerConfig | null;
|
|
108
|
-
}
|
|
109
|
-
namespace TrainingConfig {
|
|
110
|
-
/**
|
|
111
|
-
* Configuration for training data and data loading.
|
|
112
|
-
*/
|
|
113
|
-
interface DataConfig {
|
|
114
|
-
batch_size: number;
|
|
115
|
-
/**
|
|
116
|
-
* Format of the training dataset.
|
|
117
|
-
*/
|
|
118
|
-
data_format: 'instruct' | 'dialog';
|
|
119
|
-
dataset_id: string;
|
|
120
|
-
shuffle: boolean;
|
|
121
|
-
packed?: boolean | null;
|
|
122
|
-
train_on_input?: boolean | null;
|
|
123
|
-
validation_dataset_id?: string | null;
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Configuration for memory and compute efficiency optimizations.
|
|
127
|
-
*/
|
|
128
|
-
interface EfficiencyConfig {
|
|
129
|
-
enable_activation_checkpointing?: boolean | null;
|
|
130
|
-
enable_activation_offloading?: boolean | null;
|
|
131
|
-
fsdp_cpu_offload?: boolean | null;
|
|
132
|
-
memory_efficient_fsdp_wrap?: boolean | null;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Configuration parameters for the optimization algorithm.
|
|
136
|
-
*/
|
|
137
|
-
interface OptimizerConfig {
|
|
138
|
-
lr: number;
|
|
139
|
-
num_warmup_steps: number;
|
|
140
|
-
/**
|
|
141
|
-
* Available optimizer algorithms for training.
|
|
142
|
-
*/
|
|
143
|
-
optimizer_type: 'adam' | 'adamw' | 'sgd';
|
|
144
|
-
weight_decay: number;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
export interface PostTrainingSupervisedFineTuneParams {
|
|
149
|
-
/**
|
|
150
|
-
* The hyperparam search configuration.
|
|
151
|
-
*/
|
|
152
|
-
hyperparam_search_config: {
|
|
153
|
-
[key: string]: unknown;
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* The UUID of the job to create.
|
|
157
|
-
*/
|
|
158
|
-
job_uuid: string;
|
|
159
|
-
/**
|
|
160
|
-
* The logger configuration.
|
|
161
|
-
*/
|
|
162
|
-
logger_config: {
|
|
163
|
-
[key: string]: unknown;
|
|
164
|
-
};
|
|
165
|
-
/**
|
|
166
|
-
* The training configuration.
|
|
167
|
-
*/
|
|
168
|
-
training_config: PostTrainingSupervisedFineTuneParams.TrainingConfig;
|
|
169
|
-
/**
|
|
170
|
-
* The algorithm configuration.
|
|
171
|
-
*/
|
|
172
|
-
algorithm_config?: PostTrainingSupervisedFineTuneParams.LoraFinetuningConfig | PostTrainingSupervisedFineTuneParams.QatFinetuningConfig | null;
|
|
173
|
-
/**
|
|
174
|
-
* The directory to save checkpoint(s) to.
|
|
175
|
-
*/
|
|
176
|
-
checkpoint_dir?: string | null;
|
|
177
|
-
/**
|
|
178
|
-
* Model descriptor for training if not in provider config
|
|
179
|
-
*/
|
|
180
|
-
model?: string | null;
|
|
181
|
-
}
|
|
182
|
-
export declare namespace PostTrainingSupervisedFineTuneParams {
|
|
183
|
-
/**
|
|
184
|
-
* The training configuration.
|
|
185
|
-
*/
|
|
186
|
-
interface TrainingConfig {
|
|
187
|
-
n_epochs: number;
|
|
188
|
-
/**
|
|
189
|
-
* Configuration for training data and data loading.
|
|
190
|
-
*/
|
|
191
|
-
data_config?: TrainingConfig.DataConfig | null;
|
|
192
|
-
dtype?: string | null;
|
|
193
|
-
/**
|
|
194
|
-
* Configuration for memory and compute efficiency optimizations.
|
|
195
|
-
*/
|
|
196
|
-
efficiency_config?: TrainingConfig.EfficiencyConfig | null;
|
|
197
|
-
gradient_accumulation_steps?: number;
|
|
198
|
-
max_steps_per_epoch?: number;
|
|
199
|
-
max_validation_steps?: number | null;
|
|
200
|
-
/**
|
|
201
|
-
* Configuration parameters for the optimization algorithm.
|
|
202
|
-
*/
|
|
203
|
-
optimizer_config?: TrainingConfig.OptimizerConfig | null;
|
|
204
|
-
}
|
|
205
|
-
namespace TrainingConfig {
|
|
206
|
-
/**
|
|
207
|
-
* Configuration for training data and data loading.
|
|
208
|
-
*/
|
|
209
|
-
interface DataConfig {
|
|
210
|
-
batch_size: number;
|
|
211
|
-
/**
|
|
212
|
-
* Format of the training dataset.
|
|
213
|
-
*/
|
|
214
|
-
data_format: 'instruct' | 'dialog';
|
|
215
|
-
dataset_id: string;
|
|
216
|
-
shuffle: boolean;
|
|
217
|
-
packed?: boolean | null;
|
|
218
|
-
train_on_input?: boolean | null;
|
|
219
|
-
validation_dataset_id?: string | null;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Configuration for memory and compute efficiency optimizations.
|
|
223
|
-
*/
|
|
224
|
-
interface EfficiencyConfig {
|
|
225
|
-
enable_activation_checkpointing?: boolean | null;
|
|
226
|
-
enable_activation_offloading?: boolean | null;
|
|
227
|
-
fsdp_cpu_offload?: boolean | null;
|
|
228
|
-
memory_efficient_fsdp_wrap?: boolean | null;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Configuration parameters for the optimization algorithm.
|
|
232
|
-
*/
|
|
233
|
-
interface OptimizerConfig {
|
|
234
|
-
lr: number;
|
|
235
|
-
num_warmup_steps: number;
|
|
236
|
-
/**
|
|
237
|
-
* Available optimizer algorithms for training.
|
|
238
|
-
*/
|
|
239
|
-
optimizer_type: 'adam' | 'adamw' | 'sgd';
|
|
240
|
-
weight_decay: number;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Configuration for Low-Rank Adaptation (LoRA) fine-tuning.
|
|
245
|
-
*/
|
|
246
|
-
interface LoraFinetuningConfig {
|
|
247
|
-
alpha: number;
|
|
248
|
-
apply_lora_to_mlp: boolean;
|
|
249
|
-
apply_lora_to_output: boolean;
|
|
250
|
-
lora_attn_modules: Array<string>;
|
|
251
|
-
rank: number;
|
|
252
|
-
quantize_base?: boolean | null;
|
|
253
|
-
type?: 'LoRA';
|
|
254
|
-
use_dora?: boolean | null;
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* Configuration for Quantization-Aware Training (QAT) fine-tuning.
|
|
258
|
-
*/
|
|
259
|
-
interface QatFinetuningConfig {
|
|
260
|
-
group_size: number;
|
|
261
|
-
quantizer_name: string;
|
|
262
|
-
type?: 'QAT';
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
export declare namespace PostTraining {
|
|
266
|
-
export { type AlgorithmConfig as AlgorithmConfig, type ListPostTrainingJobsResponse as ListPostTrainingJobsResponse, type PostTrainingJob as PostTrainingJob, type PostTrainingPreferenceOptimizeParams as PostTrainingPreferenceOptimizeParams, type PostTrainingSupervisedFineTuneParams as PostTrainingSupervisedFineTuneParams, };
|
|
267
|
-
export { Job as Job, type JobListResponse as JobListResponse, type JobArtifactsResponse as JobArtifactsResponse, type JobStatusResponse as JobStatusResponse, };
|
|
268
|
-
}
|
|
269
|
-
//# sourceMappingURL=post-training.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-training.d.ts","sourceRoot":"","sources":["../../../src/resources/alpha/post-training/post-training.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,oBAAoB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtF,qBAAa,YAAa,SAAQ,WAAW;IAC3C,GAAG,EAAE,MAAM,CAAC,GAAG,CAAgC;IAE/C;;OAEG;IACH,kBAAkB,CAChB,IAAI,EAAE,oCAAoC,EAC1C,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;IAInC;;OAEG;IACH,kBAAkB,CAChB,IAAI,EAAE,oCAAoC,EAC1C,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC;CAGpC;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,oBAAoB,GAAG,eAAe,CAAC,mBAAmB,CAAC;AAEzG,yBAAiB,eAAe,CAAC;IAC/B;;OAEG;IACH,UAAiB,oBAAoB;QACnC,KAAK,EAAE,MAAM,CAAC;QAEd,iBAAiB,EAAE,OAAO,CAAC;QAE3B,oBAAoB,EAAE,OAAO,CA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,oCAAoC,IAAI,oCAAoC,GAClF,CAAC;IAEF,OAAO,EACL,GAAG,IAAI,GAAG,EACV,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-training.js","sourceRoot":"","sources":["../../../src/resources/alpha/post-training/post-training.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAEhD,iDAAgC;AAChC,kCAAsF;AAEtF,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqBjD,CAAC;IAnBC;;OAEG;IACH,kBAAkB,CAChB,IAA0C,EAC1C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;OAEG;IACH,kBAAkB,CAChB,IAA0C,EAC1C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6CAA6C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AAtBD,oCAsBC;AA4UD,YAAY,CAAC,GAAG,GAAG,SAAG,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
-
import { APIResource } from "../../../resource.mjs";
|
|
9
|
-
import * as JobAPI from "./job.mjs";
|
|
10
|
-
import { Job } from "./job.mjs";
|
|
11
|
-
export class PostTraining extends APIResource {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.job = new JobAPI.Job(this._client);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Run preference optimization of a model.
|
|
18
|
-
*/
|
|
19
|
-
preferenceOptimize(body, options) {
|
|
20
|
-
return this._client.post('/v1alpha/post-training/preference-optimize', { body, ...options });
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Run supervised fine-tuning of a model.
|
|
24
|
-
*/
|
|
25
|
-
supervisedFineTune(body, options) {
|
|
26
|
-
return this._client.post('/v1alpha/post-training/supervised-fine-tune', { body, ...options });
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
PostTraining.Job = Job;
|
|
30
|
-
//# sourceMappingURL=post-training.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-training.mjs","sourceRoot":"","sources":["../../../src/resources/alpha/post-training/post-training.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,MAAM;OACX,EAAE,GAAG,EAA4D;AAExE,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqBjD,CAAC;IAnBC;;OAEG;IACH,kBAAkB,CAChB,IAA0C,EAC1C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;OAEG;IACH,kBAAkB,CAChB,IAA0C,EAC1C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6CAA6C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AA4UD,YAAY,CAAC,GAAG,GAAG,GAAG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-training.d.ts","sourceRoot":"","sources":["../../src/resources/alpha/post-training.ts"],"names":[],"mappings":"AAQA,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
// All rights reserved.
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
-
// the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
-
}
|
|
15
|
-
Object.defineProperty(o, k2, desc);
|
|
16
|
-
}) : (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === undefined) k2 = k;
|
|
18
|
-
o[k2] = m[k];
|
|
19
|
-
}));
|
|
20
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
__exportStar(require("./post-training/index.js"), exports);
|
|
25
|
-
//# sourceMappingURL=post-training.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-training.js","sourceRoot":"","sources":["../../src/resources/alpha/post-training.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;;;;;;;;;;;;;;AAEtF,2DAAsC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-training.mjs","sourceRoot":"","sources":["../../src/resources/alpha/post-training.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF"}
|