Skip to main content

A tool that can download Hugging Face model(s)

Project description

NiuDownload

This is a tool that can automatically download models from Hugging Face(Windows or Linux).You can download single model or make batch download. The project is powered by NEU(China) NLPLAB master students: Peinan Feng, Junhao Ruan and Peizhuo Liu. Any issue is welcomed. Only pytorch version models are supported now

Use in python script

Single Download

from sao_download import download as sd
sd.batch_download_models('models', 'gpt2')

In this way, the whole gpt2 model in pytorch version will be stored in "models" directory.

Batch Download

from sao_download import download as sd
sd.batch_download_models('models', ['roberta-base', 'gpt2', 'bert-base-uncased'])
#or 
sd.batch_download_models('models', 'roberta-base, gpt2, bert-base-uncased')

In this way, roberta-base、 gpt2、 bert-base-uncased will be stored in "models" directory.

Use in command line

 niudownload -m bert-base-uncased,gpt2 -d /mnt/lpz/download/

"-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.1.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

niu_download-1.1.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page