QVAC Logo

getModelByPath( )

Looks up a model in the built-in catalog by its registry path.

function getModelByPath(registryPath: string): RegistryItem | undefined;

Parameters

NameTypeRequired?Description
registryPathstringThe full registry path of the model (e.g., "llama-3.2-1b-instruct-q4_0-gguf")

Returns

RegistryItem | undefined — The matching model constant, or undefined if not found. See getModelByName() for the full RegistryItem shape.

Example

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

const model = getModelByPath("llama-3.2-1b-instruct-q4_0-gguf");
if (model) {
  console.log(model.name, model.expectedSize);
}

On this page