A tool that can download Hugging Face model(s)
Project description
This is a tool that can automatically download models from Hugging Face(Windows or Linux).You can download single model or make batch download.
You can use this tool in python script
-
Download "roberta-base" from Hugging face to "models"
from sao_download import download as sd sd.download_models('models', ['gpt2'])
And then, the whole gpt2 model in pytorch will be stored in "models" direct.
-
Batch Download pytorch models from Hugging Face
from sao_download import download as sd sd.download_models('models', ['roberta-base', 'gpt2', 'bert-base-uncased'])
This code will download roberta-base、 gpt2、 bert-base-uncased into "models"
You can also use in cli
niudownload -m gpt2,roberta-base -d Models
"-m" means the model(s) from Huggingface you want to download "-d" means the output dirct you want to store the model(s)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
niu_download-1.0.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for niu_download-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41c566e5d17d3eec93aed1d446227fadffc995f988235239388ab5b739eb0658 |
|
MD5 | 273e65eb74f327bb4f004122e30cb487 |
|
BLAKE2b-256 | dc4ac4526759ddcd0633d380ce5689acbc454d17be56e45cef8e065730cc9d64 |