Skip to content

Commit 8430268

Browse files
LucasLLCfacebook-github-bot
authored andcommitted
Sets overwrite to true in dcp (#836)
Summary: Pull Request resolved: #836 Sets overwrite behavior to true in dcp Reviewed By: JKSenthil Differential Revision: D57349181 fbshipit-source-id: face5b5038f87b803d8c8ead04a812c8ff1c4d4b
1 parent 38cf06c commit 8430268

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchtnt/framework/callbacks/dcp_saver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ def default_writer_options(self) -> Dict[str, Any]:
353353
dcp_options = {
354354
"thread_count": self._knob_options.max_per_rank_io_concurrency or 16,
355355
"sync_files": False,
356+
"overwrite": True,
356357
}
357358
if dcp_options["thread_count"] > 1:
358359
dcp_options["single_file_per_rank"] = False

0 commit comments

Comments
 (0)