foreword
It is often necessary to download the model to the server, and the git clone method can be used to quickly realize the model download.
1. Select the model to download
Take downloading moka-ai/m3e-base as an example, switch to Files and versions.
2. Change the url of the download page
As shown in the figure above, the url of the webpage to download the model is currently:
https://huggingface.co/moka-ai/m3e-base/tree/main
Just change /tree/main in the url to git, and the changed command is as follows:
https://huggingface.co/moka-ai/m3e-base.git
3. Download
Enter the following command in bash or cmd:
git clone https://huggingface.co/moka-ai/m3e-base.git
If the file is larger, the command is changed to:
git lfs clone https://huggingface.co/moka-ai/m3e-base.git
Reference:
1.https://blog.csdn.net/weixin_44034841/article/details/131862553