Documentation
¶
Overview ¶
Package hf pulls AI model artifacts from Hugging Face Hub registries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMultiGGUF = errors.New("multiple GGUF files require an explicit spec.files list")
ErrMultiGGUF is returned when a repository has more than one GGUF file and spec.files is empty.
Functions ¶
func ExpandFiles ¶
ExpandFiles expands spec.files against a repository listing. Exact paths must exist; globs that match nothing return an error with a hint.
func GuardMultiGGUF ¶
GuardMultiGGUF errors when more than one GGUF is present and the caller did not select files explicitly.
func ValidateFileSelection ¶
ValidateFileSelection checks Hub file-selection rules against a listing. An empty requested list triggers the multi-GGUF guard; otherwise globs and exact paths are expanded.
Types ¶
Click to show internal directories.
Click to hide internal directories.