> ## Documentation Index
> Fetch the complete documentation index at: https://docs.autodl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 学术资源加速

## 公开服务

点击访问网址，站点内有具体教程。

Github： [[https://ghproxy.link/](https://ghproxy.link/)](https://ghproxy.link/)  （点击后查看当前可用的域名地址，然后点击地址跳转查看文档）

HuggingFace镜像站：[[https://hf-mirror.com/](https://hf-mirror.com/)](https://hf-mirror.com/)

## AutoDL内置服务

> [!WARNING]
>
> 声明：限于学术使用github和huggingface网络速度慢的问题，以下为方便用户学术用途使用相关资源提供的加速代理，不承诺稳定性保证。此外如遭遇恶意攻击等，将随时停止该加速服务

以下为可以加速访问的学术资源地址：

* github.com
* githubusercontent.com
* githubassets.com
* huggingface.co

如果在终端中使用：

```
source /etc/network_turbo
```

如果是在Notebook中使用：

```
import subprocess
import os

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
```

**取消学术加速**，如果不再需要建议关闭学术加速，因为该加速可能对正常网络造成一定影响。

```
unset http_proxy && unset https_proxy
```

### 速度对比

未使用加速：

![image-20220902184957292](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/guide/network/network_turbo/image-20220902184957292.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=786cce919cd4d1ba6451c123ade469ce)

使用加速：

![image-20220902185038755](https://mintcdn.com/yogacom/WVwqZdu2fSQRLCml/images/guide/network/network_turbo/image-20220902185038755.png?fit=max\&auto=format\&n=WVwqZdu2fSQRLCml\&q=85\&s=1eca6c329b9f5cd0c82c0799892bcec1)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.