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