cleanup and added logic to train for load/save checkpoints (#32)

* added checkpointing logic

* small nits

* check DDP running correctly

* cleanup and added logic to train for load/save checkpoints

* lint
This commit is contained in:
evonneng authored and GitHub committed 2022-04-21 11:39:44 -07:00
1 parent af74b4e95c
commit 4d1a6b2dbd
5 files changed
+42 -94

No files matched your search

-1
View File
@@ -114,7 +114,6 @@ def _train(local_rank: int, world_size: int, config: DictConfig) -> Any:
"""
trainer = Trainer(config, local_rank, world_size)
trainer.setup_graph()
trainer.setup_optimizer()
trainer.setup_dataset()
trainer.train()
return 0