Download modules/utils/torch_opt.py from zelk12/ChatTTS-Forge_English_interface: direct link, hf CLI and curl.
- Browser
- Download file 194 Bytes
-
https://huggingface.co/spaces/zelk12/ChatTTS-Forge_English_interface/resolve/main/modules/utils/torch_opt.py
- Command line
-
hf download hf://spaces/zelk12/ChatTTS-Forge_English_interface/modules/utils/torch_opt.py
-
curl -L -o torch_opt.py https://huggingface.co/spaces/zelk12/ChatTTS-Forge_English_interface/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") | |