下载代码
下载成功
openxlab下载失败
huggingface下载需走代理,可以在~/.bashrc文件中配置二级代理
# 默认情况下,不使用代理
export http_proxy=
export https_proxy=
# 定义一个环境变量,以确定是否应该启用代理
# 0 表示禁用代理,1 表示启用代理
export USE_PROXY=1
# 检查 USE_PROXY 变量
if [ "$USE_PROXY" -eq 1 ]; then
# 如果 USE_PROXY 为 1,启用代理
export http_proxy=http://xxxxx:7890
export https_proxy=http://xxxx:7890
fi