Skip to content

Commit 2c12736

Browse files
authored
updated indents
1 parent 8346341 commit 2c12736

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

StabilityMatrix.Core/Models/Packages/SDWebForge.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -170,30 +170,30 @@ public override async Task InstallPackage(
170170
);
171171
}
172172

173-
var torchIndex = options.PythonOptions.TorchIndex ?? GetRecommendedTorchVersion();
174-
var isBlackwell =
175-
torchIndex is TorchIndex.Cuda
176-
&& (SettingsManager.Settings.PreferredGpu?. IsBlackwellGpu() ?? HardwareHelper.HasBlackwellGpu());
173+
var torchIndex = options.PythonOptions.TorchIndex ?? GetRecommendedTorchVersion();
174+
var isBlackwell =
175+
torchIndex is TorchIndex.Cuda
176+
&& (SettingsManager.Settings.PreferredGpu?.IsBlackwellGpu() ?? HardwareHelper.HasBlackwellGpu());
177177

178-
var isAmd = torchIndex is TorchIndex.Rocm;
178+
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;
180+
// Use latest PyTorch for Blackwell and AMD ROCm, otherwise use 2.3.1
181+
var useLatestPyTorch = isBlackwell || isAmd;
182182

183-
var config = new PipInstallConfig
184-
{
185-
PrePipInstallArgs = ["joblib"],
186-
RequirementsFilePaths = requirementsPaths,
187-
TorchVersion = useLatestPyTorch ? "" : "==2.3.1",
188-
TorchvisionVersion = useLatestPyTorch ? "" : "==0.18.1",
189-
CudaIndex = isBlackwell ? "cu128" : "cu121",
190-
RocmIndex = "rocm6.4",
191-
ExtraPipArgs =
192-
[
193-
"https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip",
194-
],
195-
PostInstallPipArgs = ["numpy==1.26.4"],
196-
};
183+
var config = new PipInstallConfig
184+
{
185+
PrePipInstallArgs = ["joblib"],
186+
RequirementsFilePaths = requirementsPaths,
187+
TorchVersion = useLatestPyTorch ? "" : "==2.3.1",
188+
TorchvisionVersion = useLatestPyTorch ? "" : "==0.18.1",
189+
CudaIndex = isBlackwell ? "cu128" : "cu121",
190+
RocmIndex = "rocm6.4",
191+
ExtraPipArgs =
192+
[
193+
"https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip",
194+
],
195+
PostInstallPipArgs = ["numpy==1.26.4"],
196+
};
197197

198198
await StandardPipInstallProcessAsync(
199199
venvRunner,

0 commit comments

Comments
 (0)