% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_llamacpp.R
\name{llamacpp_download_model}
\alias{llamacpp_download_model}
\title{Download a GGUF Model from Hugging Face}
\usage{
llamacpp_download_model(
  .repo,
  .filename,
  .dir = Sys.getenv("LLAMACPP_MODEL_DIR", "~/models"),
  .timeout = 3600
)
}
\arguments{
\item{.repo}{Hugging Face repository ID (e.g. \code{"Qwen/Qwen3-8B-GGUF"}).}

\item{.filename}{The exact filename to download (e.g. \code{"Qwen3-8B-Q4_K_M.gguf"}).
Use \code{list_hf_gguf_files(.repo)} to see what is available.}

\item{.dir}{Destination directory. Defaults to \code{LLAMACPP_MODEL_DIR} env var,
then \code{"~/models"}. Created if it does not exist.}

\item{.timeout}{Download timeout in seconds (default: 3600).}
}
\value{
Invisibly returns the full path of the downloaded file.
}
\description{
Downloads a single GGUF file from a Hugging Face repository with a streaming
progress bar. Use \code{list_hf_gguf_files()} first to browse available quantizations.
}
