The problem can be avoided by making sure to join all theads before main exits, but this is not generally required by python so should be considered a bug. Context to reproduce: ...
File "C:\Users\tianj\AppData\Local\Programs\Python\Python311\Lib\site-packages\TTS\tts\layers\xtts\trainer\gpt_trainer.py", line 84, in init self.load_checkpoint(self ...