Skip to content

A TTS that fits in your CPU (and pocket)

Python

Shorten the cuDNN SDPA comment (#265)

manu-lm5e9c61cff167
diff --git a/training/train.py b/training/train.py
index b0dc4d0..8357201 100644
--- a/training/train.py
+++ b/training/train.py
@@ -77,9 +77,7 @@ def setup(config_path: str) -> Run:
"""Resolve the config, build the models, restore any checkpoint."""
setup_logging()
torch.backends.cuda.matmul.allow_tf32 = True # fp32 islands (Mimi encode)
- # cuDNN's bf16 SDPA backward emits NaN at larger batch shapes (verified with
- # detect_anomaly: ScaledDotProductCudnnAttentionBackward0; batch 128 dies
- # within ~65k steps, flash/mem-efficient run clean and just as fast).
+ # cuDNN's bf16 SDPA backward emits NaN at larger batch shapes and is not faster.
torch.backends.cuda.enable_cudnn_sdp(False)
args = load_args(config_path)
device = init_distributed()