Skip to main content

Module storage

Module storage 

Source
Expand description

XDG locations and the durable model layout. Resolving paths never creates files.

Structsยง

Paths
Resolved application locations, using XDG directories on macOS and Linux.

Constantsยง

DEFAULT_REPO
HF repository used when no model is selected.
DEFAULT_REVISION
Immutable revision of the tested default checkpoint.

Functionsยง

create_private_dir ๐Ÿ”’
default_model_reference
Source selector shared by preparation and serving when no model is specified.
require_space ๐Ÿ”’
Refuse before large writes; reserve space for filesystem and transfer overhead.
safe_component ๐Ÿ”’
validate_identity ๐Ÿ”’
xdg_dir ๐Ÿ”’