diff --git a/_get_started/previous-versions.md b/_get_started/previous-versions.md index 237b958be70a..d14d97bb3fff 100644 --- a/_get_started/previous-versions.md +++ b/_get_started/previous-versions.md @@ -17,6 +17,53 @@ your convenience. ## Commands for Versions >= 1.0.0 +### v2.4.0 + +#### Conda + +##### OSX + +``` +# conda +conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 -c pytorch +``` + +##### Linux and Windows + +``` +# CUDA 11.8 +conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=11.8 -c pytorch -c nvidia +# CUDA 12.1 +conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=12.1 -c pytorch -c nvidia +# CUDA 12.4 +conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=12.4 -c pytorch -c nvidia +# CPU Only +conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 cpuonly -c pytorch +``` + +#### Wheel + +##### OSX + +``` +pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 +``` + +##### Linux and Windows + +``` +# ROCM 6.1 (Linux only) +pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/rocm6.1 +# CUDA 11.8 +pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu118 +# CUDA 12.1 +pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu121 +# CUDA 12.4 +pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu124 +# CPU only +pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cpu +``` + ### v2.3.1 #### Conda