Make it possible to download protected HF models from the command line. (#2408)
This commit is contained in:
parent
419c34eca4
commit
1aed2b9e52
3 changed files with 172 additions and 157 deletions
|
@ -156,7 +156,9 @@ For example:
|
|||
|
||||
python download-model.py facebook/opt-1.3b
|
||||
|
||||
If you want to download a model manually, note that all you need are the json, txt, and pytorch\*.bin (or model*.safetensors) files. The remaining files are not necessary.
|
||||
* If you want to download a model manually, note that all you need are the json, txt, and pytorch\*.bin (or model*.safetensors) files. The remaining files are not necessary.
|
||||
|
||||
* If you want to download a protected model (one gated behind accepting a license or otherwise private, like `bigcode/starcoder`) you can set the environment variables `HF_USER` to your huggingface username and `HF_PASS` to your password or (_as a better option_) to a [User Access Token](https://huggingface.co/settings/tokens). Note that you will need to accept the model terms on the Hugging Face website before starting the download.
|
||||
|
||||
#### GGML models
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue