% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hf.R
\name{llama_hf_list}
\alias{llama_hf_list}
\title{List GGUF files in a Hugging Face repository}
\usage{
llama_hf_list(repo_id, token = NULL, pattern = NULL)
}
\arguments{
\item{repo_id}{Character. Hugging Face repository in \code{"org/repo"} format,
e.g. \code{"TheBloke/Llama-2-7B-GGUF"}.}

\item{token}{Character or \code{NULL}. Hugging Face API token.
If \code{NULL}, uses the \code{HF_TOKEN} environment variable.}

\item{pattern}{Character or \code{NULL}. Optional glob pattern to filter
results (e.g. \code{"*q4_k_m*"}). Case-insensitive.}
}
\value{
A data frame with columns:
  \describe{
    \item{filename}{Character. The file name within the repository.}
    \item{size}{Numeric. File size in bytes.}
    \item{size_pretty}{Character. Human-readable file size.}
    \item{quant}{Character. Detected quantization level (e.g. "Q4_K_M")
      or \code{NA} if not detected.}
  }
}
\description{
Queries the Hugging Face API for GGUF model files in the specified
repository. Returns a data frame with file names, sizes, and detected
quantization levels.
}
\examples{
\donttest{
files <- llama_hf_list("TheBloke/Llama-2-7B-GGUF")
print(files)
}
}
