git clone huggingface 大文件的仓库 repo

创建日期: 2023-06-21 15:24 | 作者: 风波 | 浏览次数: 13 | 分类: Git

1. 安装 git-lfs

执行命令

yum install -y git-lfs

2. 初始化 git-lfs

安装 git-lfs 命令后,就可以执行下面命令进行 git 命令初始化。

git lfs install

结果会显示

Updated Git hooks.
Git LFS initialized.

3. clone huggingface 仓库

下载清华大学的 ChatGLM https://github.com/THUDM/ChatGLM-6B

执行命令

git clone https://huggingface.co/THUDM/chatglm-6b

注意⚠️: 1. 磁盘要大一些,因为 clone 下来的文件可能会很大 1. 网络要快一些


备注:如果 clone 文件的时候没有安装 git-lfs ,那么下载下来的大文件会是一个文本文件,其中记录着这个大文件的下载地址。

13 浏览
0 评论