QVAC Logo

modelRegistryGetModel( )

Fetches a single model entry from the distributed registry by its path and source identifier.

function modelRegistryGetModel(registryPath: string, registrySource: string): Promise

Parameters

NameTypeRequired?Description
registryPathstringThe path of the model in the registry (e.g. "llama-3.2-1b-instruct-q4_0-gguf")
registrySourcestringThe source identifier for the registry entry (e.g. "hf" for HuggingFace)

Returns

Promise

Resolves with the ModelRegistryEntry for the requested model.

Throws

ErrorWhen
ModelRegistryQueryFailedErrorThe model is not found or the registry query fails

Example

import { modelRegistryGetModel } from "@qvac/sdk";

const model = await modelRegistryGetModel(
  "llama-3.2-1b-instruct-q4_0-gguf",
  "hf",
);

console.log(model.addon, model.engine);

On this page