当前位置:   article > 正文

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 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'
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

解决办法:

第一步: 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.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/在线问答5/article/detail/749518
推荐阅读
相关标签
  

闽ICP备14008679号