gigit clone https://www.modelscope.cn/ZhipuAI/chatglm3-6b-32k.git Cloning into…
Private research annotation
Sign in to add a private research label or note.
- User
gigit clone https://www.modelscope.cn/ZhipuAI/chatglm3-6b-32k.git Cloning into 'chatglm3-6b-32k'... remote: Enumerating objects: 69, done. remote: Total 69 (delta 0), reused 0 (delta 0), pack-reused 69 Receiving objects: 100% (69/69), 38.61 KiB | 1.68 MiB/s, done. Resolving deltas: 100% (21/21), done.
Filtering content: 100% (8/8), 11.63 GiB | 16.30 MiB/s, done. fatal: active
post-checkouthook found duringgit clone: F:/langchain/chatglm3-6b-32k/.git/hooks/post-checkout For security reasons, this is disallowed by default. If this is intentional and the hook should actually be run, please run the command again withGIT_CLONE_PROTECTION_ACTIVE=falsewarning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/' 中文回答我 - Assistant
这个命令是在尝试从远程存储库克隆代码到本地存储库。在这个过程中,程序发现了一个名为
post-checkout的钩子,这是一个潜在的安全风险,因此默认情况下被禁止。如果您确定这个钩子是安全的并且确实应该运行,请在命令后面添加GIT_CLONE_PROTECTION_ACTIVE=false来强制克隆。如果您想检查已经检出的内容,可以使用git status命令,然后使用git restore --source=HEAD :/重试收回。 - User
返回代码
- Assistant
我给您回复的消息中已经包含了返回的代码。如果您需要进一步的帮助或有其他问题,请随时提出。我很乐意帮助您。
- User
ator@DESKTOP-QLU53NH MINGW64 /f/langchain $ git clone https://www.modelscope.cn/AI-ModelScope/bge-large-zh-v1.5.git Cloning into 'bge-large-zh-v1.5'... remote: Enumerating objects: 31, done. remote: Counting objects: 100% (31/31), done. remote: Compressing objects: 100% (27/27), done. remote: Total 31 (delta 5), reused 0 (delta 0), pack-reused 0 Receiving objects: 100% (31/31), 168.51 KiB | 331.00 KiB/s, done. Resolving deltas: 100% (5/5), done. Downloading model.safetensors (1.3 GB) Error downloading object: model.safetensors (74541fa): Smudge error: Error downloading model.safetensors (74541fa3bddf35c2ed35a7c21542776fb830cde7d372dbe05ca42aa70f2bf904): expected OID 74541fa3bddf35c2ed35a7c21542776fb830cde7d372dbe05ca42aa70f2bf904, got 9bdaa78f4f54bfffce5e362c31432508c6519002120f4c9923f0e7d5256f8058 after 316505040 bytes written
Errors logged to 'F:\langchain\bge-large-zh-v1.5.git\lfs\logs\20240516T231136.5286388.log'. Use
git lfs logs lastto view the log. error: external filter 'git-lfs filter-process' failed fatal: model.safetensors: 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 :/' - Assistant
从您提供的输出来看,似乎在下载模型文件时遇到了问题,具体是下载的过程中出现了错误。错误消息显示smudge filter lfs failed,这可能是由于Git LFS(Large File Storage)下载对象时出现问题。
您尝试使用了
GIT_CLONE_PROTECTION_ACTIVE=false,但是这并不适用于克隆命令。这个选项是用来解决之前提到的潜在的安全问题。您可以尝试通过以下步骤解决问题:
- 使用
git lfs logs last查看详细日志,以便了解更多有关下载错误的信息。 - 确保您的Git LFS已经正确安装和配置。
- 尝试清除下载的模型文件并重新克隆存储库。您可以删除原始存储库目录中的
.git目录和.git/lfs目录,然后重新克隆存储库。
如果上述步骤无法解决问题,请提供更多信息或尝试搜索相关问题的解决方案。希望这可以帮助您解决问题。如果您有其他问题,请随时告诉我。
- 使用