hf-model-downloader
Install
pip install hf-model-downloader
pip install git+https://github.com/muellerzr/hf-model-downloader
What is it?
An easy way to download models quickly from huggingface.co with specified backends to specific directories.
While on its own you can pass in --local_dir when using the huggingface_hub CLI, many libraries (such as all of the meta-llama models) come with two sets
of weights in the repo, original and safetensor varients in the same branch. As a result, this can bloat our downloads when we don't need them.
hf-downloader solves this by making it easier to download weights to wherever you want, specifying the weight revision you need (and then will also download the relevant config files, etc)
As this is a wrapper around the huggingface_hub CLI, tokens can be passed in via --token or by using huggingface-cli login (recommended)
Examples with meta-llama/Meta-Llama-3.1-8B-Instruct
Downloading the .safetensors version (default)
download-model --backend safetensors meta-llama/Meta-Llama-3.1-8B-Instruct
Downloading the .pth version
hf-downloader --backend torch meta-llama/Meta-Llama-3.1-8B-Instruct
Downloading to a specific directory
hf-downloader --local-dir my_llama meta-llama/Meta-Llama-3.1-8B-Instruct
Using hf_transfer for faster downloads
hf-downloader --fast meta-llama/Meta-Llama-3.1-8B-Instruct
Metadata
Release files for hf-model-downloader 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hf-model-downloader-0.0.1.tar.gz | 11.3 kB | Without provenance | Details for hf-model-downloader-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hf_model_downloader-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for hf_model_downloader-0.0.1-py3-none-any.whl |
Total release size: 23.0 kB
Release files / hf-model-downloader-0.0.1.tar.gz
| Download URL | hf-model-downloader-0.0.1.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d5d24f6999f47f4598585f6f1a7817b902faa9ba49fd9e213885424c9202369
|
|
BLAKE2b-256 checksum How to use checksums |
9e8c16217de0d781d5963f048ccbfa3609cf8cbc37e884df330912bde3cf5244
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
|
Release files / hf_model_downloader-0.0.1-py3-none-any.whl
| Download URL | hf_model_downloader-0.0.1-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67fc85b700ee83fc74725f94feb64bc0e8e2a97855b066397f243aeeddfb89e3
|
|
BLAKE2b-256 checksum How to use checksums |
f9fc5368c864d90099605114405f60408150cedb1a413f494b74cf8a16c4f36f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
|
Security for hf-model-downloader 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.