Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Each version of torch is only available for specific versions of CUDA and ROCm. The Invoke installer tries to install torch 2.4.1 with ROCm 5.6 support, which does not exist. As a result, the installation falls back to the default CUDA version so AMD GPUs aren't detected. This commits fixes that by bumping the ROCm version to 6.1, as suggested by the PyTorch documentation.1 Torch 2.4.1 does not appear to be available for ROCm 6.2.
The specified CUDA version of 12.4 is still correct according to 1 so it does need to be changed.
Related Issues / Discussions
Closes #7006
Closes #7146
QA Instructions
Without this fix, the CPU is used to generate images. This can be seen in the log output. Image generation also takes forever.
I did not test the changes to the Dockerfile since I am not familiar with Docker.
Merge Plan
n/a
Checklist
Footnotes
https://pytorch.org/get-started/previous-versions/#v241 ↩ ↩2