I've tried multiple things e.g.
conda install -y pytorch==1.9 torchvision torchaudio torchtext cudatoolkit=11.0 -c pytorch -c nvidia
but it never ends up downloading the version with cuda 11.0 or above for some reason.
The error message is too large to paste but you can see details here: https://github.com/pytorch/text/issues/1395
It should be easy to reproduce with an empty env as follow:
conda create -n env_a40 python=3.9
conda activate env_a40
conda install -y pytorch==1.9 torchvision torchaudio torchtext cudatoolkit=11.0 -c pytorch -c nvidia
crossposted:
- https://discuss.pytorch.org/t/how-does-one-install-a-torchtext-version-compatible-with-cuda-11-0/132276
- https://github.com/pytorch/text/issues/1395
related:
- How does one install pytorch 1.9 in an HPC that seems to refuse to cooperate?
- https://github.com/pytorch/text/issues/1397
note you can also try it with pip:
pip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
with no success yet.