Skip to main content

Module habitat

Module habitat 

Source
Expand description

ModelHabitat: where models live on this machine. It computes the store roots (from the environment, the home directory, and user settings) and assembles the StoreScanners that sweep them. This is the single place the four scanners are wired together and pointed at their default locations.

The Apple-Foundation (builtin) scanner is not assembled here: its availability probe lives in the runtime crate’s backend bridge, so callers append it to this list (see the runtime’s apple_foundation_scanner).

Structs§

ModelHabitat
The machine’s model locations, resolved from home and environment.
ModelsSettings
The discovery-relevant model settings: user-added folders to watch and extra Hugging Face cache roots. (The full settings domain is not yet ported.)

Functions§

hf_cache_root
The machine’s Hugging Face hub cache: $HF_HUB_CACHE, else $HF_HOME/hub, else ~/.cache/huggingface/hub.
hf_home
The Hugging Face home directory: $HF_HOME, else ~/.cache/huggingface. Both the hub cache and the login token file hang off it.