error: external filter git-lfs smudge -- %f failed 2 error: external filter git-lfs smudge -- %f fai

error: external filter git-lfs smudge -- %f failed 2 error: external filter git-lfs smudge -- %f failed fatal: pytorch_model-00001-of-00002.bin: smudge filter lfs failed warning: Clone succeeded, but checkout failed.

错误

(lj) [root@test2 character]# git clone git@hf.co:thu-coai/CharacterGLM-6B
Cloning into 'CharacterGLM-6B'...
The authenticity of host 'hf.co (3.210.66.237)' can't be established.
ECDSA key fingerprint is SHA256:aBG5R7IomF4BSsx/h6tNAUVLhEkkaNGB8Sluyh/Q/qY.
ECDSA key fingerprint is MD5:e9:50:51:12:cc:b5:9a:16:4f:77:af:6c:e1:09:2d:ae.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'hf.co,3.210.66.237' (ECDSA) to the list of known hosts.
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 32 (delta 9), reused 0 (delta 0), pack-reused 3
Receiving objects: 100% (32/32), 33.95 KiB | 0 bytes/s, done.
Resolving deltas: 100% (9/9), done.
Downloading pytorch_model-00001-of-00002.bin (10 GB)


Error downloading object: pytorch_model-00001-of-00002.bin (0a455d8): Smudge error: Error downloading pytorch_model-00001-of-00002.bin (0a455d80479b771e8579dd9628bbafbfa573198e70698c0ed9fdaf9eae22c9b7): batch response: Post "https://huggingface.co/thu-coai/CharacterGLM-6B.git/info/lfs/objects/batch": dial tcp 31.13.87.19:443: i/o timeout

Errors logged to /data/lj/character/CharacterGLM-6B/.git/lfs/logs/20240416T182809.903110594.log
Use `git lfs logs last` to view the log.
error: external filter git-lfs smudge -- %f failed 2
error: external filter git-lfs smudge -- %f failed
fatal: pytorch_model-00001-of-00002.bin: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

解决办法:

第一步: git lfs install --skip-smudge
第二步: git config --global core.longpaths true
第三步: 初始化.git文件: git init
第四步:重新下载

(lj) [root@test2 character]# git lfs install --skip-smudge
Updated git hooks.
Git LFS initialized.
(lj) [root@test2 character]#  git config --global core.longpaths true
(lj) [root@test2 character]# git init
Initialized empty Git repository in /data/lj/character/.git/
(lj) [root@test2 character]# git clone git@hf.co:thu-coai/CharacterGLM-6B
Cloning into 'CharacterGLM-6B'...
Warning: Permanently added the ECDSA host key for IP address '34.198.14.237' to the list of known hosts.
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (29/29), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 32 (delta 9), reused 0 (delta 0), pack-reused 3
Receiving objects: 100% (32/32), 33.95 KiB | 0 bytes/s, done.
Resolving deltas: 100% (9/9), done.
  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yitahutu79

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值