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
+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',