runbios-sdk 0.2.1-dev.103 → 0.2.1-dev.104
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 +2 -2
- package/dist/types.d.ts +4 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { Inference } from './resources/inference.js';
|
|
|
34
34
|
* SDK version. Sent as part of the User-Agent header.
|
|
35
35
|
* Must match package.json "version" -- enforced by a contract test.
|
|
36
36
|
*/
|
|
37
|
-
export declare const VERSION = "0.2.1-dev.
|
|
37
|
+
export declare const VERSION = "0.2.1-dev.104";
|
|
38
38
|
export declare class RunBiOS {
|
|
39
39
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
40
40
|
readonly models: Models;
|
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ import { Inference } from './resources/inference.js';
|
|
|
34
34
|
* SDK version. Sent as part of the User-Agent header.
|
|
35
35
|
* Must match package.json "version" -- enforced by a contract test.
|
|
36
36
|
*/
|
|
37
|
-
export const VERSION = '0.2.1-dev.
|
|
37
|
+
export const VERSION = '0.2.1-dev.104';
|
|
38
38
|
export class RunBiOS {
|
|
39
39
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
40
40
|
models;
|
|
@@ -67,8 +67,6 @@ function buildTrainingRequest(params) {
|
|
|
67
67
|
body.integration_id = params.integrationId;
|
|
68
68
|
if (params.networkVolumeId !== undefined)
|
|
69
69
|
body.network_volume_id = params.networkVolumeId;
|
|
70
|
-
if (params.cacheDataset !== undefined)
|
|
71
|
-
body.cache_dataset = params.cacheDataset;
|
|
72
70
|
if (params.datasetSampleLimits !== undefined)
|
|
73
71
|
body.dataset_sample_limits = params.datasetSampleLimits;
|
|
74
72
|
if (params.datasetMixing !== undefined)
|
|
@@ -78,6 +76,8 @@ function buildTrainingRequest(params) {
|
|
|
78
76
|
const config = {};
|
|
79
77
|
if (params.epochs !== undefined)
|
|
80
78
|
config.num_train_epochs = params.epochs;
|
|
79
|
+
if (params.maxSteps !== undefined)
|
|
80
|
+
config.max_steps = params.maxSteps;
|
|
81
81
|
if (params.batchSize !== undefined)
|
|
82
82
|
config.per_device_train_batch_size = params.batchSize;
|
|
83
83
|
if (params.gradientAccumulation !== undefined)
|
package/dist/types.d.ts
CHANGED
|
@@ -565,8 +565,10 @@ export interface TrainingCreateParams {
|
|
|
565
565
|
name?: string;
|
|
566
566
|
/** Target workspace ID. */
|
|
567
567
|
workspaceId?: string;
|
|
568
|
-
/** Number of training epochs. */
|
|
568
|
+
/** Number of training epochs. Governs the full run when maxSteps is omitted. */
|
|
569
569
|
epochs?: number;
|
|
570
|
+
/** Optional hard step cap that overrides epochs. Omit for no cap and all configured epochs. */
|
|
571
|
+
maxSteps?: number;
|
|
570
572
|
/** Training batch size per device. */
|
|
571
573
|
batchSize?: number;
|
|
572
574
|
/** Gradient accumulation steps. */
|
|
@@ -609,7 +611,7 @@ export interface TrainingCreateParams {
|
|
|
609
611
|
integrationId?: string;
|
|
610
612
|
/** Existing network volume to attach. */
|
|
611
613
|
networkVolumeId?: string;
|
|
612
|
-
/**
|
|
614
|
+
/** @deprecated No effect. Prepared data is transient; exact resume rebuilds it from pinned source metadata and verifies its checksum. */
|
|
613
615
|
cacheDataset?: boolean;
|
|
614
616
|
/** Legacy dataset ordering mode. Prefer mixing for weighted/phased plans. */
|
|
615
617
|
datasetMixing?: 'shuffle' | 'sequential' | 'interleave' | 'random' | 'curriculum';
|