I was downloading the latest versions of pytorch to install offline on a Windows VDI with CPUs. I ran the following
pip3 download -d torch torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip3 download -d torchvision torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip3 download -d torchtext torchtext==0.5.0 -f https://download.pytorch.org/whl/torch_stable.html
The files downloaded are
Is the CUDA version of torch (torch-1.4.0+cu92-cp37-cp37m-win_amd64.whl) required for torchvision and torchtext to run them on a CPU?
Thanks for reporting this.
That binary should still work right? It is just bigger than the cpu-only one.
It does. Size is a bit of an issue because I have to move these binaries after downloading.
Ok. we’re looking into it.
Hopefully this won’t be too much of an inconvenience in the meantime.
Well, the issues for torchvision and torchtext seem different. A cpu-only package of torchvision should rely on a cpu-only package of pytorch so that’s really a bug, which we are fixing right now. But for torchtext, it is noarch package so we cannot pin the requirement to any version that user desire unless it adopts the same version specifier as pytorch and torchvision.
Is there any way for me to force that (using a flag or some other command) during download? I am using
pip3 download torch==1.4.0+cpu torchtext==0.5.0 -f https://download.pytorch.org/whl/torch_stable.html and I need to run it on a CPU-only Windows VDI.
the issue with torchvision / torch is fixed now.
This worked for me perfectly, it downloaded torch 1.4.0+cpu torchvision 0.5.0+cpu and torchtext 0.5.0
pip download torch==1.4.0+cpu torchvision==0.5.0+cpu torchtext==0.5.0 -f https://download.pytorch.org/whl/torch_stable.html