以下载单文件为例
from huggingface_hub import hf_hub_download
hf_hub_download(repo_id="neukg/TechGPT-2.0-QLora-hf",endpoint="https://hf-mirror.com",filename="adapter_model.bin",local_dir="./",local_dir_use_symlinks=False)
也有下载整个项目的方法
site:https://huggingface.co/docs/huggingface_hub/guides/download