File tree Expand file tree Collapse file tree
StabilityMatrix.Core/Models/Packages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -219,19 +219,22 @@ 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 ( ) ) ;
225+ var isRocm =
226+ torchIndex is TorchIndex . Rocm
227+ && ( SettingsManager . Settings . PreferredGpu ? . IsAmd ?? HardwareHelper . HasAmdGpu ( ) ) ;
225228
226229 // 1. Configure the entire install process declaratively.
227230 var config = new PipInstallConfig
228231 {
229232 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 " ,
233+ TorchVersion = "" ,
234+ TorchvisionVersion = "" ,
235+ XformersVersion = isLegacyNvidia ? "==0.0.30" : " ",
236+ CudaIndex = isLegacyNvidia ? "cu126 " : "cu128 " ,
237+ RocmIndex = "rocm7.2 " ,
235238 ExtraPipArgs =
236239 [
237240 "https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip" ,
Original file line number Diff line number Diff 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 } ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ torchIndex is TorchIndex.Cuda
192192 TorchVersion = "" ,
193193 TorchvisionVersion = "" ,
194194 CudaIndex = isBlackwell ? "cu128" : "cu126" ,
195- RocmIndex = "rocm7.1 " ,
195+ RocmIndex = "rocm7.2 " ,
196196 ExtraPipArgs =
197197 [
198198 "https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip" ,
You can’t perform that action at this time.
0 commit comments