Refactor build scripts and update release workflow

- Commented out the PyTorch CPU configuration in the release workflow for Ubuntu 22.04.
- Updated TTS provider documentation to clarify options for Windows and Linux users.
- Enhanced build scripts for both CPU and CUDA providers by excluding large unused modules to reduce binary size.
This commit is contained in:
Jamie Pine
2026-01-31 03:45:41 -08:00
parent ec0fb60197
commit ce4269ffa5
3 changed files with 42 additions and 6 deletions
+6 -6
View File
@@ -28,9 +28,9 @@ jobs:
provider: "pytorch-cuda"
python-version: "3.12"
# PyTorch CPU provider (Linux)
- platform: "ubuntu-22.04"
provider: "pytorch-cpu"
python-version: "3.12"
# - platform: "ubuntu-22.04"
# provider: "pytorch-cpu"
# python-version: "3.12"
# PyTorch CUDA provider (Linux) - large binary, uploaded to R2
- platform: "ubuntu-22.04"
provider: "pytorch-cuda"
@@ -268,10 +268,10 @@ jobs:
- **Windows**: Download the `.msi` installer - requires downloading a TTS provider on first use
- **Linux**: Download the `.AppImage` or `.deb` package - requires downloading a TTS provider on first use
### TTS Providers (Windows/Linux)
### TTS Providers
Windows and Linux users will be prompted to download a TTS provider on first launch:
- **PyTorch CPU** (~300MB) - Works on any system
- **PyTorch CUDA** (~2.4GB) - 4-5x faster on NVIDIA GPUs
- **Windows**: PyTorch CPU (~300MB) or PyTorch CUDA (~2.4GB for NVIDIA GPUs)
- **Linux**: PyTorch CUDA (~2.4GB) - requires NVIDIA GPU
The app includes automatic updates - future updates will be installed automatically.
releaseDraft: true
+18
View File
@@ -56,6 +56,24 @@ def build_provider():
'--hidden-import', 'librosa',
])
# Exclude large unused modules to reduce binary size
args.extend([
'--exclude-module', 'torch.utils.tensorboard',
'--exclude-module', 'tensorboard',
'--exclude-module', 'triton',
'--exclude-module', 'torch.distributed',
'--exclude-module', 'torch._dynamo',
'--exclude-module', 'torch._inductor',
'--exclude-module', 'torch.testing',
'--exclude-module', 'torch.utils.benchmark',
'--exclude-module', 'IPython',
'--exclude-module', 'matplotlib',
'--exclude-module', 'PIL',
'--exclude-module', 'cv2',
'--exclude-module', 'torchvision',
'--exclude-module', 'torchaudio',
])
args.extend([
'--noconfirm',
'--clean',
+18
View File
@@ -58,6 +58,24 @@ def build_provider():
'--hidden-import', 'librosa',
])
# Exclude large unused modules to reduce binary size
args.extend([
'--exclude-module', 'torch.utils.tensorboard',
'--exclude-module', 'tensorboard',
'--exclude-module', 'triton',
'--exclude-module', 'torch.distributed',
'--exclude-module', 'torch._dynamo',
'--exclude-module', 'torch._inductor',
'--exclude-module', 'torch.testing',
'--exclude-module', 'torch.utils.benchmark',
'--exclude-module', 'IPython',
'--exclude-module', 'matplotlib',
'--exclude-module', 'PIL',
'--exclude-module', 'cv2',
'--exclude-module', 'torchvision',
'--exclude-module', 'torchaudio',
])
args.extend([
'--noconfirm',
'--clean',