mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-19 14:50:38 -07:00
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:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user