|
6 | 6 | using StabilityMatrix.Core.Helper; |
7 | 7 | using StabilityMatrix.Core.Helper.Cache; |
8 | 8 | using StabilityMatrix.Core.Helper.HardwareInfo; |
| 9 | +using StabilityMatrix.Core.Models; |
9 | 10 | using StabilityMatrix.Core.Models.FileInterfaces; |
10 | 11 | using StabilityMatrix.Core.Models.Progress; |
11 | 12 | using StabilityMatrix.Core.Processes; |
@@ -40,8 +41,65 @@ IPyInstallationManager pyInstallationManager |
40 | 41 | public override string Disclaimer => |
41 | 42 | "Prerequisite install may require admin privileges and a reboot. " |
42 | 43 | + "Visual Studio Build Tools for C++ Desktop Development will be installed automatically. " |
43 | | - + "AMD GPUs under the RX 6800 may require additional manual setup."; |
| 44 | + + "AMD GPUs under the RX 6800 may require additional manual setup. "; |
44 | 45 | public override string LaunchCommand => Path.Combine("zluda", "zluda.exe"); |
| 46 | + |
| 47 | + public override List<LaunchOptionDefinition> LaunchOptions |
| 48 | + { |
| 49 | + get |
| 50 | + { |
| 51 | + var options = new List<LaunchOptionDefinition> |
| 52 | + { |
| 53 | + new() |
| 54 | + { |
| 55 | + Name = "Cross Attention Method", |
| 56 | + Type = LaunchOptionType.Bool, |
| 57 | + InitialValue = "--use-quad-cross-attention", |
| 58 | + Options = |
| 59 | + [ |
| 60 | + "--use-split-cross-attention", |
| 61 | + "--use-quad-cross-attention", |
| 62 | + "--use-pytorch-cross-attention", |
| 63 | + "--use-sage-attention", |
| 64 | + ], |
| 65 | + }, |
| 66 | + new() |
| 67 | + { |
| 68 | + Name = "Disable Async Offload", |
| 69 | + Type = LaunchOptionType.Bool, |
| 70 | + InitialValue = true, |
| 71 | + Options = ["--disable-async-offload"], |
| 72 | + }, |
| 73 | + new() |
| 74 | + { |
| 75 | + Name = "Disable Pinned Memory", |
| 76 | + Type = LaunchOptionType.Bool, |
| 77 | + InitialValue = true, |
| 78 | + Options = ["--disable-pinned-memory"], |
| 79 | + }, |
| 80 | + new() |
| 81 | + { |
| 82 | + Name = "Disable Smart Memory", |
| 83 | + Type = LaunchOptionType.Bool, |
| 84 | + InitialValue = false, |
| 85 | + Options = ["--disable-smart-memory"], |
| 86 | + }, |
| 87 | + new() |
| 88 | + { |
| 89 | + Name = "Disable Model/Node Caching", |
| 90 | + Type = LaunchOptionType.Bool, |
| 91 | + InitialValue = false, |
| 92 | + Options = ["--cache-none"], |
| 93 | + }, |
| 94 | + }; |
| 95 | + |
| 96 | + options.AddRange( |
| 97 | + base.LaunchOptions.Where(x => x.Name != "Cross Attention Method") |
| 98 | + ); |
| 99 | + return options; |
| 100 | + } |
| 101 | + } |
| 102 | + |
45 | 103 | public override IEnumerable<TorchIndex> AvailableTorchIndices => [TorchIndex.Zluda]; |
46 | 104 |
|
47 | 105 | public override TorchIndex GetRecommendedTorchVersion() => TorchIndex.Zluda; |
|
0 commit comments