Downloads a file or an entire repository snapshot from the HuggingFace Hub.
$ mix hf.download gpt2
$ mix hf.download gpt2 config.json
$ mix hf.download gpt2 config.json --revision main --local-dir ./my-model
$ mix hf.download --type dataset rajpurkar/squad
Options
--type/-t— repo type:model,dataset,space(default:model)--revision/-r— branch or commit (default:main)--local-dir— save to this local directory instead of cache--token— HF API token (uses saved token if omitted)--quiet— suppress progress output