Skip to content

Commit 895a3a5

Browse files
authored
Merge pull request #774 from ionite34/backport/main/pr-773
[dev to main] backport: Update forge torch version to recommended & same with invokeai for rocm (773)
2 parents 0ec0e44 + 57090c3 commit 895a3a5

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
77

88
## v2.11.7
9+
### Changed
10+
- Forge will use the recommended pytorch version 2.3.1 the next time it is updated
11+
- InvokeAI users with AMD GPUs on Linux will be upgraded to the rocm5.6 version of pytorch the next time it is updated
912
### Fixed
1013
- Fixed Inference not connecting with "Could not connect to backend - JSON value could not be converted" error with API changes from newer ComfyUI versions
1114
### Supporters

StabilityMatrix.Core/Models/Packages/InvokeAI.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,15 @@ await venvRunner
216216
await venvRunner
217217
.PipInstall(
218218
new PipInstallArgs()
219-
.WithTorch("==2.0.1")
220-
.WithTorchVision()
221-
.WithExtraIndex("rocm5.4.2"),
219+
.WithTorch("==2.2.2")
220+
.WithTorchVision("==0.17.2")
221+
.WithExtraIndex("rocm5.6"),
222222
onConsoleOutput
223223
)
224224
.ConfigureAwait(false);
225225
Logger.Info("Starting InvokeAI install (ROCm)...");
226226
pipCommandArgs =
227-
"-e . --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.4.2";
227+
"-e . --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.6";
228228
break;
229229
case TorchVersion.Mps:
230230
// For Apple silicon, use MPS

StabilityMatrix.Core/Models/Packages/SDWebForge.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ public override async Task InstallPackage(
172172
else
173173
{
174174
pipArgs = pipArgs
175-
.WithTorch("==2.1.2")
176-
.WithTorchVision("==0.16.2")
175+
.WithTorch("==2.3.1")
176+
.WithTorchVision("==0.18.1")
177177
.WithTorchExtraIndex(
178178
torchVersion switch
179179
{

0 commit comments

Comments
 (0)