Skip to content

Commit 652ac66

Browse files
authored
Updated to have all installs use latest PyTorch. Adjusted default cuda install to be cu126 whilst keeping Blackwell GPU environment at cu128. Removed AMD GPU check as no longer needed.
1 parent 2c12736 commit 652ac66

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

StabilityMatrix.Core/Models/Packages/SDWebForge.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,13 @@ torchIndex is TorchIndex.Cuda
177177

178178
var isAmd = torchIndex is TorchIndex.Rocm;
179179

180-
// Use latest PyTorch for Blackwell and AMD ROCm, otherwise use 2.3.1
181-
var useLatestPyTorch = isBlackwell || isAmd;
182-
183180
var config = new PipInstallConfig
184181
{
185182
PrePipInstallArgs = ["joblib"],
186183
RequirementsFilePaths = requirementsPaths,
187-
TorchVersion = useLatestPyTorch ? "" : "==2.3.1",
188-
TorchvisionVersion = useLatestPyTorch ? "" : "==0.18.1",
189-
CudaIndex = isBlackwell ? "cu128" : "cu121",
184+
TorchVersion = "",
185+
TorchvisionVersion = "",
186+
CudaIndex = isBlackwell ? "cu128" : "cu126",
190187
RocmIndex = "rocm6.4",
191188
ExtraPipArgs =
192189
[

0 commit comments

Comments
 (0)