Linux系统下载各大模型的方法
如果是想下载当前仓库下所有文件,包括好多个GB的模型,就选中间这条指令。选择Clone repository。
·
1. 下载Civitai模型
wget -O xxxx.safetensors "https://civitai.com/api/download/models/xxxx?&token=xxxxxxxxxx" --content-disposition
2. 下载huggingface模型
点击这3个点

选择Clone repository

如果是想下载当前仓库下所有文件,包括好多个GB的模型,就选中间这条指令
3. curl也是下载指令
curl -L -o controlnet-union-sdxl-1.0_diffusion_pytorch_model_promax.safetensors "https://huggingface.co/xinsir/controlnet-union-sdxl-1.0/resolve/main/diffusion_pytorch_model_promax.safetensors?download=true"
4. 使用huggingface镜像源下载模型
wget -O epicrealism_naturalSinRC1VAE.safetensors "https://hf-mirror.com/Justin-Choo/epiCRealism-Natural_Sin_RC1_VAE/resolve/main/epicrealism_naturalSinRC1VAE.safetensors?download=true"
其实就是把https://后面这一段改成镜像源的那一段
GItHub镜像站同理
https://ghproxy.com/
5.使用huggingface镜像源下载需要登录账号的模型
wget --header="Authorization: Bearer hf_你的hugging秘钥token" -O flux1-dev.safetensors "https://hf-mirror.com/black-forest-labs/FLUX.1-dev/resolve/main/flux1-dev.safetensors?download=true"
6.example
Github mirror source
https://ghproxy.com/
git clone https://ghproxy.com/mav-rik/facerestore_cf.git
wget --header="Authorization: Bearer xxxxxx" -O codeformer.pth "https://ghproxy.com/sczhou/CodeFormer/releases/download/v0.1.0/codeformer.pth"
Hugging Face mirror source
https://hf-mirror.com/
wget --header="Authorization: Bearer xxxxxx" -O t5xxl_fp8_e4m3fn.safetensors "https://hf-mirror.com/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp8_e4m3fn.safetensors?download=true"
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐
所有评论(0)