Skip to content

SOTA Open Source TTS

Let model fail on non-inf loss

Lengyue7031d18b3d7a
diff --git a/speech_lm/train.py b/speech_lm/train.py
index 1be552b..1f9b1ea 100644
--- a/speech_lm/train.py
+++ b/speech_lm/train.py
@@ -138,7 +138,6 @@ def train(
optimizer,
max_norm=cfg.schedule.clip_grad_norm,
norm_type=2.0,
- error_if_nonfinite=False,
)
# We can't average gradients across multiple steps