python3 lightning_main_pretraining.py
- Change the pretraining from a checkpoint, you can change the Checkpoint Config with
retrain_saved_path: [str] = "" # Path to the checkpoint to be loaded
retrain_from_checkpoint: str = "load_train"
python3 lightning_main_lincls.py
- Please ensure to change the
pretrained
in the Linear Classifier Config as the path to the trained model.
- We use Hydra to manage the configurations rather than argparse.
- To make changes in the hyperparameters you can change it directly in the Pretrain Config, Linear Classifier Config, Wandb Config and Trainer Config files.
- We use Pytorch Lightning to manage the training process.
- This implementation with Pytorch Lightning should support ddp as well as single GPU implementation.