分享一个AutoDL解决达标卡在loading的方法,无需huggingface手动下载
LifeCheckpoint opened this issue · comments
LDDMiao commented
利用平台提供学术加速即可,在gui.py
中import语句后加入
result = subprocess.run('bash -c "source /etc/network_turbo && env | grep proxy"', shell=True, capture_output=True, text=True)
output = result.stdout
for line in output.splitlines():
if '=' in line:
var, value = line.split('=', 1)
os.environ[var] = value
即可