Skip to main content

Module models

Module models 

Source
Expand description

Model registry — manifest-driven downloads with SHA-256 verification, adapter selection by config string, and self-describing model metadata.

Re-exports§

pub use adapter::AdapterError;
pub use adapter::AdapterFactory;
pub use adapter::AdapterRegistry;
pub use adapter::AdapterStage;
pub use adapter::BuiltinAdapter;
pub use download::DownloadError;
pub use download::download_with_checksum;
pub use download::download_with_checksum_and_signature;
pub use download::verify_sha256;
pub use manifest::Manifest;
pub use manifest::ManifestError;
pub use manifest::ModelEntry;
pub use manifest::ProfileEntry;
pub use manifest::SCHEMA_V1;
pub use manifest::SCHEMA_V2;
pub use manifest::is_supported_schema;
pub use metadata::MetaSource;
pub use metadata::ModelConfigMeta;
pub use metadata::load_model_config;
pub use metadata::read_onnx_metadata_props;

Modules§

adapter
Adapter registry — select segmentation / embedder / clusterer / scoring / VAD implementations by config string, with a public registration API.
download
HTTP download with streamed SHA-256 and optional Minisign verification.
manifest
TOML manifest describing where each ONNX model lives, its checksum, and which model each Profile resolves to.
metadata
Self-describing model configuration.
verify
Minisign signature verification for model artifacts.

Structs§

ModelRegistry
A model registry: holds a manifest + a cache directory, and downloads/verifies models on demand.
ProfileModels
Resolved file paths for the segmenter and embedder of a profile.
VbxPldaArtifact
One VBx PLDA artifact: manifest id, on-disk filename, sha256, byte size.
VbxPldaArtifacts
Backwards-compatible iterable over vbx_plda_artifacts: keeps for art in VBX_PLDA_ARTIFACTS call sites working now that the table is manifest-derived instead of a const slice.

Enums§

RegistryError
Errors from ModelRegistry operations.

Constants§

DEFAULT_MANIFEST_TOML
The default manifest shipped with the crate. Embedded at compile time.
VBX_PLDA_ARTIFACTS
The six precomputed VBx PLDA .npy files, in PldaModel::from_dir order.
VBX_PLDA_MODEL_IDS
Manifest model ids of the six precomputed VBx PLDA .npy files, in PldaModel::from_dir order. This is the only hardcoded part of the artifact table; filenames, hashes and sizes come from the embedded manifest via vbx_plda_artifacts.

Functions§

default_manifest
{ true } pub fn default_manifest() -> Manifest { true } Parse the bundled default manifest. Panics in debug if the embedded TOML is malformed — that’s a static asset bug caught by cargo test.
vbx_plda_artifacts
The six precomputed VBx PLDA artifacts, in VBX_PLDA_MODEL_IDS order.