Browse Source

Add CPU default launch flags when no nvidia gpu

pull/5/head
Ionite 1 year ago
parent
commit
bde253af9a
No known key found for this signature in database
  1. 18
      StabilityMatrix/Models/Packages/A3WebUI.cs

18
StabilityMatrix/Models/Packages/A3WebUI.cs

@ -86,6 +86,24 @@ public class A3WebUI : BaseGitPackage
DefaultValue = true, DefaultValue = true,
Options = new() {"--api"} Options = new() {"--api"}
}, },
new()
{
Name = "Use CPU only",
InitialValue = !HardwareHelper.HasNvidiaGpu(),
Options = new() {"--cpu"}
},
new()
{
Name = "Skip Torch CUDA Check",
InitialValue = !HardwareHelper.HasNvidiaGpu(),
Options = new() {"--skip-torch-cuda-test"}
},
new()
{
Name = "Skip Python Version Check",
InitialValue = true,
Options = new() {"--skip-python-version-check"}
},
LaunchOptionDefinition.Extras LaunchOptionDefinition.Extras
}; };

Loading…
Cancel
Save