-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Download speed issues with the pytorch conda channel #17023
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
Comments
What country are you downloading from? |
Turkey, no vpn, no dns setting on the modem or at ubuntu. Other pip packages can be downloaded at speeds of ~400KB/s to ~2MB/s with no problem |
So, there's not much we can do if pythonhosted 8000 .org is very slow. @soumith, do we upload the pip binaries also to download.pytorch.org? Might be helpful to also offer them as downloads from https://pytorch.org/get-started/previous-versions/ |
Just tested, your server works fine. if you can change pip install to direct package name on your server it'd be better I think |
We do also upload the binaries to our CloudFront / S3 powered buckets. @WERAQS From the version selector on https://pytorch.org if you select CUDA10 + Linux + Pip, you will get direct links from this cloudfront / s3 bucket, and it should be much faster. |
I would like to re-open this. I am downloading in Japan using the recommended package manager (conda), trying to get the 1.4.0 update because of the PIL import error for newer PIL, but the download speed is absurdly slow, it times out because it's so slow. pip is marginally faster, in that it doesn't time out, but still barely ~60 kb/s on a fast connection. |
torch .whl download speed is about 100 kilobytes/s, with my 100 Megabit internet connection, and this happening for a few days already. Country - Belarus. Is it related to the CDN problems? @ezyang please help. |
I'm facing the same issue downloading from Malaysia. It takes 4 hours+ to download 700MB which is quite ridiculous. |
Also letting everyone know that download takes absurdly long in the Netherlands. Tested my internetspeed and it was 750Mbit/s download speed. |
Same here from Malaysia, just want to download pretrained ResNet. Monitored the speed downloading, not even 10kb. |
I'm (from India) using this command : |
I'm facing the same issue, using this command: |
Same error here from Brazil! |
Same from France, using 2 different internet operators (ISP) |
Same issue from Bangladesh, Internet speed ok for other tasks (~4mb/s) |
same situation in japan |
same situation here in Nigeria I have to try it on different isp even I use AWS server still not working |
Installed using Over an hour and I'm about 60% through it. Using equivalent pip command also has an eta for ~6 hours. |
Same here in India ... Please resolve this issue ... this has been a recurring one for every release. |
It's really weird. When I used the university network (HK) to download, it was very slow. The speed of other downloading tasks is fast. When I tried to use my phone to download the package from https://anaconda.org/pytorch/pytorch/files using my mobile data, the speed was pretty good... What's wrong with that? |
Same from India, takes ages! |
Much better with pip |
Same here from a Renater network where my speedtest gives me 840MB/S. |
Same issue in Korea! |
I'm having the same issue. |
Why this issue is closed ? I am from India and it is taking hours to download. |
Same from Hong Kong. |
installing using an older version, which is not hosted on pythonhosted.org pip install torch==1.7.0+cu101 torchvision==0.8.1+cu101 torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html |
I also tried phone and it solved my issue |
I am in USA (Virginia). Having the same problem connecting using an AWS instance. Has high bandwidth availability and initial speeds are good. Then it throttles down to 1kb/s and ETA for download is days away. How can this be resolved? P.S. I tried This also failed with throttling |
This doesn't solve your problem directly, but if you are already using AWS with EC2, you could spin up an instance with the Deep Learning AMI and have it ready to go with PyTorch in just a couple minutes if you are ok starting with a new instance. See more info here: https://docs.aws.amazon.com/dlami/latest/devguide/tutorial-pytorch.html |
pip install torch torchvision -f https://download.pytorch.org/whl/torch_stable.html work well |
All reactions
-
👍 1 reaction
adding --no-cache-dir works for me |
|
I tried downloading PyTorch from conda and it was taking a lot of time with a speed of less than 100kbps. |
I upgraded my pip: |
It is possible that the If some folks that can reproduce this can report the report of installing Also, please use
So I see no difference between |
I can confirm I saw that two days ago when installing with latest mambaforge on latest ubuntu. I can't easily show you the log since I had to cancel it since it was taking too long. Doing I cancelled and restarted a couple of times but it didn't improve. I then switched to a US VPN and restarted and it jumped to 6MB/s. This has been what I've observed about 80% of the time in Australia, in Melbourne Vic and Brisbane Qld. I've tried on Mac, Linux, and Windows (both native and WSL). |
It's also possible that it's a cloud service cache eviction issue in some cases. The Let's see what the conda infra folks say .... |
Some issues with Pip were mixed in, but most of this seems to be specific to the conda pytorch channel. So renamed to scope the issue to that topic. |
same error in singapore |
I think i have a solution for this, atleast works fine in my case. I tried downloading the package directly from anaconda website using my browser it was fast. But on other hand conda was slow in downloading it. I tried debugging this issue by looking into conda code. I found this method to be a time taking one I found that we can disable this by setting this property add_anaconda_token. Use this command to set it Now i am getting comparable speed on browser as well as via conda. |
This solved my issue. |
Don't ask me why |
same thing here in China. |
What a nightmare. Hours and hours. Aren't we supposed to be in 2023, with everything being rebuilt from scratch every time we change anything? |
Everyone having this issue, listen. It's not because the download speed is slow or an issue with the server. The issue is the RAM throttling on your CMD prompt. If you want to install PyTorch, just include the command --no-cache-dir in your install. For example, I used this command (pip3 install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118) and my download speed went from barely 100KB/s to 2.5MB/s and my 2.6 GB download is almost done after only a few minutes. |
Hey, I am having the same issue. I am new to all this so please bear with me. If I try to install using conda, it just stays stuck on the solving environment screen. But, if I use pip, it just works perfectly and downloads pytorch super quickly. I want to use pip to install Pytorch but I need to use conda for the later steps in installing pytorch. I am worried that using pip to install pytorch will lead to issues when I use conda to install pytorch3d Should I just proceed to install pytorch with pip, will it lead to any issues if i use conda later? |
@maskedhypocrite When you try to install in conda, are you creating a new environment or you are trying to install it in an existing environment ? |
@maskedhypocrite if that happens, use That should work; if not there is something wrong with your environment and you're better off creating a new environment. |
Guys, I have had this problem with pytorch as well as tensorflow. My solution fopr these huge packages these days is devpi (https://github.com/devpi/devpi). First ensure you have updated pip. Then install via devpi-server (read more HERE) after that first successful install, devpi should create a local mirror. This works well especially if you have locked your package versions so that the local mirror always serves the local version. Try it. That said, other than updating pip and using the fastest internet connection, I have no other tricks up my sleeve for the first install. This works its magic in consequent installs. |
This did it! From 7.3KB/s to 16.4 MB/s 🥇 |
For me I used mobile hotspot and it went from 10kbs to 1mbs |
this is issue still exists .. it's so strange |
for anyone who is still suffering from this issue, Alibaba Cloud (Aliyun) and the University of Science & Technology of China (USTC) hosts a PyPI mirror that is regularly synced and optimized for users, because it uses Alibaba cloud its much faster than the regular pytorch install, you can download it like this:
you can also use other providers that also mirror PyPi like Tsinghua Tuna Mirror and Douban Mirror. IMPORTANT: all the three i provided in this answer are Chinese companies/universities, so do take this in consideration |
Download speed of pytorch/torch is too slow. I'm downloading the file around 80KB/s at 24MBit/s connection. I've searched the same file I've been downloading and found at a mirror which lets 1MB/s download speed, what is going on with pytorch? not enough bandwidth for science?
original link for pip install torchvision was "https://files.pythonhosted.org/packages/93/b3/672813e65ac7605bac14a2a8e40e1a18e03bf0ac588c6a799508ee66c289/torch-1.0.1.post2-cp27-cp27mu-manylinux1_x86_64.whl"
the link I'm downloading it now; https://pypi.lcsb.uni.lu/packages/93/b3/672813e65ac7605bac14a2a8e40e1a18e03bf0ac588c6a799508ee66c289/torch-1.0.1.post2-cp27-cp27mu-manylinux1_x86_64.whl
this is seriously weird.
The text was updated successfully, but these errors were encountered: