Spaces:
Running
Running
Download modules/utils/torch_opt.py from ProbablyBlue/ChatTTS-Forge: direct link, hf CLI and curl.
- Browser
- Download file 194 Bytes
-
https://huggingface.co/spaces/ProbablyBlue/ChatTTS-Forge/resolve/main/modules/utils/torch_opt.py
- Command line
-
hf download hf://spaces/ProbablyBlue/ChatTTS-Forge/modules/utils/torch_opt.py
-
curl -L -o torch_opt.py https://huggingface.co/spaces/ProbablyBlue/ChatTTS-Forge/resolve/main/modules/utils/torch_opt.py
194 Bytes
| import torch | |
| def configure_torch_optimizations(): | |
| torch._dynamo.config.cache_size_limit = 64 | |
| torch._dynamo.config.suppress_errors = True | |
| torch.set_float32_matmul_precision("high") | |