| llama_hf_download | R Documentation |
Downloads a GGUF model file from a Hugging Face repository. Files are cached locally so subsequent calls return the cached path without re-downloading.
llama_hf_download(
repo_id,
filename = NULL,
pattern = NULL,
tag = NULL,
token = NULL,
cache_dir = NULL,
revision = "main",
force = FALSE
)
repo_id |
Character. Hugging Face repository in |
filename |
Character or |
pattern |
Character or |
tag |
Character or |
token |
Character or |
cache_dir |
Character or |
revision |
Character. Git revision (branch/tag/commit). Defaults to
|
force |
Logical. If |
Exactly one of filename, pattern, or tag must be
specified to identify which file to download.
A character string containing the absolute path to the downloaded (or cached) GGUF model file.
## Not run:
path <- llama_hf_download("TheBloke/Llama-2-7B-GGUF",
pattern = "*q2_k*")
print(path)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.