runbios-sdk 0.5.0-rc.360 → 0.5.0-rc.366

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 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.5.0-rc.360";
39
+ export declare const VERSION = "0.5.0-rc.366";
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.5.0-rc.360';
39
+ export const VERSION = '0.5.0-rc.366';
40
40
  export class RunBiOS {
41
41
  /** Search models, fetch configs, check adapter compatibility. */
42
42
  models;
@@ -160,6 +160,13 @@ function buildTrainingRequest(params) {
160
160
  config.early_stopping_patience = params.earlyStoppingPatience;
161
161
  if (params.overlongPolicy !== undefined)
162
162
  config.overlong_policy = params.overlongPolicy;
163
+ // Managed training choices (see managedOptions()).
164
+ if (params.precision !== undefined)
165
+ config.precision = params.precision;
166
+ if (params.optim !== undefined)
167
+ config.optim = params.optim;
168
+ if (params.validationRows !== undefined)
169
+ config.split_dataset_samples = params.validationRows;
163
170
  if (params.extraConfig)
164
171
  Object.assign(config, params.extraConfig);
165
172
  if (Object.keys(config).length > 0)
package/dist/types.d.ts CHANGED
@@ -730,6 +730,12 @@ export interface TrainingCreateParams {
730
730
  earlyStoppingPatience?: number;
731
731
  /** Samples longer than maxSeqLength: 'truncate' keeps the last tokens (default), 'drop' skips them. */
732
732
  overlongPolicy?: 'truncate' | 'drop';
733
+ /** Managed training: precision recipe from managedOptions() (bf16 or fp8). */
734
+ precision?: 'bf16' | 'fp8';
735
+ /** Managed training: optimizer state, adamw_torch_fused (16-bit) or adamw_8bit (8-bit). */
736
+ optim?: 'adamw_torch_fused' | 'adamw_8bit';
737
+ /** Managed training: validation rows held out and never trained on (0 turns validation off). */
738
+ validationRows?: number;
733
739
  /** Additional configuration passed directly to the training backend. */
734
740
  extraConfig?: Record<string, unknown>;
735
741
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runbios-sdk",
3
- "version": "0.5.0-rc.360",
3
+ "version": "0.5.0-rc.366",
4
4
  "description": "Official TypeScript SDK for the Run BiOS training and deployment platform API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",