Downloads and stores all files from a Hugging Face Hub repository.
hub_snapshot(
repo_id,
...,
revision = "main",
repo_type = "model",
local_files_only = FALSE,
force_download = FALSE,
allow_patterns = NULL,
ignore_patterns = NULL
)
The repository identifier, eg "bert-base-uncased"
or "deepset/sentence_bert"
.
currenytly unused.
Revision (branch, tag or commitid) to download the file from.
The type of the repository. Currently only "model"
is supported.
Only use cached files?
For re-downloading of files that are cached.
A character vector containing patters that are used to filter allowed files to snapshot.
A character vector contaitning patterns to reject files from being downloaded.