-
Notifications
You must be signed in to change notification settings - Fork 35
Update and simplify GPU environment setup instructions #602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Removed instructions for creating a GPU-compatible environment based on PyTorch documentation as it does not show conda commands anymore. Also streamlined the section on using CONDA_OVERRIDE_CUDA and got rid of the `pytorch` channel given its deprecation: pytorch/pytorch#138506
✅ Deploy Preview for nebari-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…ari-dev/nebari-docs into update-gpu-environment-setup
| 2. **Create the environment specification based on recommendations from the PyTorch documentation**: | ||
| You can check [PyTorch documentation](https://pytorch.org/get-started/locally/) to get a quick list of the necessary CUDA-specific packages. | ||
| Select the following options to get the latest CUDA version: | ||
| - PyTorch Build = Stable | ||
| - Your OS = Linux | ||
| - Package = Conda | ||
| - Language = Python | ||
| - Compute Platform = 12.1 (Select the version that is less than or equal to the `nvidia-smi` output (see above) on your server) | ||
|
|
||
|  | ||
|
|
||
| The command `conda install` from above is: | ||
| ``` | ||
| conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia | ||
| ``` | ||
| The corresponding yaml config would be: | ||
| ``` | ||
| channels: | ||
| - pytorch | ||
| - nvidia | ||
| - conda-forge | ||
| dependencies: | ||
| - pytorch | ||
| - pytorch-cuda==12.1 | ||
| - torchvision | ||
| - torchaudio | ||
| - ipykernel | ||
| variables: {} | ||
| ``` | ||
| :::note | ||
| The order of the channels is respected by conda, so keep pytorch at the top, then nvidia, then conda-forge. | ||
|
|
||
| You can use `**GUI <-> YAML**` Toggle to edit the config. | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| While creating a new config, click on the `**GUI <-> YAML**` Toggle to edit yaml config. | ||
| ``` | ||
| channels: | ||
| - pytorch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pytorch channel has been deprecated and does not have recent versions of PyTorch: pytorch/pytorch#138506

Removed instructions for creating a GPU-compatible environment based on PyTorch documentation as it does not show conda commands anymore. Also streamlined the section on using CONDA_OVERRIDE_CUDA and got rid of the
pytorchchannel given its deprecation: pytorch/pytorch#138506Reference Issues or PRs
What does this implement/fix?
Put a
xin the boxes that applyTesting
Documentation
Access-centered content checklist
Text styling
H1or#in markdown).Non-text content
Any other comments?