无法加载hugginface权重
某一天用 large-chinese-bert
的时候报了这个错误,我是从别的服务器copy这个权重文件夹过来的。
OSError: You seem to have cloned a repository without having git-lfs installed. Please install git-lfs and run `
git lfs install` followed by `git lfs pull` in the folder you cloned.
如果强行安装 git-lfs
的话,需要重启服务器,导致其它同学的进程被kill。
最后还是进去了权重所在的文件夹,执行了下面的命令(直接按照报错的提示执行这两条命令):
git-lfs install
git-lfs pull
git clone
无法下载大型的权重文件
首先需要下载 git-lfs
,不然报错:
git: 'lfs' is not a git command.
好像直接 apt-get install git-lfs
就行了
然后再git clone就没报错了,不过下载速度还是比较慢的,毕竟300MB的模型权重。
- 反正我受不了这么慢,我直接笔记本下载上传服务器。