@toloka-platform/sdk 0.27.0 → 0.27.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/README.md +2 -2
- package/dist/cli/toloka.js +179 -190
- package/dist/cli/toloka.js.jsc +0 -0
- package/dist/cli/toloka.js.jsc.sha256 +1 -1
- package/dist/cli/toloka.js.sha256 +1 -1
- package/examples/video-pair-rating/nodes/adjudicate/node.ts +1 -1
- package/examples/video-pair-rating/nodes/adjudicate_op/node.ts +1 -1
- package/examples/video-pair-rating/nodes/overall_preference_pick/node.ts +5 -1
- package/examples/video-pair-rating/nodes/rate_pair/node.ts +5 -1
- package/openapi/gen/api.schemas.ts +51 -758
- package/openapi/gen/api.ts +0 -860
- package/package.json +2 -2
- package/skills/catalog.json +6 -40
- package/skills/toloka-build/references/human-work.md +15 -6
- package/skills/toloka-build/references/local-setup.md +2 -2
- package/skills/toloka-build/references/workflow-and-cli.md +3 -22
- package/skills/toloka-get-started/SKILL.md +9 -13
- package/src/cli/analytics.ts +0 -31
- package/src/cli/context.ts +0 -109
- package/src/cli/init.ts +1 -1
- package/src/cli/program.ts +0 -6
- package/src/cli/project.ts +9 -1
- package/src/client.ts +0 -259
- package/src/importer.ts +12 -2
- package/src/index.ts +0 -2
- package/src/pipeline-graph-v1.contract.json +130 -128
- package/skills/toloka-fine-tuning/SKILL.md +0 -177
- package/skills/toloka-gisting/SKILL.md +0 -186
- package/src/cli/batch-inference.ts +0 -267
- package/src/cli/commands/batch-inference.ts +0 -116
- package/src/cli/commands/models.ts +0 -121
- package/src/cli/commands/training.ts +0 -275
- package/src/cli/models.ts +0 -304
- package/src/cli/trainings.ts +0 -880
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
id: BaseModelIdProperty;
|
|
4
|
-
displayName: string;
|
|
5
|
-
provider: string;
|
|
6
|
-
upstreamModel: string;
|
|
7
|
-
upstreamRevision: string;
|
|
8
|
-
upstreamUrl: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type BaseModelId = 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
|
|
12
|
-
export type ProjectId = string;
|
|
13
|
-
|
|
14
|
-
export type ModelId = string;
|
|
15
|
-
|
|
16
|
-
export interface Model {
|
|
17
|
-
id: ModelId;
|
|
18
|
-
projectId: ProjectId;
|
|
1
|
+
export interface Specialization {
|
|
2
|
+
id: string;
|
|
19
3
|
name: string;
|
|
20
|
-
|
|
21
|
-
baseModelId: BaseModelId;
|
|
22
|
-
archivedAt: string | null;
|
|
23
|
-
createdAt: string;
|
|
24
|
-
updatedAt: string;
|
|
4
|
+
expertsCount: number;
|
|
25
5
|
}
|
|
26
6
|
|
|
27
7
|
export interface Pagination {
|
|
@@ -31,491 +11,7 @@ export interface Pagination {
|
|
|
31
11
|
hasMore: boolean;
|
|
32
12
|
}
|
|
33
13
|
|
|
34
|
-
export type
|
|
35
|
-
|
|
36
|
-
export type ModelVersionManifestItemMediaType = 'application/octet-stream' | 'application/json';
|
|
37
|
-
export type ModelVersionManifestItem = {
|
|
38
|
-
path: string;
|
|
39
|
-
byteSize: number;
|
|
40
|
-
mediaType: ModelVersionManifestItemMediaType;
|
|
41
|
-
sha256: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export type ModelVersionManifest = ModelVersionManifestItem[];
|
|
45
|
-
|
|
46
|
-
export type ModelVersionParent = {
|
|
47
|
-
type: 'base_model';
|
|
48
|
-
baseModelId: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
|
|
49
|
-
} | {
|
|
50
|
-
type: 'model_version';
|
|
51
|
-
modelVersionId: string;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export type ModelVersionContent = {
|
|
55
|
-
runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
|
|
56
|
-
manifest: ModelVersionManifest;
|
|
57
|
-
kind: 'lora_adapter';
|
|
58
|
-
parent: ModelVersionParent;
|
|
59
|
-
} | {
|
|
60
|
-
runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
|
|
61
|
-
manifest: ModelVersionManifest;
|
|
62
|
-
kind: 'full';
|
|
63
|
-
parent?: ModelVersionParent;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export type ModelVersionProducer = {
|
|
67
|
-
type: 'training_run';
|
|
68
|
-
trainingRunId: string;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export interface ModelVersion {
|
|
72
|
-
id: ModelVersionId;
|
|
73
|
-
modelId: ModelId;
|
|
74
|
-
name: string;
|
|
75
|
-
revision: number;
|
|
76
|
-
content: ModelVersionContent;
|
|
77
|
-
producer: ModelVersionProducer;
|
|
78
|
-
createdAt: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export type ModelVersionContentDownloadContent = {
|
|
82
|
-
runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
|
|
83
|
-
manifest: ModelVersionManifest;
|
|
84
|
-
kind: 'lora_adapter';
|
|
85
|
-
parent: ModelVersionParent;
|
|
86
|
-
} | {
|
|
87
|
-
runtimeBase: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
|
|
88
|
-
manifest: ModelVersionManifest;
|
|
89
|
-
kind: 'full';
|
|
90
|
-
parent?: ModelVersionParent;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export type ModelVersionContentDownloadFilesItemMediaType = 'application/octet-stream' | 'application/json';
|
|
94
|
-
export type ModelVersionContentDownloadFilesItem = {
|
|
95
|
-
path: string;
|
|
96
|
-
byteSize: number;
|
|
97
|
-
mediaType: ModelVersionContentDownloadFilesItemMediaType;
|
|
98
|
-
sha256: string;
|
|
99
|
-
url: string;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export interface ModelVersionContentDownload {
|
|
103
|
-
id: ModelVersionId;
|
|
104
|
-
name: string;
|
|
105
|
-
revision: number;
|
|
106
|
-
content: ModelVersionContentDownloadContent;
|
|
107
|
-
files: ModelVersionContentDownloadFilesItem[];
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export type TrainingId = string;
|
|
111
|
-
|
|
112
|
-
export type TrainingModelSource = {
|
|
113
|
-
type: 'base_model';
|
|
114
|
-
baseModelId: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
|
|
115
|
-
} | {
|
|
116
|
-
type: 'model_version';
|
|
117
|
-
modelVersionId: string;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
export type DatasetFieldValueConditionsItemOperator = 'text_eq' | 'text_neq';
|
|
121
|
-
export type FieldRevisionSource = {
|
|
122
|
-
type: 'user';
|
|
123
|
-
userId: string;
|
|
124
|
-
} | {
|
|
125
|
-
type: 'system';
|
|
126
|
-
source: string;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
export type DatasetFieldValueConditionsItem = {
|
|
130
|
-
jsonPath: string;
|
|
131
|
-
operator: DatasetFieldValueConditionsItemOperator;
|
|
132
|
-
value: string | number | boolean | null;
|
|
133
|
-
fieldId: string;
|
|
134
|
-
latestOnly?: boolean;
|
|
135
|
-
sources?: FieldRevisionSource[];
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export type DatasetFieldValueConditions = DatasetFieldValueConditionsItem[];
|
|
139
|
-
|
|
140
|
-
export type DatasetFieldSourceConditionsItem = {
|
|
141
|
-
fieldId: string;
|
|
142
|
-
sources: FieldRevisionSource[];
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
export type DatasetFieldSourceConditions = DatasetFieldSourceConditionsItem[];
|
|
146
|
-
|
|
147
|
-
export interface DatasetSliceSelection {
|
|
148
|
-
sliceId: string;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export interface DatasetSplitPartInclusion {
|
|
152
|
-
fieldId: string;
|
|
153
|
-
names: string[];
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export type DatasetSplitPartExclusionsItem = {
|
|
157
|
-
fieldId: string;
|
|
158
|
-
names: string[];
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
export type DatasetSplitPartExclusions = DatasetSplitPartExclusionsItem[];
|
|
162
|
-
|
|
163
|
-
export interface TrainingDatasetItemFilter {
|
|
164
|
-
fieldValues: DatasetFieldValueConditions;
|
|
165
|
-
fieldSources: DatasetFieldSourceConditions;
|
|
166
|
-
missingRevisionFields: string[];
|
|
167
|
-
slice?: DatasetSliceSelection;
|
|
168
|
-
parts?: DatasetSplitPartInclusion;
|
|
169
|
-
excludeParts?: DatasetSplitPartExclusions;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export interface TrainingDatasetSelection {
|
|
173
|
-
datasetId: string;
|
|
174
|
-
itemFilter: TrainingDatasetItemFilter;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export type SftTrainingConfigurationLoraRank = 8 | 16 | 32;
|
|
178
|
-
export type SftTrainingConfigurationBatchSize = 8 | 16 | 32 | 64;
|
|
179
|
-
export interface SftTrainingConfiguration {
|
|
180
|
-
method: 'sft';
|
|
181
|
-
source: TrainingModelSource;
|
|
182
|
-
sliceId?: string;
|
|
183
|
-
splitFieldId?: string;
|
|
184
|
-
trainParts?: string[];
|
|
185
|
-
loraRank: SftTrainingConfigurationLoraRank;
|
|
186
|
-
epochs: number;
|
|
187
|
-
learningRate: number;
|
|
188
|
-
batchSize: SftTrainingConfigurationBatchSize;
|
|
189
|
-
maxSequenceLength: number;
|
|
190
|
-
training: TrainingDatasetSelection;
|
|
191
|
-
validation?: TrainingDatasetSelection;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export type GistingTrainingConfigurationGistTokens = 8 | 32 | 64 | '1/4' | '1/8' | '1/16' | '1/32';
|
|
195
|
-
export type GistingTrainingConfigurationBatchSize = 8 | 16 | 32 | 64;
|
|
196
|
-
export interface GistingTrainingConfiguration {
|
|
197
|
-
method: 'gisting';
|
|
198
|
-
source: TrainingModelSource;
|
|
199
|
-
sliceId?: string;
|
|
200
|
-
splitFieldId?: string;
|
|
201
|
-
trainParts?: string[];
|
|
202
|
-
promptFileId: string;
|
|
203
|
-
gistTokens: GistingTrainingConfigurationGistTokens;
|
|
204
|
-
epochs: number;
|
|
205
|
-
learningRate: number;
|
|
206
|
-
batchSize: GistingTrainingConfigurationBatchSize;
|
|
207
|
-
maxSequenceLength: number;
|
|
208
|
-
training: TrainingDatasetSelection;
|
|
209
|
-
validation?: TrainingDatasetSelection;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export type TrainingConfiguration = SftTrainingConfiguration | GistingTrainingConfiguration;
|
|
213
|
-
|
|
214
|
-
export interface Training {
|
|
215
|
-
id: TrainingId;
|
|
216
|
-
projectId: ProjectId;
|
|
217
|
-
modelId: ModelId | null;
|
|
218
|
-
name: string;
|
|
219
|
-
configuration: TrainingConfiguration;
|
|
220
|
-
archivedAt: string | null;
|
|
221
|
-
createdAt: string;
|
|
222
|
-
updatedAt: string;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export type SftTrainingConfigurationInputLoraRank = 8 | 16 | 32;
|
|
226
|
-
export type SftTrainingConfigurationInputBatchSize = 8 | 16 | 32 | 64;
|
|
227
|
-
export interface SftTrainingConfigurationInput {
|
|
228
|
-
method: 'sft';
|
|
229
|
-
source: TrainingModelSource;
|
|
230
|
-
sliceId: string;
|
|
231
|
-
splitFieldId?: string;
|
|
232
|
-
trainParts?: string[];
|
|
233
|
-
loraRank?: SftTrainingConfigurationInputLoraRank;
|
|
234
|
-
epochs?: number;
|
|
235
|
-
learningRate?: number;
|
|
236
|
-
batchSize?: SftTrainingConfigurationInputBatchSize;
|
|
237
|
-
maxSequenceLength?: number;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export type GistingTrainingConfigurationInputGistTokens = 8 | 32 | 64 | '1/4' | '1/8' | '1/16' | '1/32';
|
|
241
|
-
export type GistingTrainingConfigurationInputBatchSize = 8 | 16 | 32 | 64;
|
|
242
|
-
export interface GistingTrainingConfigurationInput {
|
|
243
|
-
method: 'gisting';
|
|
244
|
-
source: TrainingModelSource;
|
|
245
|
-
sliceId: string;
|
|
246
|
-
splitFieldId?: string;
|
|
247
|
-
trainParts?: string[];
|
|
248
|
-
promptFileId: string;
|
|
249
|
-
gistTokens?: GistingTrainingConfigurationInputGistTokens;
|
|
250
|
-
epochs?: number;
|
|
251
|
-
learningRate?: number;
|
|
252
|
-
batchSize?: GistingTrainingConfigurationInputBatchSize;
|
|
253
|
-
maxSequenceLength?: number;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export type TrainingConfigurationInput = SftTrainingConfigurationInput | GistingTrainingConfigurationInput;
|
|
257
|
-
|
|
258
|
-
export type TrainingCostEstimateInputSetId = string;
|
|
259
|
-
|
|
260
|
-
export type TrainingCostEstimateInputSetExports = {
|
|
261
|
-
training: string;
|
|
262
|
-
validation: string | null;
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
export interface TrainingCostEstimateInputSet {
|
|
266
|
-
id: TrainingCostEstimateInputSetId;
|
|
267
|
-
trainingId: TrainingId;
|
|
268
|
-
cutoff: string;
|
|
269
|
-
expiresAt: string;
|
|
270
|
-
exports: TrainingCostEstimateInputSetExports;
|
|
271
|
-
createdAt: string;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export type TrainingInputReportTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
|
|
275
|
-
export type TrainingInputReportErrorsItem = {
|
|
276
|
-
itemIndex: number;
|
|
277
|
-
reason: string;
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
export type TrainingInputReportTokens = {
|
|
281
|
-
p50: number;
|
|
282
|
-
p95: number;
|
|
283
|
-
max: number;
|
|
284
|
-
total?: number | null;
|
|
285
|
-
estimatorVersion?: TrainingInputReportTokensEstimatorVersion;
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
export interface TrainingInputReport {
|
|
289
|
-
validCount: number;
|
|
290
|
-
invalidCount: number;
|
|
291
|
-
errors: TrainingInputReportErrorsItem[];
|
|
292
|
-
tokens: TrainingInputReportTokens;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
export type TrainingInputExportFailureCode = 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
|
|
296
|
-
export type TrainingInputExportFailure = {
|
|
297
|
-
timestamp: string;
|
|
298
|
-
code: TrainingInputExportFailureCode;
|
|
299
|
-
message: string;
|
|
300
|
-
} | null;
|
|
301
|
-
|
|
302
|
-
export type TrainingCostEstimateInputsTraining = {
|
|
303
|
-
datasetId: string;
|
|
304
|
-
datasetExportId: string;
|
|
305
|
-
report: TrainingInputReport | null;
|
|
306
|
-
failure: TrainingInputExportFailure | null;
|
|
307
|
-
heldOutRows?: number;
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
export type TrainingCostEstimateInputsValidation = {
|
|
311
|
-
datasetId: string;
|
|
312
|
-
datasetExportId: string;
|
|
313
|
-
report: TrainingInputReport | null;
|
|
314
|
-
failure: TrainingInputExportFailure | null;
|
|
315
|
-
heldOutRows?: number;
|
|
316
|
-
} | null;
|
|
317
|
-
|
|
318
|
-
export interface TrainingCostEstimateInputs {
|
|
319
|
-
training: TrainingCostEstimateInputsTraining;
|
|
320
|
-
validation: TrainingCostEstimateInputsValidation;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export type TrainingCostEstimateIssueCode = 'unsupported_source' | 'export_failed' | 'invalid_examples' | 'empty_selection' | 'row_limit_exceeded' | 'token_limit_exceeded' | 'estimator_mismatch' | 'unsupported_duration';
|
|
324
|
-
export type TrainingCostEstimateIssuePurpose = 'training' | 'validation' | null;
|
|
325
|
-
export interface TrainingCostEstimateIssue {
|
|
326
|
-
code: TrainingCostEstimateIssueCode;
|
|
327
|
-
message: string;
|
|
328
|
-
purpose: TrainingCostEstimateIssuePurpose;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export interface TrainingResourceBudget {
|
|
332
|
-
methodWorkUnits: number;
|
|
333
|
-
estimatedGpuSeconds: number;
|
|
334
|
-
estimatedWallSeconds: number;
|
|
335
|
-
maximumWallSeconds: number;
|
|
336
|
-
maximumGpuSeconds: number;
|
|
337
|
-
gpuCount: number;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
export type TrainingCostEstimate = {
|
|
341
|
-
trainingId: TrainingId;
|
|
342
|
-
inputSetId: TrainingCostEstimateInputSetId;
|
|
343
|
-
cutoff: string;
|
|
344
|
-
inputs: TrainingCostEstimateInputs;
|
|
345
|
-
capabilityVersion: string;
|
|
346
|
-
pricingVersion: string;
|
|
347
|
-
calculatedAt: string;
|
|
348
|
-
status: 'blocked';
|
|
349
|
-
issues: TrainingCostEstimateIssue[];
|
|
350
|
-
} | {
|
|
351
|
-
trainingId: TrainingId;
|
|
352
|
-
inputSetId: TrainingCostEstimateInputSetId;
|
|
353
|
-
cutoff: string;
|
|
354
|
-
inputs: TrainingCostEstimateInputs;
|
|
355
|
-
capabilityVersion: string;
|
|
356
|
-
pricingVersion: string;
|
|
357
|
-
calculatedAt: string;
|
|
358
|
-
status: 'ready';
|
|
359
|
-
issues: TrainingCostEstimateIssue[];
|
|
360
|
-
budget: TrainingResourceBudget;
|
|
361
|
-
maximumCharge: string;
|
|
362
|
-
currency: 'USD';
|
|
363
|
-
fingerprint: string;
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
export type TrainingRunId = string;
|
|
367
|
-
|
|
368
|
-
export type TrainingRunStatus = 'queued' | 'running' | 'stopping' | 'blocked' | 'completed' | 'failed' | 'canceled';
|
|
369
|
-
export type TrainingRunProgress = {
|
|
370
|
-
phase: string;
|
|
371
|
-
step: number | null;
|
|
372
|
-
total: number | null;
|
|
373
|
-
message: string | null;
|
|
374
|
-
} | null;
|
|
375
|
-
|
|
376
|
-
export type TrainingRunBlockedReason = 'funds' | 'payment' | 'billing_review' | null;
|
|
377
|
-
export type TrainingRunError = {
|
|
378
|
-
code: 'data_export_failed' | 'input_report_mismatch' | 'billing_rejected' | 'provider_failed' | 'provider_timeout' | 'invalid_provider_output' | 'provider_output_changed' | 'prompt_changed' | 'payment_window_expired' | 'canceled';
|
|
379
|
-
message: string;
|
|
380
|
-
retryable: boolean;
|
|
381
|
-
} | null;
|
|
382
|
-
|
|
383
|
-
export type TrainingRunBillingStatus = 'pending' | 'reserved' | 'release_pending' | 'released' | 'settled' | 'payment_required' | 'resolved' | 'reconciliation_required';
|
|
384
|
-
export type TrainingRunQuote = {
|
|
385
|
-
inputSetId: TrainingCostEstimateInputSetId;
|
|
386
|
-
cutoff: string;
|
|
387
|
-
inputs: TrainingCostEstimateInputs;
|
|
388
|
-
capabilityVersion: string;
|
|
389
|
-
pricingVersion: string;
|
|
390
|
-
calculatedAt: string;
|
|
391
|
-
budget: TrainingResourceBudget;
|
|
392
|
-
maximumCharge: string;
|
|
393
|
-
currency: 'USD';
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
export type TrainingRunInputsTrainingContract = 'openai-chat-v1';
|
|
397
|
-
export interface TrainingInputItemFilter {
|
|
398
|
-
fieldValues?: DatasetFieldValueConditions;
|
|
399
|
-
fieldSources?: DatasetFieldSourceConditions;
|
|
400
|
-
missingRevisionFields?: string[];
|
|
401
|
-
createdBefore: string;
|
|
402
|
-
slice?: DatasetSliceSelection;
|
|
403
|
-
parts?: DatasetSplitPartInclusion;
|
|
404
|
-
excludeParts?: DatasetSplitPartExclusions;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
export type TrainingRunInputsTraining = {
|
|
408
|
-
datasetId: string;
|
|
409
|
-
datasetExportId: string;
|
|
410
|
-
datasetFileId: string;
|
|
411
|
-
itemFilter: TrainingInputItemFilter;
|
|
412
|
-
format: 'training-jsonl';
|
|
413
|
-
contract: TrainingRunInputsTrainingContract;
|
|
414
|
-
byteSize: number;
|
|
415
|
-
sha256: string;
|
|
416
|
-
report: TrainingInputReport;
|
|
417
|
-
};
|
|
418
|
-
|
|
419
|
-
export type TrainingRunInputsValidationContract = 'openai-chat-v1';
|
|
420
|
-
export type TrainingRunInputsValidation = {
|
|
421
|
-
datasetId: string;
|
|
422
|
-
datasetExportId: string;
|
|
423
|
-
datasetFileId: string;
|
|
424
|
-
itemFilter: TrainingInputItemFilter;
|
|
425
|
-
format: 'training-jsonl';
|
|
426
|
-
contract: TrainingRunInputsValidationContract;
|
|
427
|
-
byteSize: number;
|
|
428
|
-
sha256: string;
|
|
429
|
-
report: TrainingInputReport;
|
|
430
|
-
} | null;
|
|
431
|
-
|
|
432
|
-
export type TrainingRunInputs = {
|
|
433
|
-
training: TrainingRunInputsTraining;
|
|
434
|
-
validation: TrainingRunInputsValidation;
|
|
435
|
-
} | null;
|
|
436
|
-
|
|
437
|
-
export interface TrainingRun {
|
|
438
|
-
id: TrainingRunId;
|
|
439
|
-
trainingId: TrainingId;
|
|
440
|
-
configuration: TrainingConfiguration;
|
|
441
|
-
estimateInputSetId: TrainingCostEstimateInputSetId;
|
|
442
|
-
estimateFingerprint: string;
|
|
443
|
-
outputModelVersionId: ModelVersionId;
|
|
444
|
-
outputModelVersionName: string;
|
|
445
|
-
maxCost: string;
|
|
446
|
-
status: TrainingRunStatus;
|
|
447
|
-
outputModelVersionRevision: number | null;
|
|
448
|
-
progress: TrainingRunProgress;
|
|
449
|
-
blockedReason: TrainingRunBlockedReason;
|
|
450
|
-
error: TrainingRunError;
|
|
451
|
-
billingStatus: TrainingRunBillingStatus;
|
|
452
|
-
chargedAmount: string | null;
|
|
453
|
-
message: string | null;
|
|
454
|
-
quote: TrainingRunQuote;
|
|
455
|
-
inputCutoff: string;
|
|
456
|
-
inputs: TrainingRunInputs;
|
|
457
|
-
createdAt: string;
|
|
458
|
-
updatedAt: string;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
export type TrainingRunLogsEntriesItemLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error';
|
|
462
|
-
export type TrainingRunLogsEntriesItem = {
|
|
463
|
-
timestamp: string;
|
|
464
|
-
level: TrainingRunLogsEntriesItemLevel;
|
|
465
|
-
message: string;
|
|
466
|
-
};
|
|
467
|
-
|
|
468
|
-
export interface TrainingRunLogs {
|
|
469
|
-
entries: TrainingRunLogsEntriesItem[];
|
|
470
|
-
nextCursor: string | null;
|
|
471
|
-
complete: boolean;
|
|
472
|
-
truncated: boolean;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
export type TrainingRunMetricsUnavailableReason = 'not_configured' | 'unresolved' | null;
|
|
476
|
-
export type TrainingRunMetricsMetricsItemMetric = 'training_loss' | 'validation_loss' | 'learning_rate' | 'training_token_accuracy' | 'validation_token_accuracy' | null;
|
|
477
|
-
export type TrainingRunMetricsMetricsItemLatestNonFinite = 'nan' | 'positive_infinity' | 'negative_infinity' | null;
|
|
478
|
-
export type TrainingRunMetricsMetricsItemLatest = {
|
|
479
|
-
step: number;
|
|
480
|
-
timestamp: number;
|
|
481
|
-
value: number | null;
|
|
482
|
-
nonFinite: TrainingRunMetricsMetricsItemLatestNonFinite;
|
|
483
|
-
};
|
|
484
|
-
|
|
485
|
-
export type TrainingRunMetricsMetricsItem = {
|
|
486
|
-
key: string;
|
|
487
|
-
metric: TrainingRunMetricsMetricsItemMetric;
|
|
488
|
-
latest: TrainingRunMetricsMetricsItemLatest;
|
|
489
|
-
};
|
|
490
|
-
|
|
491
|
-
export interface TrainingRunMetrics {
|
|
492
|
-
available: boolean;
|
|
493
|
-
unavailableReason: TrainingRunMetricsUnavailableReason;
|
|
494
|
-
truncated: boolean;
|
|
495
|
-
metrics: TrainingRunMetricsMetricsItem[];
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
export type TrainingRunMetricHistoryMetric = 'training_loss' | 'validation_loss' | 'learning_rate' | 'training_token_accuracy' | 'validation_token_accuracy' | null;
|
|
499
|
-
export type TrainingRunMetricHistoryPointsItemNonFinite = 'nan' | 'positive_infinity' | 'negative_infinity' | null;
|
|
500
|
-
export type TrainingRunMetricHistoryPointsItem = {
|
|
501
|
-
step: number;
|
|
502
|
-
timestamp: number;
|
|
503
|
-
value: number | null;
|
|
504
|
-
nonFinite: TrainingRunMetricHistoryPointsItemNonFinite;
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
export interface TrainingRunMetricHistory {
|
|
508
|
-
key: string;
|
|
509
|
-
metric: TrainingRunMetricHistoryMetric;
|
|
510
|
-
points: TrainingRunMetricHistoryPointsItem[];
|
|
511
|
-
truncated: boolean;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
export interface Specialization {
|
|
515
|
-
id: string;
|
|
516
|
-
name: string;
|
|
517
|
-
expertsCount: number;
|
|
518
|
-
}
|
|
14
|
+
export type ProjectId = string;
|
|
519
15
|
|
|
520
16
|
export interface ExpertList {
|
|
521
17
|
id: string;
|
|
@@ -1028,6 +524,33 @@ export interface SampleJob {
|
|
|
1028
524
|
createdAt: string;
|
|
1029
525
|
}
|
|
1030
526
|
|
|
527
|
+
export type DatasetFieldValueConditionsItemOperator = 'text_eq' | 'text_neq';
|
|
528
|
+
export type FieldRevisionSource = {
|
|
529
|
+
type: 'user';
|
|
530
|
+
userId: string;
|
|
531
|
+
} | {
|
|
532
|
+
type: 'system';
|
|
533
|
+
source: string;
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
export type DatasetFieldValueConditionsItem = {
|
|
537
|
+
jsonPath: string;
|
|
538
|
+
operator: DatasetFieldValueConditionsItemOperator;
|
|
539
|
+
value: string | number | boolean | null;
|
|
540
|
+
fieldId: string;
|
|
541
|
+
latestOnly?: boolean;
|
|
542
|
+
sources?: FieldRevisionSource[];
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
export type DatasetFieldValueConditions = DatasetFieldValueConditionsItem[];
|
|
546
|
+
|
|
547
|
+
export type DatasetFieldSourceConditionsItem = {
|
|
548
|
+
fieldId: string;
|
|
549
|
+
sources: FieldRevisionSource[];
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
export type DatasetFieldSourceConditions = DatasetFieldSourceConditionsItem[];
|
|
553
|
+
|
|
1031
554
|
export type DatasetSliceItemFilter = {
|
|
1032
555
|
fieldValues?: DatasetFieldValueConditions;
|
|
1033
556
|
fieldSources?: DatasetFieldSourceConditions;
|
|
@@ -1057,27 +580,6 @@ export interface DatasetSlice {
|
|
|
1057
580
|
|
|
1058
581
|
export type ExportId = string;
|
|
1059
582
|
|
|
1060
|
-
export type DatasetExportReportErrorsItem = {
|
|
1061
|
-
itemIndex: number;
|
|
1062
|
-
reason: string;
|
|
1063
|
-
};
|
|
1064
|
-
|
|
1065
|
-
export type DatasetExportReportTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | 'script-weighted-v1' | null;
|
|
1066
|
-
export type DatasetExportReportTokens = {
|
|
1067
|
-
p50: number;
|
|
1068
|
-
p95: number;
|
|
1069
|
-
max: number;
|
|
1070
|
-
total?: number | null;
|
|
1071
|
-
estimatorVersion: DatasetExportReportTokensEstimatorVersion;
|
|
1072
|
-
};
|
|
1073
|
-
|
|
1074
|
-
export interface DatasetExportReport {
|
|
1075
|
-
validCount: number;
|
|
1076
|
-
invalidCount: number;
|
|
1077
|
-
errors: DatasetExportReportErrorsItem[];
|
|
1078
|
-
tokens: DatasetExportReportTokens;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
583
|
export type ExportJobStatus = 'running' | 'succeeded' | 'failed';
|
|
1082
584
|
export type ExportJobResult = {
|
|
1083
585
|
downloadUrl: string | null;
|
|
@@ -1096,7 +598,6 @@ export interface ExportJob {
|
|
|
1096
598
|
status: ExportJobStatus;
|
|
1097
599
|
createdAt: string;
|
|
1098
600
|
result: ExportJobResult;
|
|
1099
|
-
report: DatasetExportReport | null;
|
|
1100
601
|
error: ExportJobError;
|
|
1101
602
|
}
|
|
1102
603
|
|
|
@@ -1119,6 +620,22 @@ export interface InvalidFieldSchema {
|
|
|
1119
620
|
reason: string;
|
|
1120
621
|
}
|
|
1121
622
|
|
|
623
|
+
export interface DatasetSliceSelection {
|
|
624
|
+
sliceId: string;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export interface DatasetSplitPartInclusion {
|
|
628
|
+
fieldId: string;
|
|
629
|
+
names: string[];
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export type DatasetSplitPartExclusionsItem = {
|
|
633
|
+
fieldId: string;
|
|
634
|
+
names: string[];
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export type DatasetSplitPartExclusions = DatasetSplitPartExclusionsItem[];
|
|
638
|
+
|
|
1122
639
|
export type RootNodeSettingsItemFilter = {
|
|
1123
640
|
fieldValues?: DatasetFieldValueConditions;
|
|
1124
641
|
fieldSources?: DatasetFieldSourceConditions;
|
|
@@ -1531,11 +1048,11 @@ export interface GenerationNodeSettings {
|
|
|
1531
1048
|
audienceAndPricing?: GenerationNodeSettingsAudienceAndPricing;
|
|
1532
1049
|
onboarding: Onboarding;
|
|
1533
1050
|
exam?: QualificationExam;
|
|
1534
|
-
reuseAudienceWithNodeId?: GenerationNodeSettingsReuseAudienceWithNodeId;
|
|
1535
|
-
smartSearch?: SmartSearch | null;
|
|
1536
1051
|
allowedExperts?: string[];
|
|
1537
1052
|
excludedExperts?: string[];
|
|
1538
1053
|
checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset' | 'synthgen', CheckTestCases>>;
|
|
1054
|
+
reuseAudienceWithNodeId?: GenerationNodeSettingsReuseAudienceWithNodeId;
|
|
1055
|
+
smartSearch?: SmartSearch | null;
|
|
1539
1056
|
}
|
|
1540
1057
|
|
|
1541
1058
|
export interface GenerationNode {
|
|
@@ -1613,10 +1130,10 @@ export interface QuorumNodeSettings {
|
|
|
1613
1130
|
overlap: number;
|
|
1614
1131
|
onboarding: Onboarding;
|
|
1615
1132
|
exam?: QualificationExam;
|
|
1616
|
-
reuseAudienceWithNodeId?: QuorumNodeSettingsReuseAudienceWithNodeId;
|
|
1617
|
-
smartSearch?: SmartSearch | null;
|
|
1618
1133
|
excludedExperts?: string[];
|
|
1619
1134
|
checks?: Partial<Record<'ui' | 'llmqa' | 'annotation_qa' | 'qc_lint' | 'ui_types_lint' | 'exam_dataset', CheckTestCases>>;
|
|
1135
|
+
reuseAudienceWithNodeId?: QuorumNodeSettingsReuseAudienceWithNodeId;
|
|
1136
|
+
smartSearch?: SmartSearch | null;
|
|
1620
1137
|
}
|
|
1621
1138
|
|
|
1622
1139
|
export interface QuorumNode {
|
|
@@ -1909,100 +1426,6 @@ export interface RunLintsResult {
|
|
|
1909
1426
|
nodesInUse: string[];
|
|
1910
1427
|
}
|
|
1911
1428
|
|
|
1912
|
-
export type BatchInferenceModel = {
|
|
1913
|
-
type: 'base_model';
|
|
1914
|
-
baseModelId: 'qwen3-4b' | 'qwen3-8b' | 'qwen3-32b' | 'qwen3-235b';
|
|
1915
|
-
} | {
|
|
1916
|
-
type: 'model_version';
|
|
1917
|
-
modelVersionId: string;
|
|
1918
|
-
};
|
|
1919
|
-
|
|
1920
|
-
export type BatchInferenceMode = {
|
|
1921
|
-
type: 'single_turn';
|
|
1922
|
-
};
|
|
1923
|
-
|
|
1924
|
-
export type BatchInferenceRunId = string;
|
|
1925
|
-
|
|
1926
|
-
export type BatchInferenceRunSampling = {
|
|
1927
|
-
maxOutputTokens: number;
|
|
1928
|
-
temperature?: number;
|
|
1929
|
-
topP?: number;
|
|
1930
|
-
stop?: string[];
|
|
1931
|
-
seed?: number;
|
|
1932
|
-
samplesPerRow?: number;
|
|
1933
|
-
};
|
|
1934
|
-
|
|
1935
|
-
export type BatchInferenceRunOutputType = 'field' | 'dataset';
|
|
1936
|
-
export type BatchInferenceRunOutput = {
|
|
1937
|
-
type: BatchInferenceRunOutputType;
|
|
1938
|
-
datasetId: DatasetId;
|
|
1939
|
-
fieldId: DatasetFieldId;
|
|
1940
|
-
};
|
|
1941
|
-
|
|
1942
|
-
export type BatchInferenceRunStatus = 'preparing' | 'awaiting_confirmation' | 'queued' | 'running' | 'writing_outputs' | 'stopping' | 'blocked' | 'completed' | 'failed' | 'canceled';
|
|
1943
|
-
export type BatchInferenceRunProgressPhase = 'queued' | 'preparing' | 'generating' | 'finishing';
|
|
1944
|
-
export type BatchInferenceRunProgressRequests = {
|
|
1945
|
-
done: number;
|
|
1946
|
-
total: number;
|
|
1947
|
-
};
|
|
1948
|
-
|
|
1949
|
-
export type BatchInferenceRunProgress = {
|
|
1950
|
-
phase: BatchInferenceRunProgressPhase;
|
|
1951
|
-
requests?: BatchInferenceRunProgressRequests;
|
|
1952
|
-
} | null;
|
|
1953
|
-
|
|
1954
|
-
export type BatchInferenceRunBlockedReason = 'funds' | 'payment' | 'billing_review' | null;
|
|
1955
|
-
export type BatchInferenceRunError = {
|
|
1956
|
-
code: 'requests_export_failed' | 'no_requests' | 'selection_too_large' | 'billing_rejected' | 'provider_failed' | 'provider_timeout' | 'invalid_provider_output' | 'output_rejected' | 'payment_window_expired' | 'canceled';
|
|
1957
|
-
message: string;
|
|
1958
|
-
} | null;
|
|
1959
|
-
|
|
1960
|
-
export type BatchInferenceRunQuote = {
|
|
1961
|
-
requests: number;
|
|
1962
|
-
skippedRows: number;
|
|
1963
|
-
maximumCharge: string;
|
|
1964
|
-
currency: 'USD';
|
|
1965
|
-
confirmBefore: string | null;
|
|
1966
|
-
} | null;
|
|
1967
|
-
|
|
1968
|
-
export type BatchInferenceRunResultErrorCounts = {[key: string]: number};
|
|
1969
|
-
|
|
1970
|
-
export type BatchInferenceRunResultErrorSamplesItem = {
|
|
1971
|
-
itemId: string;
|
|
1972
|
-
code: string;
|
|
1973
|
-
message: string;
|
|
1974
|
-
};
|
|
1975
|
-
|
|
1976
|
-
export type BatchInferenceRunResult = {
|
|
1977
|
-
written: number;
|
|
1978
|
-
failed: number;
|
|
1979
|
-
truncated: number;
|
|
1980
|
-
inputTokens: number;
|
|
1981
|
-
outputTokens: number;
|
|
1982
|
-
errorCounts: BatchInferenceRunResultErrorCounts;
|
|
1983
|
-
errorSamples: BatchInferenceRunResultErrorSamplesItem[];
|
|
1984
|
-
} | null;
|
|
1985
|
-
|
|
1986
|
-
export interface BatchInferenceRun {
|
|
1987
|
-
id: BatchInferenceRunId;
|
|
1988
|
-
projectId: ProjectId;
|
|
1989
|
-
datasetId: DatasetId;
|
|
1990
|
-
model: BatchInferenceModel;
|
|
1991
|
-
mode: BatchInferenceMode;
|
|
1992
|
-
sampling: BatchInferenceRunSampling;
|
|
1993
|
-
output: BatchInferenceRunOutput;
|
|
1994
|
-
status: BatchInferenceRunStatus;
|
|
1995
|
-
progress: BatchInferenceRunProgress;
|
|
1996
|
-
blockedReason: BatchInferenceRunBlockedReason;
|
|
1997
|
-
message: string | null;
|
|
1998
|
-
error: BatchInferenceRunError;
|
|
1999
|
-
quote: BatchInferenceRunQuote;
|
|
2000
|
-
chargedAmount: string | null;
|
|
2001
|
-
result: BatchInferenceRunResult;
|
|
2002
|
-
createdAt: string;
|
|
2003
|
-
updatedAt: string;
|
|
2004
|
-
}
|
|
2005
|
-
|
|
2006
1429
|
export interface DatasetItemFilter {
|
|
2007
1430
|
fieldValues?: DatasetFieldValueConditions;
|
|
2008
1431
|
fieldSources?: DatasetFieldSourceConditions;
|
|
@@ -2013,91 +1436,6 @@ export interface DatasetItemFilter {
|
|
|
2013
1436
|
createdBefore?: string;
|
|
2014
1437
|
}
|
|
2015
1438
|
|
|
2016
|
-
export type ListBaseModels200 = {
|
|
2017
|
-
baseModels: BaseModel[];
|
|
2018
|
-
};
|
|
2019
|
-
|
|
2020
|
-
export type ListProjectModelsParams = {
|
|
2021
|
-
limit?: number;
|
|
2022
|
-
offset?: number;
|
|
2023
|
-
};
|
|
2024
|
-
|
|
2025
|
-
export type ListProjectModels200 = {
|
|
2026
|
-
models: Model[];
|
|
2027
|
-
pagination: Pagination;
|
|
2028
|
-
};
|
|
2029
|
-
|
|
2030
|
-
export type CreateProjectModelBody = {
|
|
2031
|
-
name: string;
|
|
2032
|
-
description?: string | null;
|
|
2033
|
-
baseModelId: BaseModelId;
|
|
2034
|
-
};
|
|
2035
|
-
|
|
2036
|
-
export type ListModelVersionsParams = {
|
|
2037
|
-
limit?: number;
|
|
2038
|
-
offset?: number;
|
|
2039
|
-
};
|
|
2040
|
-
|
|
2041
|
-
export type ListModelVersions200 = {
|
|
2042
|
-
versions: ModelVersion[];
|
|
2043
|
-
pagination: Pagination;
|
|
2044
|
-
};
|
|
2045
|
-
|
|
2046
|
-
export type ListProjectTrainingsParams = {
|
|
2047
|
-
limit?: number;
|
|
2048
|
-
offset?: number;
|
|
2049
|
-
};
|
|
2050
|
-
|
|
2051
|
-
export type ListProjectTrainings200 = {
|
|
2052
|
-
trainings: Training[];
|
|
2053
|
-
pagination: Pagination;
|
|
2054
|
-
};
|
|
2055
|
-
|
|
2056
|
-
export type CreateProjectTrainingBody = {
|
|
2057
|
-
name: string;
|
|
2058
|
-
configuration: TrainingConfigurationInput;
|
|
2059
|
-
};
|
|
2060
|
-
|
|
2061
|
-
export type UpdateTrainingMetadataBody = {
|
|
2062
|
-
name?: string;
|
|
2063
|
-
archived?: boolean;
|
|
2064
|
-
};
|
|
2065
|
-
|
|
2066
|
-
export type ReplaceTrainingConfigurationBody = {
|
|
2067
|
-
configuration: TrainingConfigurationInput;
|
|
2068
|
-
};
|
|
2069
|
-
|
|
2070
|
-
export type PrepareTrainingCostEstimateInputsBody = { [key: string]: unknown };
|
|
2071
|
-
|
|
2072
|
-
export type EstimateTrainingCostBody = {
|
|
2073
|
-
inputSetId: TrainingCostEstimateInputSetId;
|
|
2074
|
-
};
|
|
2075
|
-
|
|
2076
|
-
export type CreateTrainingRunBody = {
|
|
2077
|
-
inputSetId: string;
|
|
2078
|
-
estimateFingerprint: string;
|
|
2079
|
-
versionName: string;
|
|
2080
|
-
};
|
|
2081
|
-
|
|
2082
|
-
export type ListTrainingRunsParams = {
|
|
2083
|
-
limit?: number;
|
|
2084
|
-
offset?: number;
|
|
2085
|
-
};
|
|
2086
|
-
|
|
2087
|
-
export type ListTrainingRuns200 = {
|
|
2088
|
-
trainingRuns: TrainingRun[];
|
|
2089
|
-
pagination: Pagination;
|
|
2090
|
-
};
|
|
2091
|
-
|
|
2092
|
-
export type GetTrainingRunLogsParams = {
|
|
2093
|
-
cursor?: string;
|
|
2094
|
-
limit?: number;
|
|
2095
|
-
};
|
|
2096
|
-
|
|
2097
|
-
export type GetTrainingRunMetricHistoryParams = {
|
|
2098
|
-
resolution?: number;
|
|
2099
|
-
};
|
|
2100
|
-
|
|
2101
1439
|
export type ListAudienceSpecializationsParams = {
|
|
2102
1440
|
limit?: number;
|
|
2103
1441
|
offset?: number;
|
|
@@ -2501,48 +1839,3 @@ export type CreatePipelineCheckBody = {
|
|
|
2501
1839
|
checkId: string;
|
|
2502
1840
|
};
|
|
2503
1841
|
|
|
2504
|
-
export type CreateBatchInferenceRunBodyItemFilter = {
|
|
2505
|
-
fieldValues?: DatasetFieldValueConditions;
|
|
2506
|
-
fieldSources?: DatasetFieldSourceConditions;
|
|
2507
|
-
missingRevisionFields?: string[];
|
|
2508
|
-
slice?: DatasetSliceSelection;
|
|
2509
|
-
parts?: DatasetSplitPartInclusion;
|
|
2510
|
-
excludeParts?: DatasetSplitPartExclusions;
|
|
2511
|
-
};
|
|
2512
|
-
|
|
2513
|
-
export type CreateBatchInferenceRunBodySampling = {
|
|
2514
|
-
maxOutputTokens: number;
|
|
2515
|
-
temperature?: number;
|
|
2516
|
-
topP?: number;
|
|
2517
|
-
stop?: string[];
|
|
2518
|
-
seed?: number;
|
|
2519
|
-
samplesPerRow?: number;
|
|
2520
|
-
};
|
|
2521
|
-
|
|
2522
|
-
export type CreateBatchInferenceRunBodyOutput = {
|
|
2523
|
-
type: 'field';
|
|
2524
|
-
fieldName: string;
|
|
2525
|
-
} | {
|
|
2526
|
-
type: 'dataset';
|
|
2527
|
-
name: string;
|
|
2528
|
-
};
|
|
2529
|
-
|
|
2530
|
-
export type CreateBatchInferenceRunBody = {
|
|
2531
|
-
datasetId: string;
|
|
2532
|
-
itemFilter?: CreateBatchInferenceRunBodyItemFilter;
|
|
2533
|
-
model: BatchInferenceModel;
|
|
2534
|
-
mode?: BatchInferenceMode;
|
|
2535
|
-
sampling: CreateBatchInferenceRunBodySampling;
|
|
2536
|
-
output: CreateBatchInferenceRunBodyOutput;
|
|
2537
|
-
};
|
|
2538
|
-
|
|
2539
|
-
export type ListBatchInferenceRunsParams = {
|
|
2540
|
-
limit?: number;
|
|
2541
|
-
offset?: number;
|
|
2542
|
-
};
|
|
2543
|
-
|
|
2544
|
-
export type ListBatchInferenceRuns200 = {
|
|
2545
|
-
batchInferenceRuns: BatchInferenceRun[];
|
|
2546
|
-
pagination: Pagination;
|
|
2547
|
-
};
|
|
2548
|
-
|