Update docs to recommend torch 2.1 (#2748)

This commit is contained in:
Brent Yi authored and GitHub committed 2024-01-11 15:12:41 -08:00
1 parent 3b6ca91dbc
commit 55b7a2c8ef
2 files changed
+4 -13

No files matched your search

+1 -10
View File
@@ -124,19 +124,10 @@ pip install --upgrade pip
Install PyTorch with CUDA (this repo has been tested with CUDA 11.7 and CUDA 11.8) and [tiny-cuda-nn](https://github.com/NVlabs/tiny-cuda-nn). Install PyTorch with CUDA (this repo has been tested with CUDA 11.7 and CUDA 11.8) and [tiny-cuda-nn](https://github.com/NVlabs/tiny-cuda-nn).
`cuda-toolkit` is required for building `tiny-cuda-nn`. `cuda-toolkit` is required for building `tiny-cuda-nn`.
For CUDA 11.7:
```bash
pip install torch==2.0.1+cu117 torchvision==0.15.2+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
conda install -c "nvidia/label/cuda-11.7.1" cuda-toolkit
pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
```
For CUDA 11.8: For CUDA 11.8:
```bash ```bash
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 pip install torch==2.1.2+cu118 torchvision==0.16.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit
pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
+3 -3
View File
@@ -42,12 +42,12 @@ pip uninstall torch torchvision functorch tinycudann
``` ```
::::{tab-set} ::::{tab-set}
:::{tab-item} Torch 2.0.1 with CUDA 11.8 :::{tab-item} Torch 2.1.2 with CUDA 11.8 (recommended)
Install PyTorch 2.0.1 with CUDA 11.8: Install PyTorch 2.1.2 with CUDA 11.8:
```bash ```bash
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 pip install torch==2.1.2+cu118 torchvision==0.16.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
``` ```
To build the necessary CUDA extensions, `cuda-toolkit` is also required. We To build the necessary CUDA extensions, `cuda-toolkit` is also required. We