跳转至

学术资源加速

内置服务

加速服务

系统已内置常规技术站点的加速服务,无需设置,可以直接访问

声明

仅限于方便用户解决技术站点网络速度慢的问题,不保证可靠性与稳定性,如遇到不能访问或速度慢等问题不在我们的售后范围内,请自行解决

已加速访问的学术资源地址:

  • github.com
  • githubusercontent.com
  • githubassets.com
  • huggingface.co
  • pytorch.org
  • pypi.org
  • docker.io
  • google.com
  • civitai.com
  • kaggle.com
  • ollama.com
  • nvidia.com
  • anaconda.org

Hugging Face镜像站

建议您直接使用Hugging Face镜像站下载,速度快且稳定

Hugging Face镜像站地址:https://hf-mirror.com/

方法一:网页下载

请访问Hugging Face镜像站,在镜像站搜索,并在模型主页的Files and Version中下载文件。

方法二:huggingface-cli

huggingface-cli 是 Hugging Face 官方提供的命令行工具,自带完善的下载功能。

  1. 安装依赖

    pip install -U huggingface_hub
    

  2. 设置环境变量

    • Linux

      export HF_ENDPOINT=https://hf-mirror.com
      
      建议写入到 ~/.bashrc

    • Windows Powershell

      $env:HF_ENDPOINT = "https://hf-mirror.com"
      

  3. 下载模型

    huggingface-cli download --resume-download gpt2 --local-dir gpt2
    

  4. 下载数据集

    huggingface-cli download --repo-type dataset --resume-download wikitext --local-dir wikitext
    
    可以添加 --local-dir-use-symlinks False 参数禁用文件软链接,这样下载路径下所见即所得,更多教程请访问Hugging Face镜像站查看