[linux]服务器挂代理提升下载权重速度

写在前面

这里主要以huggingface下载权重为例,介绍如何在linux中部署代理提升下载速度

实际操作

第一步:服务器安装clash文件

python 复制代码
https://github.com/Dreamacro/clash/releases#下载clash链接

第二步:使用自己的配置文件

将config.yaml替换掉即可
第三步:添加代理端口

python 复制代码
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890     ######以上代码只对当前窗口有效

第四步:开启服务器代理

python 复制代码
./clash -d .

第五步:找到huggingface权重下载链接

python 复制代码
git lfs install
git clone yourpath

第六步:下载权重,监控速度

python 复制代码
bwm-ng

欢迎关注!

相关推荐
星恒随风11 小时前
MySQL 从零入门(七):索引原理与 B+ 树详解——从磁盘 I/O 到 InnoDB 聚簇索引
linux·服务器·数据库·笔记·mysql
多弗朗皮卡丘1 天前
网络基础:数据链路层与其他协议或技术
linux·网络·tcp/ip
dingdingfish1 天前
TLPI 第52章 读书笔记:POSIX Message Queues
linux·mq·ipc·posix·message·tlpi
wacsii1 天前
【Linux进程(五)】进程控制全解析:从创建、终止、等待到程序替换
linux·服务器
七夜zippoe1 天前
Nexent Linux 部署:用 deploy.sh
linux·服务器·docker·部署·ai智能体·nexent
去码头整点薯条981 天前
NFS服务器
linux·运维·服务器
蜗牛一步步往上爬1 天前
第一章 初识Linux shell
linux·运维·服务器
拂拉氏1 天前
【知识讲解】 Linux线程中锁的认识
linux·互斥锁
无足鸟ICT1 天前
【RHCA+】系统调优配置文件
linux·服务器