# hfdownload **Repository Path**: sevenhub_admin/hfdownload ## Basic Information - **Project Name**: hfdownload - **Description**: 通过代理下载huggingface模型 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-12 - **Last Updated**: 2024-03-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 国内下载huggingface模型 ## 安装: ```bash git clone https://gitee.com/sevenhub_admin/hfdownload.git cd hfdownload pip install -r requirements.txt ``` ## 使用 ### 下载完整模型: ```bash python hfdownload.py repo_id local_dir # repo_id 例如: speechbrain/emotion-recognition-wav2vec2-IEMOCAP # localdir 本地文件夹 ``` ### 下载模型内的某个文件 ```bash python hfdownload.py repo_id local_dir filename # repo_id 例如: speechbrain/emotion-recognition-wav2vec2-IEMOCAP # localdir 本地文件夹 # filename 需要下载的文件名 ``` ### 授权下载(可选) ```text * 在一些情况下需要 huggingface的授权才能下载 * 首先保证你的hf账号授权通过了要下载的数据或者模型 * 其次获取账号对应的token, https://huggingface.co/docs/hub/security-tokens * 将token填写到配置文件: config.yaml * 最后,下载方法和上面一致 ```