runbios-sdk 0.2.1-dev.123 → 0.2.1-dev.126
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/resources/training.js +4 -0
- package/dist/types.d.ts +21 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ import { Loop } from './resources/loop.js';
|
|
|
36
36
|
* SDK version. Sent as part of the User-Agent header.
|
|
37
37
|
* Must match package.json "version" -- enforced by a contract test.
|
|
38
38
|
*/
|
|
39
|
-
export declare const VERSION = "0.2.1-dev.
|
|
39
|
+
export declare const VERSION = "0.2.1-dev.126";
|
|
40
40
|
export declare class RunBiOS {
|
|
41
41
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
42
42
|
readonly models: Models;
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import { Loop } from './resources/loop.js';
|
|
|
36
36
|
* SDK version. Sent as part of the User-Agent header.
|
|
37
37
|
* Must match package.json "version" -- enforced by a contract test.
|
|
38
38
|
*/
|
|
39
|
-
export const VERSION = '0.2.1-dev.
|
|
39
|
+
export const VERSION = '0.2.1-dev.126';
|
|
40
40
|
export class RunBiOS {
|
|
41
41
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
42
42
|
models;
|
|
@@ -69,6 +69,10 @@ function buildTrainingRequest(params) {
|
|
|
69
69
|
body.network_volume_id = params.networkVolumeId;
|
|
70
70
|
if (params.datasetSampleLimits !== undefined)
|
|
71
71
|
body.dataset_sample_limits = params.datasetSampleLimits;
|
|
72
|
+
if (params.datasetSampling !== undefined)
|
|
73
|
+
body.dataset_sampling = params.datasetSampling;
|
|
74
|
+
if (params.datasetSamplingStrategy !== undefined)
|
|
75
|
+
body.dataset_sampling_strategy = params.datasetSamplingStrategy;
|
|
72
76
|
if (params.datasetMixing !== undefined)
|
|
73
77
|
body.dataset_mixing = params.datasetMixing;
|
|
74
78
|
if (params.mixing !== undefined)
|
package/dist/types.d.ts
CHANGED
|
@@ -548,6 +548,21 @@ export interface TrainingCreateParams {
|
|
|
548
548
|
* large dataset without importing a trimmed copy.
|
|
549
549
|
*/
|
|
550
550
|
datasetSampleLimits?: Record<string, number>;
|
|
551
|
+
/**
|
|
552
|
+
* Per-dataset sampling (key = a dataset ID from datasetIds): exactly one of
|
|
553
|
+
* `rows` or `percent` (of the dataset's usable rows for this method). Asking
|
|
554
|
+
* for more than the dataset holds uses every usable row and the run says
|
|
555
|
+
* so. Resolved to a row count identically by preflight and create, recorded
|
|
556
|
+
* in the mix manifest, and reproduced exactly on resume.
|
|
557
|
+
*/
|
|
558
|
+
datasetSampling?: Record<string, DatasetSampling>;
|
|
559
|
+
/**
|
|
560
|
+
* How sampled rows are chosen: `first` (default) keeps the first N usable
|
|
561
|
+
* rows in file order -- what a curriculum wants; `random` draws a seeded
|
|
562
|
+
* uniform sample of the usable rows (kept in file order, seed = the mixing
|
|
563
|
+
* plan's seed, so a resume draws the same rows).
|
|
564
|
+
*/
|
|
565
|
+
datasetSamplingStrategy?: 'first' | 'random';
|
|
551
566
|
/** Training method. */
|
|
552
567
|
method: TrainingMethod;
|
|
553
568
|
/** Adapter type. */
|
|
@@ -1211,6 +1226,12 @@ export interface GPUPricingResponse {
|
|
|
1211
1226
|
stale?: boolean;
|
|
1212
1227
|
stale_message?: string;
|
|
1213
1228
|
}
|
|
1229
|
+
/** One dataset's sampling request: exactly one of rows or percent. */
|
|
1230
|
+
export interface DatasetSampling {
|
|
1231
|
+
rows?: number;
|
|
1232
|
+
/** Percent (0-100) of the dataset's usable rows for the training method. */
|
|
1233
|
+
percent?: number;
|
|
1234
|
+
}
|
|
1214
1235
|
/** Parameters understood by the authenticated training GPU-options endpoint. */
|
|
1215
1236
|
export interface GPUOptionsParams {
|
|
1216
1237
|
modelId: string;
|