Whether a Hub write token is available, so a verb can refuse before it does any work.
Fetches a model into the hub cache (resumable, verified) and indexes it; the signal stops it between checkpoints. revision is a git revision (default main).
Optionaloptions: { onProgress?: DownloadProgress; revision?: string; signal?: AbortSignal }One row per transfer, the running ones and the recent finished ones.
Bytes the model needs resident, for residency plans.
What a user typed: a model directory (its path is its id), an id, or a query that names exactly one local model. Rejects when it names none or several; never downloads.
Optionalfilter: CatalogFilterWhere a picked folder lives: the hub cache snapshot, the app's own models directory, or an indexed model. Undefined when it is none of them; never downloads.
The model a verb runs on when the user names none: this host's automatic choice (the preferred model when it fits the machine, else the largest that leaves room for other apps; an empty cache fetches a starter first). Rejects when none fits or the host makes no such choice.
Optionaloptions: { signal?: AbortSignal }Pushes a finished model directory to the Hub; rejects when no write token is available.
Adds a finished output (train, quantize, convert). Publishes catalog.changed.
Re-indexes the Hub cache and the app's model directory without reading tensor bytes; resolves to the snapshots indexed. Publishes catalog.changed.
Exact id only; never scans or downloads.
Starts a download that outlives the caller (the web's) and returns at once; progress is downloads(). Throws a CatalogError coded duplicate-download while the repo already has one running, and not-supported on a host that owns none. Publishes catalog.changed when it completes.
Models and adapters known locally: the Hugging Face cache, the app's model and adapter directories, and outputs modules register.