-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
read training strategy from config (#66)
Summary: * Read training strategy from config file * Add `strategy: ddp` to all existing config files * Can also pass in strategy from the terminal by `python train.py config=configs/pretraining/debug.yaml training.lightning.strategy=ddp` * Priority: terminal argument > config Pull Request resolved: #66 Test Plan: logged `self.trainer.strategy` in `FLAVAPreTrainingLightningModule` test 1 * command: `python train.py config=configs/pretraining/debug.yaml` * config: `strategy: ddp` * result: `DDPStrategy` test 2 * command: `python train.py config=configs/pretraining/debug.yaml training.lightning.strategy=deepspeed` * config: `strategy: ddp` * result: `DeepSpeedStrategy` Reviewed By: ebsmothers Differential Revision: D37124420 Pulled By: katrina433 fbshipit-source-id: a02cafba7ad784963a0c27ad543256fd5daaa417
- Loading branch information
1 parent
27a0d2e
commit 3beffd9
Showing
4 changed files
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters