Skip to main content

Module hub

Module hub 

Source
Expand description

Finding a model by name, in the Hugging Face cache layout so downloads made by Laya or huggingface_hub are reused and ours are reused by them.

A name is a local path (a checkpoint directory or a .kime file), hf://org/repo with an optional subfolder after it, or one of the aliases in ALIASES. Nothing here touches the network. kime pull does the downloading, into the same layout.

Structs§

HubRef
Where a name points on the hub.

Constants§

ALIASES
The published compat models: alias, repo and subfolder.
FILES
The files a compat checkpoint needs, relative to its folder in the repo.

Functions§

cache_dir
The hub cache: $HF_HUB_CACHE, else $HF_HOME/hub, else ~/.cache/huggingface/hub.
resolve
The path a model name refers to on this machine.