Download script/download_model.py from bingqin111/data_process_bq: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/datasets/bingqin111/data_process_bq/resolve/main/script/download_model.py
- Command line
-
hf download hf://datasets/bingqin111/data_process_bq/script/download_model.py
-
curl -L -o download_model.py https://huggingface.co/datasets/bingqin111/data_process_bq/resolve/main/script/download_model.py
700 Bytes
| from huggingface_hub import snapshot_download | |
| # 下载 Hugging Face 模型(核心:repo_type="model") | |
| local_dir = snapshot_download( | |
| repo_id="bingqin111/mistral_data3_2w_sft", # 模型仓库 ID(替换为你需要的模型) | |
| repo_type="model", | |
| local_dir="/root/test/weitiao/CharacterEval/model", # 先设置好文件夹 | |
| # 可选参数(根据需求添加) | |
| # ignore_patterns=["*.bin.index.json", "*.msgpack"], # 忽略不需要的文件(如索引文件) | |
| resume_download=True, # 支持断点续传(网络中断后重新运行可继续下载) | |
| # token="your_hf_token" # 若模型是私有/ gated 模型,需传入你的 Hugging Face Token | |
| ) |