Skip to content

Commit

Permalink
add logging when finished
Browse files Browse the repository at this point in the history
Signed-off-by: Gerald Shen <[email protected]>
  • Loading branch information
gshennvm committed Dec 8, 2023
1 parent 39576f6 commit 07e3990
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nemo_aligner/algorithms/supervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import torch
from omegaconf.dictconfig import DictConfig
from tqdm import tqdm
from nemo.utils import logging


from nemo_aligner.utils.distributed import SyncTimer
from nemo_aligner.utils.train_utils import clip_gradients
Expand Down Expand Up @@ -198,6 +200,7 @@ def fit(self):
self.save(metrics, is_train_end=is_train_end)

if run_time_exceeded:
logging.info(f"Time limit given by run_timer={self.run_timer} reached. Stopping run")
return

metrics.clear()
Expand Down

0 comments on commit 07e3990

Please sign in to comment.