Skip to content

Commit

Permalink
Merge pull request LykosAI#774 from ionite34/backport/main/pr-773
Browse files Browse the repository at this point in the history
[dev to main] backport: Update forge torch version to recommended & same with invokeai for rocm (773)
  • Loading branch information
mohnjiles committed Aug 15, 2024
2 parents 0ec0e44 + 57090c3 commit 895a3a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).

## v2.11.7
### Changed
- Forge will use the recommended pytorch version 2.3.1 the next time it is updated
- InvokeAI users with AMD GPUs on Linux will be upgraded to the rocm5.6 version of pytorch the next time it is updated
### Fixed
- Fixed Inference not connecting with "Could not connect to backend - JSON value could not be converted" error with API changes from newer ComfyUI versions
### Supporters
Expand Down
8 changes: 4 additions & 4 deletions StabilityMatrix.Core/Models/Packages/InvokeAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,15 @@ await venvRunner
await venvRunner
.PipInstall(
new PipInstallArgs()
.WithTorch("==2.0.1")
.WithTorchVision()
.WithExtraIndex("rocm5.4.2"),
.WithTorch("==2.2.2")
.WithTorchVision("==0.17.2")
.WithExtraIndex("rocm5.6"),
onConsoleOutput
)
.ConfigureAwait(false);
Logger.Info("Starting InvokeAI install (ROCm)...");
pipCommandArgs =
"-e . --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.4.2";
"-e . --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.6";
break;
case TorchVersion.Mps:
// For Apple silicon, use MPS
Expand Down
4 changes: 2 additions & 2 deletions StabilityMatrix.Core/Models/Packages/SDWebForge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ public override async Task InstallPackage(
else
{
pipArgs = pipArgs
.WithTorch("==2.1.2")
.WithTorchVision("==0.16.2")
.WithTorch("==2.3.1")
.WithTorchVision("==0.18.1")
.WithTorchExtraIndex(
torchVersion switch
{
Expand Down

0 comments on commit 895a3a5

Please sign in to comment.