hf-mirror-hub
一个从 Hugging Face 镜像站点快速下载模型和数据集的命令行工具。
特性
- 使用 Hugging Face 镜像站点加速下载
- 支持
hf-transfer加速下载 - 支持指定保存目录
- 支持使用 Hugging Face Hub 访问令牌
- 自动转换软链接为实际文件
安装
从 PyPI 安装 (推荐)
pip install hf-mirror-hub
从源码安装
git clone https://github.com/neverbiasu/hf-mirror-hub.git
cd hf-mirror-hub
conda create -n hf-mirror-hub python=3.8 # 非必需,也可以用 venv 或者直接安装
conda activate hf-mirror-hub
pip install -e .
使用说明
基本用法 (下载模型)
hf-mirror-hub --model <model_name>
完整参数
hf-mirror-hub --model <model_name> --save_dir <save_path> --token <your_token> [--no-hf-transfer]
参数说明
--model,-M: 可选,模型名称 (例如:deepseek-ai/DeepSeek-R1-Distill-Qwen-32B)--save_dir,-S: 可选,保存目录路径 (默认为data)--token,-T: 可选,Hugging Face 访问令牌 (用于访问私有模型或数据集)--no-hf-transfer: 可选,禁用hf-transfer加速
贡献
请参阅 CONTRIBUTING.md 了解如何贡献。
许可证
MIT
Metadata
Release files for hf-mirror-hub 0.0.4
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_mirror_hub-0.0.4.tar.gz | 3.9 kB | Without provenance | Details for hf_mirror_hub-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hf_mirror_hub-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for hf_mirror_hub-0.0.4-py3-none-any.whl |
Total release size: 8.8 kB
Release files / hf_mirror_hub-0.0.4.tar.gz
| Download URL | hf_mirror_hub-0.0.4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8785e42830e52ec1075618a21860868957f038e1d2f315ef9747b901f2b51bed
|
|
BLAKE2b-256 checksum How to use checksums |
5a9189b8df5c094f9a8bc65daf1d0d9797b0bfae6e29eb40a3bd68432dc2b5c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.13.1 Linux/6.11.0-1014-azure
|
Release files / hf_mirror_hub-0.0.4-py3-none-any.whl
| Download URL | hf_mirror_hub-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0d89272b2c7a23ae260299f383a255bddf40d58587bddb6c596cfe544b0b95e
|
|
BLAKE2b-256 checksum How to use checksums |
3b3281ad2facfd5cf30d4615752c427ba928046a8c0ec22de9329595ec2106b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.13.1 Linux/6.11.0-1014-azure
|
Security for hf-mirror-hub 0.0.4
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.