解决OSError: You seem to have cloned a repository without having git-lfs installed. Please install git

1. Problem description

报错如题:OSError: You seem to have cloned a repository without having git-lfs installed. Please install git

2. Solution

  • For example, when downloading some large model weights on huggingface, this error may be reported when using the model.
  • Git lfs can manage large files. Go to the git lfs official website to download: https://git-lfs.com/. If you have a Mac, you can directly use brew to download: brew install git-lfs
  • Then git lfs clone XX will be no problem

Guess you like

Origin blog.csdn.net/qq_35812205/article/details/132390858