Skip to main content

Crate ffai_models

Crate ffai_models 

Source
Expand description

§ffai-models

Weight management for FFai. Core principle: weights are data, not code — the repo holds only TOML manifests describing each model (files, source, checksums, and crucially its license, which is often different from FFai’s). Weights are fetched into a local cache, never vendored.

Phase 0 ships manifests + cache resolution; the downloader (Hugging Face hub, resumable, checksum-verified) lands in Phase 1.

Structs§

ModelFile
One weight/config file belonging to a model.
ModelManifest
A model manifest (models/*.toml).
ResolvedModel
A model whose files are all present locally, with their resolved paths.

Functions§

cache_dir
The FFai model cache root: $FFAI_CACHE or <os cache dir>/ffai.
load_dir
Load every *.toml manifest in a directory (typically models/).