Provide requirements files for different PyTorch platforms

This commit is contained in:
Bernhard Frauendienst 2023-09-09 19:22:37 +02:00
parent 4185324a1d
commit 61c8e0e9bb
6 changed files with 29 additions and 3 deletions

View File

@ -95,16 +95,16 @@ Note: pytorch does not support python 3.12 yet so make sure your python version
### AMD GPUs (Linux only)
AMD users can install rocm and pytorch with pip if you don't have it already installed, this is the command to install the stable version:
```pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.6```
```pip install -r requirements-rocm5.6.txt```
This is the command to install the nightly with ROCm 5.7 that might have some performance improvements:
```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm5.7```
```pip install -r requirements-rocm5.7-nightly.txt```
### NVIDIA
Nvidia users should install pytorch using this command:
```pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121```
```pip install -r requirements-cu121.txt```
#### Troubleshooting

5
requirements-cpu.txt Normal file
View File

@ -0,0 +1,5 @@
--extra-index-url https://download.pytorch.org/whl/cpu
torch
torchvision
torchaudio

5
requirements-cu118.txt Normal file
View File

@ -0,0 +1,5 @@
--extra-index-url https://download.pytorch.org/whl/cu118
torch
torchvision
torchaudio

5
requirements-cu121.txt Normal file
View File

@ -0,0 +1,5 @@
--extra-index-url https://download.pytorch.org/whl/cu121
torch
torchvision
torchaudio

5
requirements-rocm5.6.txt Normal file
View File

@ -0,0 +1,5 @@
--extra-index-url https://download.pytorch.org/whl/rocm5.6
torch
torchvision
torchaudio

View File

@ -0,0 +1,6 @@
--pre
--index-url https://download.pytorch.org/whl/nightly/rocm5.7
torch
torchvision
torchaudio