当前位置:   article > 正文

HuggingFace下载模型_git huggingface access tokens 下载模型

git huggingface access tokens 下载模型

目录

方式一:网页下载

方式二:Git下载


方式一:网页下载

方式二:Git下载

  1. # 地址
  2. https://huggingface.co/roberta-large/tree/main
  3. # 命令
  4. GIT_SSL_NO_VERIFY=1 git clone https://huggingface.co/roberta-large

注意事项:手输网址时请仔细检查是否正确输入,如果仓库不存在,会先要求登录然后才提示仓库不存在!

  1. # reberta-large错误输入为reberta-large
  2. GIT_SSL_NO_VERIFY=1 git clone https://huggingface.co/reberta-large/
  3. Cloning into 'reberta-large'...
  4. Username for 'https://huggingface.co': 输入Token名
  5. Password for 'https://xmoondeer@huggingface.co': 输入Token
  6. remote: Repository not found
  7. fatal: repository 'https://huggingface.co/reberta-large/' not found

附录

登录时不能直接使用密码登录,需要在huggingface上创建token登录

  1. # roberta-large错误输入为reberta-large
  2. GIT_SSL_NO_VERIFY=1 git clone https://huggingface.co/reberta-large/
  3. Cloning into 'reberta-large'...
  4. Username for 'https://huggingface.co': 输入账户名
  5. Password for 'https://zywhehe@outlook.com@huggingface.co': 输入密码
  6. remote: Password authentication in git is no longer supported. You must use a user access token or an SSH key instead. See https://huggingface.co/blog/password-git-deprecation
  7. fatal: Authentication failed for 'https://huggingface.co/reberta-large/'

生成Token

参考资料:

https://huggingface.co/docs/hub/security-tokens

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/281385
推荐阅读
相关标签
  

闽ICP备14008679号