huggingface下载工具git-lfs的使用笔记
一、Git LFS的使用Git LFS:(Large File Storage,解决git大文件存储问题)把音乐、图片、视频等指定的任意文件存在 Git 仓库之外,而在 Git 仓库中用一个占用空间 1KB 不到的文本指针来代替文件的存在,通过把大文件存储在 Git 仓库之外,可以减小 Git 仓库本身的体积,使克隆 Git 仓库的速度加快,也使得 Git 不会因为仓库中充满大文件而损失性能。
二、安装(1)linux:
123curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bashsudo apt-get install git-lfsgit lfs install
(2)windows:
1git lfs install
三、下载全部文件haggingface12git lfs installgit lfs clone https://huggingface.co/bigscience/bloom-7b1
四、下载中断、继续下载命令1git lfs fetch