Expand description
Persistent model references and explicit ownership of prepared/source stores.
ModulesΒ§
- catalog π
- disk π
- Registered filesystem stores preserve physical layouts and external ownership.
- events π
- Observations from one model operation, independent of terminal rendering.
- gc π
- hub π
- Metadata-only HF discovery. Payload downloads use the existing HF/Xet client.
- local π
- packing π
- records π
- reference π
- Catalog lookup accepts aliases and source URIs without dropping source identity.
- resolve π
- A single resolver registers explicit sources and reuses pinned index entries.
- selector π
- Parse locator syntax once, then map its structured fields through the index.
- store π
StructsΒ§
- Artifact
Details - Location, ownership, and reference count of a catalog artifact.
- Artifact
Lease - Keeps owned files reachable while a reader, mmap, or GPU operation uses them. The caller must retain this handle until all derived views are finished.
- Disk
Store - A named, externally owned filesystem store registered in this index.
- GcReport
- Garbage collection candidates and artifacts skipped because they are leased.
- Model
Details - Model summary with preparation requirements and artifact ownership details.
- Model
Entry - Catalog identity, source lineage, and selected artifacts for one model.
- Model
Index - Persistent model references and artifact ownership under one storage root. Operations lock the catalog as needed; this handle does not retain artifact leases.
- Model
Summary - Current availability and storage totals for a registered model.
- Pack
Options - Requested expert variants and source retention for an indexed model.
- Removal
- References released by removal; their files have not been collected yet.
- Resolve
Options - Optional registration settings shared by prepare and explicit model registration.
EnumsΒ§
- Artifact
Kind - An artifactβs role in a modelβs preparation lifecycle.
- Disk
Layout - Physical layout used to find an owner/repository within a disk store.
- Model
Event - Progress during remote model inspection. Values are owned so observers can
forward events to a channel. The operationβs
Resultsignals completion; these events do not establish success or describe durable index state. - Source
- Source identity used to recognize repeat registration and verify local imports.
FunctionsΒ§
- anchor_
selector - Anchor explicit relative paths while preserving parsed aliases and source URIs. Invalid locators return an error instead of becoming filesystem paths.
- id π
- is_
reference - Parse an alias, ID, or source URI without resolving it. Explicit paths return false.
- prepared_
precisions - List available expert precisions in descending order after loading the manifest. Q4 requires an existing base file. Q2/Q3 also check layout, size, and sample records. A manifest load failure returns an empty list.
- resolve_
path - Resolve through the index and lease the prepared artifact. Explicit source paths are registered if needed; files remain externally owned.
- resolve_
runtime - Prepare missing variants through publication, never by mutating a leased view.
Indexed models must already have a prepared base. If the options permit it,
missing variants are built before returning a lease to the published store.
On success, indexed loads disable later repacking and store creation in
options. Legacymodel/packedstores use their model root to find config and tokenizer. - same_
source π - validate_
name π - validate_
selector - Validate selector syntax without resolving an entry, reading files, or registering.