Downloads a single GGUF file from a Hugging Face repository with a streaming
progress bar. Use list_hf_gguf_files() first to browse available quantizations.
Usage
llamacpp_download_model(
.repo,
.filename,
.dir = Sys.getenv("LLAMACPP_MODEL_DIR", "~/models"),
.timeout = 3600
)Arguments
- .repo
Hugging Face repository ID (e.g.
"Qwen/Qwen3-8B-GGUF").- .filename
The exact filename to download (e.g.
"Qwen3-8B-Q4_K_M.gguf"). Uselist_hf_gguf_files(.repo)to see what is available.- .dir
Destination directory. Defaults to
LLAMACPP_MODEL_DIRenv var, then"~/models". Created if it does not exist.- .timeout
Download timeout in seconds (default: 3600).
