下载meta-llama/Llama-2-7b-hf

使用huggingface提供的下载方法

git lfs install
git clone https://huggingface.co/meta-llama/Llama-2-7b-hf

下载huggingface托管的llama 2文件时,遇到错误如下:

Error downloading object: Responsible-Use-Guide.pdf (525dc34): Smudge error: Error downloading Responsible-Use-Guide.pdf (525dc349d71fe257fce4098c146446df6fef4247174f351381e4c3214af126f0): batch response: Post "https://huggingface.co/meta-llama/Llama-2-7b-hf.git/info/lfs/objects/batch": read tcp 10.xxx.xxx.xxx:65308->18.164.174.55:443: wsarecv: An existing connection was forcibly closed by the remote host.

Errors logged to 'path\Llama-2-7b-hf\.git\lfs\logs\20230907T193738.9222655.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: Responsible-Use-Guide.pdf: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

遍查原因,是因为没有proxy,使用这个命令

git clone -c http.proxy="http://127.0.0.1:1080x" https://huggingface.co/meta-llama/Llama-2-7b-hf

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值