Skip to main content

load

client.localModels.load(data: LoadLocalModelRequest): Promise<unknown>

Loads a downloaded model into system memory for inference.

Prepares a local model for use by loading its weights into RAM or VRAM. The model must be downloaded first. Once loaded, it can serve inference requests without additional startup latency.

Parameters

ParameterTypeRequiredDescription
dataLoadLocalModelRequestYesThe load request configuration

Returns

Promise<unknown> — A promise that resolves when the model has been loaded into memory

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.localModels.load(/* LoadLocalModelRequest */);
console.log(result);