Skip to main content

Module metadata_registry

Module metadata_registry 

Source
Expand description

Worker-side index from a model metadata file’s identity to its on-disk path. When a worker self-hosts metadata, it registers each file here and rewrites the MDC’s CheckedFile.path to a /v1/metadata/{slug}/{suffix}/{filename} URL on its own system_status_server. The route handler reads paths back out by the same key and streams the bytes to the frontend, which blake3-verifies them against the MDC.

suffix is the LoRA slug (or "_base" for non-LoRA). It scopes each registration so detaching a LoRA doesn’t unregister the base model’s files (or vice versa).

Structs§

MetadataArtifactRegistry
Cloning shares the underlying map.

Constants§

BASE_SUFFIX
Sentinel suffix for non-LoRA registrations. LoRA suffixes are Slug::slugify outputs ([a-z0-9_-]+); a name that slugifies to _base would collide with this sentinel and is not supported.