解决git下载huggingface模型失败问题
AI日日新
编辑于 2023年06月04日 09:34

该问题是由于模型文件过大,导致下载的模型文件都只显示 1KB 左右的大小

要解决该问题,需要安装 git lfs:

代码块
Python
自动换行
复制代码
sudo apt-get update
sudo apt-get install git-lfs
git lfs install
复制成功

接着就能继续下载模型文件了,例如:

代码块
Python
自动换行
复制代码
git clone https://huggingface.co/ClueAI/ChatYuan-7B
复制成功