rollback TF32

This commit is contained in:
Stardust·减
2023-09-06 23:00:33 +08:00
committed by GitHub
parent 8b61641bb1
commit 57b408e8df

View File

@@ -33,7 +33,9 @@ from mel_processing import mel_spectrogram_torch, spec_to_mel_torch
from text.symbols import symbols from text.symbols import symbols
os.environ['NCCL_P2P_DISABLE'] = 1 # Avoid training problem. os.environ['NCCL_P2P_DISABLE'] = 1 # Avoid training problem.
torch.backends.cuda.matmul.allow_tf32 = True
torch.backends.cudnn.allow_tf32 = True # If encontered training problem,please try to disable TF32.
torch.set_float32_matmul_precision('medium')
torch.backends.cudnn.benchmark = True torch.backends.cudnn.benchmark = True
torch.backends.cuda.sdp_kernel("flash") torch.backends.cuda.sdp_kernel("flash")
torch.backends.cuda.enable_flash_sdp(True) torch.backends.cuda.enable_flash_sdp(True)