Expand description
Resolving models from Hugging Face and Docker, through llama.cpp’s own cache.
This crate’s examples use the hf-hub crate, which keeps its own cache.
These functions share the cache llama.cpp’s CLI tools use, so a model pulled
by llama-cli is found here and vice versa.
Functions§
- list_
cached_ json - Every model in llama.cpp’s cache, as a JSON array of
{"repo","tag","name"}objects. - remove_
cached - Delete a cached model. Returns whether anything was removed.
- resolve_
docker - Resolve a Docker model reference to a local path.
- resolve_
hf - Resolve
repo[:tag]to a local path, downloading if needed. - split_
repo_ tag - Split
repo:taginto its parts.