Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 安装环境时pytorch下载速度慢 #291

Open
Touch-Night opened this issue Jun 26, 2024 · 5 comments
Open

[BUG] 安装环境时pytorch下载速度慢 #291

Touch-Night opened this issue Jun 26, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Touch-Night
Copy link
Contributor

Feel free to ask any kind of questions in the issues page, but please use English since other users may find your questions valuable.

Describe the bug

fish-speech/install_env.bat

Lines 251 to 256 in fbe2e3f

if "%%p"=="torch" (
%PIP_CMD% install torch --index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu121 --no-warn-script-location
) else if "%%p"=="torchvision" (
%PIP_CMD% install torchvision --index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu121 --no-warn-script-location
) else if "%%p"=="torchaudio" (
%PIP_CMD% install torchaudio --index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu121 --no-warn-script-location

上海交大的pytorch镜像反代似乎不再能够加速下载,从之前的10MB/s变成了现在的20-400kb/s。

@Touch-Night Touch-Night added the bug Something isn't working label Jun 26, 2024
@leng-yue
Copy link
Member

@AnyaCoder
Copy link
Collaborator

AnyaCoder commented Jun 26, 2024

Feel free to ask any kind of questions in the issues page, but please use English since other users may find your questions valuable.

Describe the bug

fish-speech/install_env.bat

Lines 251 to 256 in fbe2e3f

if "%%p"=="torch" (
%PIP_CMD% install torch --index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu121 --no-warn-script-location
) else if "%%p"=="torchvision" (
%PIP_CMD% install torchvision --index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu121 --no-warn-script-location
) else if "%%p"=="torchaudio" (
%PIP_CMD% install torchaudio --index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu121 --no-warn-script-location

上海交大的pytorch镜像反代似乎不再能够加速下载,从之前的10MB/s变成了现在的20-400kb/s。

用原版试试,上交大的镜像不是我找的,我也不知道还有什么镜像可以用了。
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

@Touch-Night
Copy link
Contributor Author

用原版也是这个龟速啊

@AnyaCoder
Copy link
Collaborator

我现在还有一个想法:把torch stable版放在hf镜像上,然后点击下载。
欢迎补充。

@Stardust-minus
Copy link
Member

可以尝试将官方的download.pytorch.org通过hosts指向162.247.5.96
这是AWS Cloudfront和中国联通的合作IP,通过中联国际直接连接中国香港。三网均能有很好的下载速度。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants