runbios-sdk 0.6.1 → 0.6.2-rc.401
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/client.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/resources/inference.js +2 -2
- package/dist/resources/models.d.ts +1 -1
- package/dist/resources/models.js +1 -1
- package/dist/resources/training.d.ts +19 -3
- package/dist/resources/training.js +20 -2
- package/dist/types.d.ts +36 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ surface is added, renamed or removed, the patch for a fix inside an unchanged
|
|
|
5
5
|
surface. The SDK, the Python SDK (`runbios-sdk` on PyPI) and the MCP server
|
|
6
6
|
(`runbios-mcp`) are released together, at one version.
|
|
7
7
|
|
|
8
|
+
## 0.6.2
|
|
9
|
+
|
|
10
|
+
Changed
|
|
11
|
+
|
|
12
|
+
- Ships alongside runbios-mcp 0.6.2.
|
|
13
|
+
|
|
8
14
|
## 0.6.1
|
|
9
15
|
|
|
10
16
|
Changed
|
package/README.md
CHANGED
|
@@ -429,7 +429,7 @@ answers with the live version, and each new version takes over the name.
|
|
|
429
429
|
|
|
430
430
|
### Models
|
|
431
431
|
|
|
432
|
-
The catalog lists only models hosted on Run BiOS (the platform's own
|
|
432
|
+
The catalog lists only models hosted on Run BiOS (the platform's own
|
|
433
433
|
registry, mirrored in Run BiOS storage) — every result can be trained and
|
|
434
434
|
deployed; it is never a live Hugging Face search.
|
|
435
435
|
|
package/dist/client.js
CHANGED
|
@@ -431,7 +431,7 @@ export class HttpClient {
|
|
|
431
431
|
constructor(config) {
|
|
432
432
|
// Default host stays api.runbios.ai for now; cutover to api.runbios.ai is
|
|
433
433
|
// planned once its DNS exists.
|
|
434
|
-
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api.runbios.ai').replace(/\/+$/, '');
|
|
434
|
+
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-staging.runbios.ai').replace(/\/+$/, '');
|
|
435
435
|
this.apiKey = config.apiKey ?? envApiKey();
|
|
436
436
|
this.accessToken = config.accessToken;
|
|
437
437
|
this.orgId = config.orgId;
|
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.6.
|
|
39
|
+
export declare const VERSION = "0.6.2-rc.401";
|
|
40
40
|
export declare class RunBiOS {
|
|
41
41
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
42
42
|
readonly models: Models;
|
|
@@ -79,7 +79,7 @@ export { Wallet } from './resources/wallet.js';
|
|
|
79
79
|
export { GPU, type GPURecommendation } from './resources/gpu.js';
|
|
80
80
|
export { LoopNoVersionError, type LoopChatParams, type LoopChatResult, } from './resources/loop-chat.js';
|
|
81
81
|
export { Inference, validateChatRequest, parseSSE, buildInferenceRequest, contextSizingBasis, type ContextSizingBasis, CONTEXT_DEFAULT_CEILING, CONTEXT_EDITABLE_FLOOR, type ChatMessage, type FunctionTool, type ChatCompletionParams, type ChatCompletionResponse, type ChatCompletionChunk, type InferenceVerbParams, type CompletionParams, type EmbeddingParams, type RerankParams, type AnthropicMessageParams, type AnthropicMessageResponse, type LoopCaptureOption, type LoopSampleIdOnResult, LOOP_PIPELINE_HEADER, LOOP_SAMPLE_ID_HEADER, type ServerlessUsageWindow, type ServerlessTimeseriesMetric, type ServerlessWorkspaceLimits, type ServerlessUsageEnvelope, type ServerlessUsageOverviewResponse, type ServerlessUsageRowsResponse, type ServerlessUsageTimeseriesResponse, type ServerlessUsageDailyResponse, type ServerlessSavingsTotals, type ServerlessSavingsPeriod, type ServerlessUsageSavingsResponse, } from './resources/inference.js';
|
|
82
|
-
export type { BiOSConfig, PaginatedResponse, ApiErrorBody, AvailableGpuAlternative, CapacityMinimumRequirement, InferenceBookingAccepted, Model, ModelSearchParams, ModelSearchResponse, ModelDetailResponse, InferenceModel, InferenceModelListResponse, ModelConfig, Dataset, DatasetListParams, DatasetListResponse, DatasetUploadParams, DatasetPreview, DatasetPreviewParams, DatasetImportHFParams, DatasetRegisterHFParams, DatasetHubSearchParams, DatasetHubPreviewParams, DatasetValidation, DatasetFormatVariant, DatasetFormatSpec, DatasetFormatSpecs, DatasetStorageUsage, TrainingMethod, RLHFAlgorithm, AdapterType, TrainingJobStatus, TrainingStatusFilter, TrainingCreateParams, TrainingStartFromParams, TrainingStartFrom, TrainingExportStep, TrainingListParams, TrainingListResponse, TrainingJob, TrainingMetrics, TrainingResourceMetrics, TrainingDeviceMetrics, MetricPoint, MetricGraphConfig, TrainingCheckpoint, TrainingLogs, TrainingLogEntry, TrainingStopResponse, TrainingResumeResponse, CanonicalTrainingRequest, TrainingPreflightDataset, TrainingPreflightWarning, TrainingPreflightResponse, TrainingCostEstimate, ManagedTrainingOption, ManagedTrainingOptions, ManagedTrainingOptionsParams, TrainingCapabilityChoice, TrainingConfigFieldCapability, TrainingCapabilities, TrainingFeature, GPUChoice, WalletBalance, Transaction, TransactionListResponse, TransactionListParams, GPUInfo, GPUPricingResponse, GPUOptionsParams, TrainingRecommendParams, TrainingAdvisorVerdict, TrainingAdvisorRecommendation, TrainingAdvisorUserShape, TrainingAdvisorJustification, TrainingAdvisorBasis, GPUOption, GPUOptionSuggestion, GPUOptionsResponse, InferenceStatus, InferenceCreateParams, InferenceUpdateParams, InferenceDeployment, InferenceDeploymentSummary, InferenceCreateResponse, InferenceListResponse, InferenceUpdateResponse, InferenceLifecycleResponse, InferenceDeleteResponse, InferenceGPUOptionMarket, InferenceGPUOption, InferenceGPUAlternative, InferenceGPUOptionsParams, InferenceGPUOptionsResponse, InferenceCanonicalRequest, InferencePreflightWarning, InferencePreflightResponse, AdapterCompatibility, AdapterCompatibilityResponse, AdapterCompatibilityParams, SupportedArchitecture, ArchitectureScope, SupportedArchitecturesResponse, ApiKey, ApiKeyScope, ApiKeyIntrospection, Organization, OrgMember, OrgInvite, Workspace, Integration, IntegrationCreateParams, StorageUsage, StorageObject, PromptTokensDetails, ChatCompletionUsage, ServingKind, TrainingRulePausedReason, TrainingTrigger, TrainingRecipe, TrainingRunState, TrainingVerdict, TrainingDecision, EvaluationStatus, EvaluationItemStatus, ItemErrorCode, EvaluationWinner, EvaluationItemWinnerFilter, ReportStatusFilter, ReportSort, EvaluationWarningCode, TrainingToolCall, TrainingMessage, TrainingRuleServing, TrainingRunPromoteRequest, TrainingRunRejectRequest, TrainingRunRollbackRequest, TrainingRunCancelRequest, TrainingRunListParams, TrainingRun, TrainingRunSummary, TrainingRunEvent, TrainingRunLinks, TrainingRunActions, EvaluationRef, EvaluationDecoding, EvaluationJudgeDimension, EvaluationDimensionScore, EvaluationWarning, EvaluationMargin, Evaluation, EvaluationItemJudge, EvaluationReferenceKind, EvaluationReference, EvaluationPairwiseOrder, EvaluationItemPairwise, EvaluationItemSide, EvaluationItem, EvaluationItemListParams, BenchmarkStatus, BenchmarkSourceKind, BenchmarkRunStatus, BenchmarkScoring, BenchmarkCheck, BenchmarkDimensionScore, Benchmark, BenchmarkItem, BenchmarkRun, BenchmarkRunItemSide, BenchmarkRunItem, BenchmarkRunItemListParams, BenchmarkHistoryPoint, BenchmarkSource, BenchmarkCreateParams, BenchmarkListParams, BenchmarkItemListParams, BenchmarkHistoryParams, BenchmarkRetireParams, InferenceAlias, InferenceAliasRequest, TrainingRuleDeleteResponse, TrainingRunListResponse, TrainingRunBenchmarkRun, TrainingRunResponse, TrainingRunActionResponse, EvaluationItemsResponse, BenchmarkRunItemsResponse, InferenceAliasListResponse, InferenceAliasResponse, InferenceAliasDeleteResponse, BenchmarkListResponse, BenchmarkItemsResponse, BenchmarkHistoryResponse, BenchmarkQuestionsParams, BenchmarkQuestionsTraining, BenchmarkQuestionResult, BenchmarkQuestion, BenchmarkQuestionsResponse, TrainingCurvePoint, TrainingCurve, TrainingRuleRunRefusalCode, TrainingRuleSaveRefusalCode, TrainingRuleMonthlyLimitRefusal, PipelineStatus, PipelineActiveRun, PipelineVersion, PipelineAttempt, AttemptExplanation, AttemptMissedBar, PipelineModelRole, PipelineComparedWith, PipelineTotals, PipelineTrainingsByResult, PipelineTrainingsByModel, PipelineSpentParts, PipelineAttemptListParams, PipelineAttemptListResponse, PipelineAttemptModelFilter, PipelineAttemptResultFilter, PipelineAttemptTrigger, PipelineSecondModel, PipelineSecondModelState, Lineage, PipelineChain, PipelineChainRebuild, TrainingRunRollbackRefusalCode, TrainingRunRetestRefusalCode, LoopTraceRebuild, LoopTraceDeleteResponse, PipelineAttemptOutcome, PipelineLiveDeploymentStatus, PipelineLiveDeployment, LoopStorageWhere, LoopStorage, Pipeline, PipelineListParams, PipelineListStatus, PipelineListResponse, PipelineTrainingSettings, PipelineTrainingDefaults, PipelineTrainingRequest, PipelineResponse, PipelineTrainWhen, PipelineSchedule, PipelineWriteRequest, PipelineMutationResponse, PipelineImportParams, PipelineFloors, HeldBackFloors, LoopModel, LoopModelsResponse, LoopUnavailableModel, LoopUnavailableReasonCode, LoopTracePipeline, LoopTracePipelinesResponse, LoopMetricsHistoryParams, LoopMetricPoint, LoopSignalDay, LoopMetricsHistory, LoopCaptureFeedback, LoopFeedbackWord, LoopCaptureHealth, LoopCaptureMiss, LoopSignalManyItem, LoopSignalManyResult, PromotionPolicyState, RuleBenchmark, PipelineBenchmarksResponse, PipelineBenchmarkAttachParams, PipelineBenchmarkMoveParams, CompareBenchmark, VersionBenchmarkScore, PromotionMeasurement, PromotionOutcome, VersionHoldout, VersionCommonSet, VersionScores, VersionScoreDifference, VersionCompareResponse, VersionCompareParams, TrainingRunPromotion, VerdictCheck, VerdictCheckKey, VerdictChecksWithheld, TrainingRunCost, AttemptDirection, AttemptHoldout, AttemptCompareSide, AttemptSharedSample, AttemptSharedFigures, AttemptBenchmarkSide, AttemptCompareBenchmark, AttemptCompareItemSide, AttemptCompareItem, AttemptCompareResponse, AttemptCompareParams, LoopTraceJudge, LoopJudgeFilter, LoopSampleState, LoopSampleStateName, LoopSampleDay, LoopImportRefusal, PipelineAutoScoring, PipelineAutoScoringStatus, LoopDatasetFeedback, LoopSampleOrigin, LoopFeedbackCounts, LoopPipelineCounts, LoopDatasetPipelineRef, LoopDataset, LoopDatasetWrite, LoopDatasetCreate, LoopDatasetPreviewParams, LoopDatasetPreviewModel, LoopDatasetPreview, LoopDatasetListParams, LoopDatasetListResponse, LoopDatasetCreator, LoopDatasetLearnedBy, LoopDatasetExportParams, LoopDatasetExportLine, LoopDatasetExport, LoopDatasetDeleteResponse, PipelineDatasetRef, PipelineConditions, PipelineConditionsWrite, TrainedOnDataset, TrainedOn, } from './types.js';
|
|
82
|
+
export type { BiOSConfig, PaginatedResponse, ApiErrorBody, AvailableGpuAlternative, CapacityMinimumRequirement, InferenceBookingAccepted, Model, ModelSearchParams, ModelSearchResponse, ModelDetailResponse, InferenceModel, InferenceModelListResponse, ModelConfig, Dataset, DatasetListParams, DatasetListResponse, DatasetUploadParams, DatasetPreview, DatasetPreviewParams, DatasetImportHFParams, DatasetRegisterHFParams, DatasetHubSearchParams, DatasetHubPreviewParams, DatasetValidation, DatasetFormatVariant, DatasetFormatSpec, DatasetFormatSpecs, DatasetStorageUsage, TrainingMethod, RLHFAlgorithm, AdapterType, TrainingJobStatus, TrainingStatusFilter, TrainingCreateParams, TrainingStartFromParams, TrainingStartFrom, TrainingExportStep, TrainingListParams, TrainingListResponse, TrainingJob, TrainingMetrics, TrainingResourceMetrics, TrainingDeviceMetrics, MetricPoint, MetricGraphConfig, TrainingCheckpoint, TrainingLogs, TrainingLogEntry, TrainingStopResponse, TrainingSaveCheckpointResponse, TrainingResumeResponse, CanonicalTrainingRequest, TrainingPreflightDataset, TrainingPreflightWarning, TrainingPreflightResponse, TrainingCostEstimate, ManagedTrainingOption, ManagedTrainingOptions, ManagedTrainingOptionsParams, TrainingCapabilityChoice, TrainingConfigFieldCapability, TrainingCapabilities, TrainingFeature, GPUChoice, WalletBalance, Transaction, TransactionListResponse, TransactionListParams, GPUInfo, GPUPricingResponse, GPUOptionsParams, TrainingRecommendParams, TrainingAdvisorVerdict, TrainingAdvisorRecommendation, TrainingAdvisorUserShape, TrainingAdvisorJustification, TrainingAdvisorBasis, GPUOption, GPUOptionSuggestion, GPUOptionsResponse, InferenceStatus, InferenceCreateParams, InferenceUpdateParams, InferenceDeployment, InferenceDeploymentSummary, InferenceCreateResponse, InferenceListResponse, InferenceUpdateResponse, InferenceLifecycleResponse, InferenceDeleteResponse, InferenceGPUOptionMarket, InferenceGPUOption, InferenceGPUAlternative, InferenceGPUOptionsParams, InferenceGPUOptionsResponse, InferenceCanonicalRequest, InferencePreflightWarning, InferencePreflightResponse, AdapterCompatibility, AdapterCompatibilityResponse, AdapterCompatibilityParams, SupportedArchitecture, ArchitectureScope, SupportedArchitecturesResponse, ApiKey, ApiKeyScope, ApiKeyIntrospection, Organization, OrgMember, OrgInvite, Workspace, Integration, IntegrationCreateParams, StorageUsage, StorageObject, PromptTokensDetails, ChatCompletionUsage, ServingKind, TrainingRulePausedReason, TrainingTrigger, TrainingRecipe, TrainingRunState, TrainingVerdict, TrainingDecision, EvaluationStatus, EvaluationItemStatus, ItemErrorCode, EvaluationWinner, EvaluationItemWinnerFilter, ReportStatusFilter, ReportSort, EvaluationWarningCode, TrainingToolCall, TrainingMessage, TrainingRuleServing, TrainingRunPromoteRequest, TrainingRunRejectRequest, TrainingRunRollbackRequest, TrainingRunCancelRequest, TrainingRunListParams, TrainingRun, TrainingRunSummary, TrainingRunEvent, TrainingRunLinks, TrainingRunActions, EvaluationRef, EvaluationDecoding, EvaluationJudgeDimension, EvaluationDimensionScore, EvaluationWarning, EvaluationMargin, Evaluation, EvaluationItemJudge, EvaluationReferenceKind, EvaluationReference, EvaluationPairwiseOrder, EvaluationItemPairwise, EvaluationItemSide, EvaluationItem, EvaluationItemListParams, BenchmarkStatus, BenchmarkSourceKind, BenchmarkRunStatus, BenchmarkScoring, BenchmarkCheck, BenchmarkDimensionScore, Benchmark, BenchmarkItem, BenchmarkRun, BenchmarkRunItemSide, BenchmarkRunItem, BenchmarkRunItemListParams, BenchmarkHistoryPoint, BenchmarkSource, BenchmarkCreateParams, BenchmarkListParams, BenchmarkItemListParams, BenchmarkHistoryParams, BenchmarkRetireParams, InferenceAlias, InferenceAliasRequest, TrainingRuleDeleteResponse, TrainingRunListResponse, TrainingRunBenchmarkRun, TrainingRunResponse, TrainingRunActionResponse, EvaluationItemsResponse, BenchmarkRunItemsResponse, InferenceAliasListResponse, InferenceAliasResponse, InferenceAliasDeleteResponse, BenchmarkListResponse, BenchmarkItemsResponse, BenchmarkHistoryResponse, BenchmarkQuestionsParams, BenchmarkQuestionsTraining, BenchmarkQuestionResult, BenchmarkQuestion, BenchmarkQuestionsResponse, TrainingCurvePoint, TrainingCurve, TrainingRuleRunRefusalCode, TrainingRuleSaveRefusalCode, TrainingRuleMonthlyLimitRefusal, PipelineStatus, PipelineActiveRun, PipelineVersion, PipelineAttempt, AttemptExplanation, AttemptMissedBar, PipelineModelRole, PipelineComparedWith, PipelineTotals, PipelineTrainingsByResult, PipelineTrainingsByModel, PipelineSpentParts, PipelineAttemptListParams, PipelineAttemptListResponse, PipelineAttemptModelFilter, PipelineAttemptResultFilter, PipelineAttemptTrigger, PipelineSecondModel, PipelineSecondModelState, Lineage, PipelineChain, PipelineChainRebuild, TrainingRunRollbackRefusalCode, TrainingRunRetestRefusalCode, LoopTraceRebuild, LoopTraceDeleteResponse, PipelineAttemptOutcome, PipelineLiveDeploymentStatus, PipelineLiveDeployment, LoopStorageWhere, LoopStorage, Pipeline, PipelineListParams, PipelineListStatus, PipelineListResponse, PipelineTrainingSettings, PipelineTrainingDefaults, PipelineTrainingRequest, PipelineResponse, PipelineTrainWhen, PipelineSchedule, PipelineWriteRequest, PipelineMutationResponse, PipelineImportParams, PipelineFloors, HeldBackFloors, LoopModel, LoopModelsResponse, LoopUnavailableModel, LoopUnavailableReasonCode, LoopTracePipeline, LoopTracePipelinesResponse, LoopMetricsHistoryParams, LoopMetricPoint, LoopSignalDay, LoopMetricsHistory, LoopCaptureFeedback, LoopFeedbackWord, LoopCaptureHealth, LoopCaptureMiss, LoopSignalManyItem, LoopSignalManyResult, PromotionPolicyState, RuleBenchmark, PipelineBenchmarksResponse, PipelineBenchmarkAttachParams, PipelineBenchmarkMoveParams, CompareBenchmark, VersionBenchmarkScore, PromotionMeasurement, PromotionOutcome, VersionHoldout, VersionCommonSet, VersionScores, VersionScoreDifference, VersionCompareResponse, VersionCompareParams, TrainingRunPromotion, VerdictCheck, VerdictCheckKey, VerdictChecksWithheld, TrainingRunCost, AttemptDirection, AttemptHoldout, AttemptCompareSide, AttemptSharedSample, AttemptSharedFigures, AttemptBenchmarkSide, AttemptCompareBenchmark, AttemptCompareItemSide, AttemptCompareItem, AttemptCompareResponse, AttemptCompareParams, LoopTraceJudge, LoopJudgeFilter, LoopSampleState, LoopSampleStateName, LoopSampleDay, LoopImportRefusal, PipelineAutoScoring, PipelineAutoScoringStatus, LoopDatasetFeedback, LoopSampleOrigin, LoopFeedbackCounts, LoopPipelineCounts, LoopDatasetPipelineRef, LoopDataset, LoopDatasetWrite, LoopDatasetCreate, LoopDatasetPreviewParams, LoopDatasetPreviewModel, LoopDatasetPreview, LoopDatasetListParams, LoopDatasetListResponse, LoopDatasetCreator, LoopDatasetLearnedBy, LoopDatasetExportParams, LoopDatasetExportLine, LoopDatasetExport, LoopDatasetDeleteResponse, PipelineDatasetRef, PipelineConditions, PipelineConditionsWrite, TrainedOnDataset, TrainedOn, } from './types.js';
|
|
83
83
|
/** The closed set of run states a training run never leaves. */
|
|
84
84
|
export { TERMINAL_RUN_STATES } from './types.js';
|
|
85
85
|
/** The most versions a pipeline may be set to make. */
|
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.6.
|
|
39
|
+
export const VERSION = '0.6.2-rc.401';
|
|
40
40
|
export class RunBiOS {
|
|
41
41
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
42
42
|
models;
|
|
@@ -67,7 +67,7 @@ function buildInferenceRequest(params) {
|
|
|
67
67
|
if (!params.hfModelId)
|
|
68
68
|
throw new Error('RunBiOS: hf_model deployments require hfModelId');
|
|
69
69
|
if (params.servingMode !== undefined && params.servingMode !== 'full') {
|
|
70
|
-
throw new Error('RunBiOS: hf_model deployments use servingMode=full; checkpoint modes are derived from the
|
|
70
|
+
throw new Error('RunBiOS: hf_model deployments use servingMode=full; checkpoint modes are derived from the checkpoint');
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
@@ -373,7 +373,7 @@ export class Inference {
|
|
|
373
373
|
this.key = config.inferenceKey || envInferenceKey() || envApiKey();
|
|
374
374
|
// Same default host as HttpClient (api.runbios.ai); api.runbios.ai cutover
|
|
375
375
|
// is planned once its DNS exists — update both call sites together.
|
|
376
|
-
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api.runbios.ai').replace(/\/+$/, '');
|
|
376
|
+
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-staging.runbios.ai').replace(/\/+$/, '');
|
|
377
377
|
this.timeout = config.timeout ?? 900_000;
|
|
378
378
|
this._http = http;
|
|
379
379
|
}
|
|
@@ -11,7 +11,7 @@ export declare class Models {
|
|
|
11
11
|
list(): Promise<InferenceModelListResponse>;
|
|
12
12
|
retrieve(modelId: string): Promise<InferenceModel>;
|
|
13
13
|
/**
|
|
14
|
-
* Search the Run BiOS model catalog -- the platform's own hosted
|
|
14
|
+
* Search the Run BiOS model catalog -- the platform's own hosted
|
|
15
15
|
* models. Every result is mirrored in Run BiOS storage and can be trained and
|
|
16
16
|
* deployed; this is never a live Hugging Face search. A model that is not
|
|
17
17
|
* listed here is not hosted on Run BiOS yet.
|
package/dist/resources/models.js
CHANGED
|
@@ -19,7 +19,7 @@ export class Models {
|
|
|
19
19
|
return asInferenceModel(await this._http.fetchGet(`/v1/models/${encodeURIComponent(id)}`));
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* Search the Run BiOS model catalog -- the platform's own hosted
|
|
22
|
+
* Search the Run BiOS model catalog -- the platform's own hosted
|
|
23
23
|
* models. Every result is mirrored in Run BiOS storage and can be trained and
|
|
24
24
|
* deployed; this is never a live Hugging Face search. A model that is not
|
|
25
25
|
* listed here is not hosted on Run BiOS yet.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpClient } from '../client.js';
|
|
2
|
-
import type { TrainingCreateParams, TrainingListParams, TrainingJob, TrainingListResponse, TrainingMetrics, TrainingMetricsOptions, TrainingCheckpoint, TrainingLogs, TrainingStopResponse, TrainingResumeResponse, TrainingPreflightResponse, TrainingRecommendParams, TrainingAdvisorVerdict, TrainingCapabilities, ManagedTrainingOptions, ManagedTrainingOptionsParams } from '../types.js';
|
|
2
|
+
import type { TrainingCreateParams, TrainingListParams, TrainingJob, TrainingListResponse, TrainingMetrics, TrainingMetricsOptions, TrainingCheckpoint, TrainingLogs, TrainingStopResponse, TrainingSaveCheckpointResponse, TrainingResumeResponse, TrainingPreflightResponse, TrainingRecommendParams, TrainingAdvisorVerdict, TrainingCapabilities, ManagedTrainingOptions, ManagedTrainingOptionsParams } from '../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Create, monitor, and manage fine-tuning training jobs.
|
|
5
5
|
*/
|
|
@@ -73,8 +73,8 @@ export declare class Training {
|
|
|
73
73
|
/**
|
|
74
74
|
* Managed training: what this model, method and adapter can be trained with
|
|
75
75
|
* -- the context lengths, precisions (`bf16`, `fp8`) and optimizer states
|
|
76
|
-
* (`adamw_torch_fused` = 16-bit, `adamw_8bit` = 8-bit)
|
|
77
|
-
*
|
|
76
|
+
* (`adamw_torch_fused` = 16-bit, `adamw_8bit` = 8-bit) the model
|
|
77
|
+
* supports. The platform chooses the hardware; every option listed is accepted
|
|
78
78
|
* by `preflight` and `create`. Empty `options`: not trainable yet.
|
|
79
79
|
*/
|
|
80
80
|
managedOptions(params: ManagedTrainingOptionsParams): Promise<ManagedTrainingOptions>;
|
|
@@ -176,6 +176,22 @@ export declare class Training {
|
|
|
176
176
|
* ```
|
|
177
177
|
*/
|
|
178
178
|
stop(id: string, keepData?: boolean): Promise<TrainingStopResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* Save the running job's current step now.
|
|
181
|
+
*
|
|
182
|
+
* The trainer saves after the step it is on and uploads that checkpoint at
|
|
183
|
+
* once, so a long run can be captured mid-way. It is listed by
|
|
184
|
+
* `checkpoints()` when the upload completes, and kept until the job ends
|
|
185
|
+
* (then only the best and the final checkpoint remain).
|
|
186
|
+
*
|
|
187
|
+
* @param id - Training job ID.
|
|
188
|
+
*
|
|
189
|
+
* @example
|
|
190
|
+
* ```ts
|
|
191
|
+
* await client.training.saveCheckpoint('job_abc123');
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
saveCheckpoint(id: string): Promise<TrainingSaveCheckpointResponse>;
|
|
179
195
|
/**
|
|
180
196
|
* Resume a stopped or `interrupted` training job from its last checkpoint.
|
|
181
197
|
*
|
|
@@ -305,8 +305,8 @@ export class Training {
|
|
|
305
305
|
/**
|
|
306
306
|
* Managed training: what this model, method and adapter can be trained with
|
|
307
307
|
* -- the context lengths, precisions (`bf16`, `fp8`) and optimizer states
|
|
308
|
-
* (`adamw_torch_fused` = 16-bit, `adamw_8bit` = 8-bit)
|
|
309
|
-
*
|
|
308
|
+
* (`adamw_torch_fused` = 16-bit, `adamw_8bit` = 8-bit) the model
|
|
309
|
+
* supports. The platform chooses the hardware; every option listed is accepted
|
|
310
310
|
* by `preflight` and `create`. Empty `options`: not trainable yet.
|
|
311
311
|
*/
|
|
312
312
|
async managedOptions(params) {
|
|
@@ -501,6 +501,24 @@ export class Training {
|
|
|
501
501
|
async stop(id, keepData = true) {
|
|
502
502
|
return this._http.fetchPost(`/api/training/jobs/${encodeURIComponent(id)}/stop`, { keep_data: keepData });
|
|
503
503
|
}
|
|
504
|
+
/**
|
|
505
|
+
* Save the running job's current step now.
|
|
506
|
+
*
|
|
507
|
+
* The trainer saves after the step it is on and uploads that checkpoint at
|
|
508
|
+
* once, so a long run can be captured mid-way. It is listed by
|
|
509
|
+
* `checkpoints()` when the upload completes, and kept until the job ends
|
|
510
|
+
* (then only the best and the final checkpoint remain).
|
|
511
|
+
*
|
|
512
|
+
* @param id - Training job ID.
|
|
513
|
+
*
|
|
514
|
+
* @example
|
|
515
|
+
* ```ts
|
|
516
|
+
* await client.training.saveCheckpoint('job_abc123');
|
|
517
|
+
* ```
|
|
518
|
+
*/
|
|
519
|
+
async saveCheckpoint(id) {
|
|
520
|
+
return this._http.fetchPost(`/api/training/jobs/${encodeURIComponent(id)}/checkpoints/save`);
|
|
521
|
+
}
|
|
504
522
|
/**
|
|
505
523
|
* Resume a stopped or `interrupted` training job from its last checkpoint.
|
|
506
524
|
*
|
package/dist/types.d.ts
CHANGED
|
@@ -8,13 +8,13 @@ export interface BiOSConfig {
|
|
|
8
8
|
orgId?: string;
|
|
9
9
|
/** Workspace ID. Optional when using API keys (resolved from the key). Can override for multi-workspace keys. */
|
|
10
10
|
workspaceId?: string;
|
|
11
|
-
/** Base URL for the API. Falls back to the RUNBIOS_BASE_URL environment variable (legacy: BIOS_BASE_URL), then the canonical https://api.runbios.ai hostname. */
|
|
11
|
+
/** Base URL for the API. Falls back to the RUNBIOS_BASE_URL environment variable (legacy: BIOS_BASE_URL), then the canonical https://api-staging.runbios.ai hostname. */
|
|
12
12
|
baseUrl?: string;
|
|
13
13
|
/** Request timeout in milliseconds. Defaults to 30000. */
|
|
14
14
|
timeout?: number;
|
|
15
15
|
/** Default per-deployment inference key. Can be overridden per inference call. */
|
|
16
16
|
inferenceKey?: string;
|
|
17
|
-
/** Inference base URL. Defaults to baseUrl, then https://api.runbios.ai. */
|
|
17
|
+
/** Inference base URL. Defaults to baseUrl, then https://api-staging.runbios.ai. */
|
|
18
18
|
inferenceBaseUrl?: string;
|
|
19
19
|
/** End-to-end inference timeout in milliseconds. Defaults to 15 minutes. */
|
|
20
20
|
inferenceTimeout?: number;
|
|
@@ -115,14 +115,14 @@ export interface AvailableGpuAlternative {
|
|
|
115
115
|
/**
|
|
116
116
|
* A model from the Run BiOS model catalog. The catalog is served from the
|
|
117
117
|
* platform's own registry: every listed model is hosted in Run BiOS storage,
|
|
118
|
-
*
|
|
118
|
+
* fully supported, and can be trained and deployed. It is never a live
|
|
119
119
|
* Hugging Face search result — a model that is not listed is not hosted.
|
|
120
120
|
*/
|
|
121
121
|
/**
|
|
122
122
|
* One row of the Run BiOS model registry (`GET /api/models`).
|
|
123
123
|
*
|
|
124
124
|
* The catalog is the platform's own registry: every listed model is hosted in
|
|
125
|
-
* Run BiOS storage,
|
|
125
|
+
* Run BiOS storage, fully supported, and can be trained and deployed. It is
|
|
126
126
|
* never a live Hugging Face search result.
|
|
127
127
|
*
|
|
128
128
|
* Field names are the registry's own snake_case, with two long-standing
|
|
@@ -171,7 +171,7 @@ export interface Model {
|
|
|
171
171
|
* maxContext and weightBytes, are stripped for the latter).
|
|
172
172
|
*/
|
|
173
173
|
visibility?: string;
|
|
174
|
-
/**
|
|
174
|
+
/** Registry status of the model; every model the catalog lists is available. */
|
|
175
175
|
status?: string;
|
|
176
176
|
downloads?: number;
|
|
177
177
|
likes?: number;
|
|
@@ -254,7 +254,7 @@ export interface ModelSearchParams {
|
|
|
254
254
|
*/
|
|
255
255
|
visibility?: 'all' | 'public' | 'private';
|
|
256
256
|
/**
|
|
257
|
-
* @deprecated Ignored by the registry-backed catalog — it carries
|
|
257
|
+
* @deprecated Ignored by the registry-backed catalog — it carries
|
|
258
258
|
* full base models only, so no adapter/quantized filtering is needed.
|
|
259
259
|
*/
|
|
260
260
|
kind?: 'full' | 'adapter';
|
|
@@ -816,10 +816,15 @@ export interface TrainingJob {
|
|
|
816
816
|
can_resume?: boolean;
|
|
817
817
|
has_cached_dataset?: boolean;
|
|
818
818
|
final_model_s3_key?: string | null;
|
|
819
|
+
/** Whether a completed run's final model is saved. */
|
|
820
|
+
final_model_saved?: boolean;
|
|
821
|
+
/** Final model of a completed run: 'saved', 'deleted' (saved, then deleted on
|
|
822
|
+
* purpose; not a failed save), 'unavailable' (never saved). '' for runs that
|
|
823
|
+
* are not completed; absent on older backends. */
|
|
824
|
+
final_model_state?: 'saved' | 'deleted' | 'unavailable' | '';
|
|
825
|
+
/** @deprecated Use final_model_saved. Removed in a future release. */
|
|
819
826
|
final_artifact_verified?: boolean;
|
|
820
|
-
/**
|
|
821
|
-
* verified, then deleted on purpose; not a failed save), 'unavailable' (never
|
|
822
|
-
* committed). '' for runs that are not completed; absent on older backends. */
|
|
827
|
+
/** @deprecated Use final_model_state ('verified' here is 'saved' there). Removed in a future release. */
|
|
823
828
|
final_artifact_state?: 'verified' | 'deleted' | 'unavailable' | '';
|
|
824
829
|
/** When a 'deleted' final model was removed. */
|
|
825
830
|
final_artifact_deleted_at?: string | null;
|
|
@@ -1015,7 +1020,8 @@ export interface TrainingMetrics {
|
|
|
1015
1020
|
/** A single metric data point. */
|
|
1016
1021
|
export interface MetricPoint {
|
|
1017
1022
|
step: number;
|
|
1018
|
-
epoch
|
|
1023
|
+
/** null when the run's epoch was not measured (a max_steps run on a trainer before 0.0.144). */
|
|
1024
|
+
epoch?: number | null;
|
|
1019
1025
|
loss?: number;
|
|
1020
1026
|
eval_loss?: number;
|
|
1021
1027
|
learning_rate?: number;
|
|
@@ -1081,6 +1087,12 @@ export interface TrainingStopResponse {
|
|
|
1081
1087
|
keep_data: boolean;
|
|
1082
1088
|
requested_at?: string | null;
|
|
1083
1089
|
}
|
|
1090
|
+
/** Response from asking a running training job to save its current step now. */
|
|
1091
|
+
export interface TrainingSaveCheckpointResponse {
|
|
1092
|
+
job_id: string;
|
|
1093
|
+
requested: boolean;
|
|
1094
|
+
message: string;
|
|
1095
|
+
}
|
|
1084
1096
|
/** Response from resuming a training job into a new job. */
|
|
1085
1097
|
export interface TrainingResumeResponse {
|
|
1086
1098
|
id: string;
|
|
@@ -1178,7 +1190,7 @@ export interface TrainingPreflightResponse {
|
|
|
1178
1190
|
}
|
|
1179
1191
|
/** Estimated tokens and price of a managed training run. */
|
|
1180
1192
|
/** One precision + optimizer-state combination a managed job may choose for a
|
|
1181
|
-
* model, method and adapter, with the context lengths
|
|
1193
|
+
* model, method and adapter, with the context lengths the model supports
|
|
1182
1194
|
* for it. Names no hardware. Every option is accepted by preflight and create. */
|
|
1183
1195
|
export interface ManagedTrainingOption {
|
|
1184
1196
|
/** `bf16` or `fp8`. */
|
|
@@ -1607,11 +1619,19 @@ export interface GPUOptionsResponse {
|
|
|
1607
1619
|
no_fit?: boolean;
|
|
1608
1620
|
adapter_unavailable?: boolean;
|
|
1609
1621
|
method_unavailable?: boolean;
|
|
1622
|
+
/** No GPU with enough host memory for this exact configuration is free yet. */
|
|
1623
|
+
host_memory_pending?: boolean;
|
|
1624
|
+
/** @deprecated Use host_memory_pending. Removed in a future release. */
|
|
1610
1625
|
host_memory_unverified?: boolean;
|
|
1611
1626
|
model_support?: {
|
|
1612
|
-
|
|
1627
|
+
/** Per training method, the adapters that can be booked on this model. */
|
|
1628
|
+
available_methods?: Record<string, string[]>;
|
|
1613
1629
|
adapters?: string[];
|
|
1630
|
+
/** @deprecated Use available_methods. Removed in a future release. */
|
|
1631
|
+
tier?: string;
|
|
1632
|
+
/** @deprecated Use available_methods. Removed in a future release. */
|
|
1614
1633
|
verified_adapters?: string[];
|
|
1634
|
+
/** @deprecated Use available_methods. Removed in a future release. */
|
|
1615
1635
|
admissible_method_adapters?: Record<string, string[]>;
|
|
1616
1636
|
objectives?: string[];
|
|
1617
1637
|
[key: string]: unknown;
|
|
@@ -1656,7 +1676,7 @@ export interface InferenceServingConfig {
|
|
|
1656
1676
|
export interface InferenceCreateParams {
|
|
1657
1677
|
name: string;
|
|
1658
1678
|
/**
|
|
1659
|
-
* Deployment source: a
|
|
1679
|
+
* Deployment source: a completed training checkpoint, or 'hf_model' — the
|
|
1660
1680
|
* legacy wire name for a base model from the Run BiOS catalog (the platform's
|
|
1661
1681
|
* own hosted registry, never a live Hugging Face reference).
|
|
1662
1682
|
*/
|
|
@@ -1679,7 +1699,7 @@ export interface InferenceCreateParams {
|
|
|
1679
1699
|
baseModelId?: string;
|
|
1680
1700
|
/** Exact base-model commit returned by deployment preflight. */
|
|
1681
1701
|
baseModelRevision?: string;
|
|
1682
|
-
/** Optional assertion; the API derives the authoritative mode from the
|
|
1702
|
+
/** Optional assertion; the API derives the authoritative mode from the source checkpoint. */
|
|
1683
1703
|
servingMode?: 'full' | 'adapter' | 'merged';
|
|
1684
1704
|
/**
|
|
1685
1705
|
* SERVER-DERIVED and immutable, exactly like `servingMode` above: the
|
|
@@ -2082,7 +2102,7 @@ export interface InferenceUpdateResponse {
|
|
|
2082
2102
|
}
|
|
2083
2103
|
export interface InferenceGPUOptionMarket {
|
|
2084
2104
|
availability_status: 'available' | 'out_of_stock' | 'unknown';
|
|
2085
|
-
/** Null/omitted when live stock
|
|
2105
|
+
/** Null/omitted when live stock is unknown. */
|
|
2086
2106
|
available_count?: number | null;
|
|
2087
2107
|
price_per_gpu_hour_cents: number;
|
|
2088
2108
|
minimum_configuration_hour_cents: number;
|
|
@@ -5733,7 +5753,7 @@ export interface LoopModel {
|
|
|
5733
5753
|
family: string;
|
|
5734
5754
|
/** Total parameters, in billions. */
|
|
5735
5755
|
params_b: number;
|
|
5736
|
-
/**
|
|
5756
|
+
/** Recommended by the platform for training and serving. */
|
|
5737
5757
|
recommended: boolean;
|
|
5738
5758
|
}
|
|
5739
5759
|
/**
|