runbios-sdk 0.2.1-dev.85 → 0.2.1-dev.91

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
@@ -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.85";
37
+ export declare const VERSION = "0.2.1-dev.91";
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.85';
37
+ export const VERSION = '0.2.1-dev.91';
38
38
  export class RunBiOS {
39
39
  /** Search models, fetch configs, check adapter compatibility. */
40
40
  models;
@@ -121,6 +121,10 @@ function buildTrainingRequest(params) {
121
121
  throw new Error('RunBiOS: evalSplit must be a numeric ratio');
122
122
  config.split_dataset_ratio = ratio;
123
123
  }
124
+ if (params.earlyStoppingPatience !== undefined)
125
+ config.early_stopping_patience = params.earlyStoppingPatience;
126
+ if (params.overlongPolicy !== undefined)
127
+ config.overlong_policy = params.overlongPolicy;
124
128
  if (params.extraConfig)
125
129
  Object.assign(config, params.extraConfig);
126
130
  if (Object.keys(config).length > 0)
package/dist/types.d.ts CHANGED
@@ -623,6 +623,10 @@ export interface TrainingCreateParams {
623
623
  evalSteps?: number;
624
624
  /** Evaluation dataset split. */
625
625
  evalSplit?: string | number;
626
+ /** Early stopping on validation loss: stop after N evaluations without a new best (0 = off; default 3 with a split). */
627
+ earlyStoppingPatience?: number;
628
+ /** Samples longer than maxSeqLength: 'truncate' keeps the last tokens (default), 'drop' skips them. */
629
+ overlongPolicy?: 'truncate' | 'drop';
626
630
  /** Additional configuration passed directly to the training backend. */
627
631
  extraConfig?: Record<string, unknown>;
628
632
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runbios-sdk",
3
- "version": "0.2.1-dev.85",
3
+ "version": "0.2.1-dev.91",
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",