Download the large model in huggingface by cloning (git lfs install)

1. As shown in the picture: You can manually download files one by one, but that is too slow. At this time, you can click on the circled area in the picture below.
2. Click [Clone repository] and enter [git lfs install] in the command line (large files will be downloaded only after this is installed, otherwise the .bin files in the picture will not be downloaded)

git lfs install
git clone https://huggingface.co/THUDM/chatglm2-6b

Insert image description here
Insert image description here
3. Then git clone https://huggingface.co/THUDM/chatglm2-6b. It works fine in Linux, but if the following error occurs in the window, you need to enter the directory of chatglm2-6b.
Insert image description here
4. In the directory of chatglm2-6b, execute git lfs pull, you can see that normal downloading has started.
Insert image description hereInsert image description here

It’s not easy to organize, please like it!

It’s not easy to organize, please like it!

It’s not easy to organize, please like it!

Guess you like

Origin blog.csdn.net/qq_40600379/article/details/132006217