赞
踩
想在本地终端下载huggingface的模型进行微调使用, 但是需要代理进行访问.不然下载容易报超时错误.
# 打开代理
export http_proxy=socks5://127.0.0.1:1080
export https_proxy=socks5://127.0.0.1:1080
# run download model coding...
# 释放掉
unset http_proxy
unset https_proxy
curl ipinfo.io
如果显示如下:
{
"ip": "211.23.97.64",
"hostname": "211-23-97-64.hinet-ip.hinet.net",
"city": "Taichung",
"region": "Taiwan",
"country": "TW",
"loc": "24.1469,120.6839",
"org": "AS3462 Data Communication Business Group",
"timezone": "Asia/Taipei",
"readme": "https://ipinfo.io/missingauth"
}
则表示代理成功
如果显示如下:
{
"ip": "183.xxx.xxx.xxx",
"city": "Beijing",
"region": "Beijing",
"country": "CN",
"loc": "39.9075,116.3972",
"org": "AS56048 China Mobile Communicaitons Corporation",
"timezone": "Asia/Shanghai",
"readme": "https://ipinfo.io/missingauth"
}
以上为使用过程中的记录笔记.希望可以帮到大家!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。