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

一、问题描述

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

二、解决方法

  • 比如下载huggingface上的某些较大的模型权重时,使用该模型可能会报这个错
  • git lfs可以管理大型的文件,到git lfs官网下载:https://git-lfs.com/,如果是有mac上可以直接使用brew下载:brew install git-lfs
  • 再git lfs clone XX就没问题了

猜你喜欢

转载自blog.csdn.net/qq_35812205/article/details/132390858