소스 검색

Let model fail on non-inf loss

Lengyue 2 년 전
부모
커밋
7031d18b3d
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      speech_lm/train.py

+ 0 - 1
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