Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Trainstats Clobber Bug #4386

Merged
merged 1 commit into from
Mar 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions parlai/scripts/train_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@ def save_model(self, suffix=None):
pass

def _save_train_stats(self, suffix=None):
if not is_primary_worker():
# never do IO as a non-primary worker
return
fn = self.opt.get('model_file', None)
if not fn:
return
Expand Down