QVAC Logo

modelRegistryGetModel( )

Retrieves a single model entry from the QVAC model registry by path and source.

function modelRegistryGetModel(registryPath: string, registrySource: string): Promise<ModelRegistryEntry>;

Parameters

NameTypeRequired?Description
registryPathstringThe registry path of the model
registrySourcestringThe registry source identifier

Returns

Promise<ModelRegistryEntry> — The matching model entry.

ModelRegistryEntry

FieldTypeDescription
namestringHuman-readable model name
registryPathstringRegistry path
registrySourcestringRegistry source
blobCoreKeystringHyperdrive blob core key
blobBlockOffsetnumberBlob block offset
blobBlockLengthnumberBlob block length
blobByteOffsetnumberBlob byte offset
modelIdstringUnique model identifier
addon"llm" | "whisper" | "embeddings" | "nmt" | "vad" | "tts" | "ocr" | "other"Model addon type
expectedSizenumberExpected file size in bytes
sha256ChecksumstringSHA-256 checksum
enginestringInference engine
quantizationstringQuantization level
paramsstringParameter count

Throws

ErrorWhen
QVAC_MODEL_REGISTRY_QUERY_FAILEDThe registry query fails or model is not found

Example

const model = await modelRegistryGetModel("llama-3.2-3b-q4", "qvac");
console.log(model.name, model.expectedSize);

On this page