Skip to content

Commit 90da7a8

Browse files
authored
Merge pull request #1594 from NeuralFault/rocm-update
Rocm Update to 7.2 index (Linux)
2 parents eb2e34d + 9347b69 commit 90da7a8

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

StabilityMatrix.Core/Models/Packages/A3WebUI.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,19 +219,19 @@ public override async Task InstallPackage(
219219
.ConfigureAwait(false);
220220

221221
var torchIndex = options.PythonOptions.TorchIndex ?? GetRecommendedTorchVersion();
222-
var isBlackwell =
222+
var isLegacyNvidia =
223223
torchIndex is TorchIndex.Cuda
224-
&& (SettingsManager.Settings.PreferredGpu?.IsBlackwellGpu() ?? HardwareHelper.HasBlackwellGpu());
224+
&& (SettingsManager.Settings.PreferredGpu?.IsLegacyNvidiaGpu() ?? HardwareHelper.HasLegacyNvidiaGpu());
225225

226226
// 1. Configure the entire install process declaratively.
227227
var config = new PipInstallConfig
228228
{
229229
RequirementsFilePaths = ["requirements_versions.txt"],
230-
TorchVersion = torchIndex == TorchIndex.Mps ? "==2.3.1" : (isBlackwell ? "" : "==2.1.2"),
231-
TorchvisionVersion = torchIndex == TorchIndex.Mps ? "==0.18.1" : (isBlackwell ? "" : "==0.16.2"),
232-
XformersVersion = isBlackwell ? " " : "==0.0.23.post1",
233-
CudaIndex = isBlackwell ? "cu128" : "cu121",
234-
RocmIndex = "rocm5.6",
230+
TorchVersion = " ",
231+
TorchvisionVersion = " ",
232+
XformersVersion = isLegacyNvidia ? "==0.0.30" : " ",
233+
CudaIndex = isLegacyNvidia ? "cu126" : "cu128",
234+
RocmIndex = "rocm7.2",
235235
ExtraPipArgs =
236236
[
237237
"https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip",

StabilityMatrix.Core/Models/Packages/ComfyUI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ _ when gfxArch.StartsWith("gfx120") => "https://rocm.nightlies.amd.com/v2/gfx120
431431
ExtraPipArgs = ["numpy<2"],
432432
TorchaudioVersion = " ", // Request torchaudio without a specific version
433433
CudaIndex = isLegacyNvidia ? "cu126" : "cu130",
434-
RocmIndex = "rocm7.1",
434+
RocmIndex = "rocm7.2",
435435
UpgradePackages = true,
436436
PostInstallPipArgs = ["typing-extensions>=4.15.0"],
437437
};

StabilityMatrix.Core/Models/Packages/InvokeAI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public override async Task InstallPackage(
229229
TorchIndex.Cpu when Compat.IsLinux => "https://download.pytorch.org/whl/cpu",
230230
TorchIndex.Cuda when isLegacyNvidiaGpu => "https://download.pytorch.org/whl/cu126",
231231
TorchIndex.Cuda => "https://download.pytorch.org/whl/cu128",
232-
TorchIndex.Rocm => "https://download.pytorch.org/whl/rocm6.3",
232+
TorchIndex.Rocm => "https://download.pytorch.org/whl/rocm7.2",
233233
_ => string.Empty,
234234
};
235235

StabilityMatrix.Core/Models/Packages/PipInstallConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public record PipInstallConfig
1515
public string TorchaudioVersion { get; init; } = "";
1616
public string XformersVersion { get; init; } = "";
1717
public string CudaIndex { get; init; } = "cu130";
18-
public string RocmIndex { get; init; } = "rocm6.4";
18+
public string RocmIndex { get; init; } = "rocm7.2";
1919
public bool ForceReinstallTorch { get; init; } = true;
2020
public bool UpgradePackages { get; init; } = false;
2121
public bool SkipTorchInstall { get; init; } = false;

StabilityMatrix.Core/Models/Packages/SDWebForge.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,18 @@ public override async Task InstallPackage(
181181
}
182182

183183
var torchIndex = options.PythonOptions.TorchIndex ?? GetRecommendedTorchVersion();
184-
var isBlackwell =
184+
var isLegacyNvidia =
185185
torchIndex is TorchIndex.Cuda
186-
&& (SettingsManager.Settings.PreferredGpu?.IsBlackwellGpu() ?? HardwareHelper.HasBlackwellGpu());
186+
&& (SettingsManager.Settings.PreferredGpu?.IsLegacyNvidiaGpu() ?? HardwareHelper.HasLegacyNvidiaGpu());
187187

188188
var config = new PipInstallConfig
189189
{
190190
PrePipInstallArgs = ["joblib"],
191191
RequirementsFilePaths = requirementsPaths,
192-
TorchVersion = "",
193-
TorchvisionVersion = "",
194-
CudaIndex = isBlackwell ? "cu128" : "cu126",
195-
RocmIndex = "rocm7.1",
192+
TorchVersion = " ",
193+
TorchvisionVersion = " ",
194+
CudaIndex = isLegacyNvidia ? "cu126" : "cu128",
195+
RocmIndex = "rocm7.2",
196196
ExtraPipArgs =
197197
[
198198
"https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip",

0 commit comments

Comments
 (0)