前言
? ? ? ? 經(jīng)常需要下載模型到服務(wù)器,使用git clone方法可以快速實現(xiàn)模型下載。
1.選定要下載的模型
????????以下載moka-ai/m3e-base為例,切換到Files and versions。
2.更改下載網(wǎng)頁的url
? ? ? ? 如上圖所示,當(dāng)前要下載模型網(wǎng)頁的url為:
https://huggingface.co/moka-ai/m3e-base/tree/main
? ? ? ? 只需要將url中的/tree/main改為git即可,更改后的命令如下所示:
https://huggingface.co/moka-ai/m3e-base.git
3.下載
?????????在bash或cmd中輸入如下命令:
git clone https://huggingface.co/moka-ai/m3e-base.git
? ? ? ? 如果文件較大,命令改為:
git lfs clone https://huggingface.co/moka-ai/m3e-base.git
Reference:文章來源:http://www.zghlxwxcb.cn/news/detail-718764.html
? ? ? ? 1.https://blog.csdn.net/weixin_44034841/article/details/131862553文章來源地址http://www.zghlxwxcb.cn/news/detail-718764.html
到了這里,關(guān)于【工程實踐】使用git clone 批量下載huggingface模型文件的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!