forked from LykosAI/StabilityMatrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPipInstallConfig.cs
More file actions
22 lines (21 loc) · 1.04 KB
/
PipInstallConfig.cs
File metadata and controls
22 lines (21 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace StabilityMatrix.Core.Models.Packages;
/// <summary>
/// Configuration for the standard pip installation process.
/// </summary>
public record PipInstallConfig
{
public IEnumerable<string> RequirementsFilePaths { get; init; } = [];
public string RequirementsExcludePattern { get; init; } = "(torch|torchvision|torchaudio|xformers)";
public IEnumerable<string> PrePipInstallArgs { get; init; } = [];
public IEnumerable<string> ExtraPipArgs { get; init; } = [];
public IEnumerable<string> PostInstallPipArgs { get; init; } = [];
public string TorchVersion { get; init; } = "";
public string TorchvisionVersion { get; init; } = "";
public string TorchaudioVersion { get; init; } = "";
public string XformersVersion { get; init; } = "";
public string CudaIndex { get; init; } = "cu130";
public string RocmIndex { get; init; } = "rocm7.2";
public bool ForceReinstallTorch { get; init; } = true;
public bool UpgradePackages { get; init; } = false;
public bool SkipTorchInstall { get; init; } = false;
}