Errors:
LightningDeprecationWarning: LightningDataModule.on_save_checkpoint was deprecated in v1.6 and will be removed in v1.8. Use state_dict instead.
LightningDeprecationWarning: LightningDataModule.on_load_checkpoint was deprecated in v1.6 and will be removed in v1.8. Use load_state_dict instead.
To Reproduce
Steps to reproduce the behavior:
Run any lightning-transformers DataModule in the trainer.
Code sample
These two methods in particular cause the errors in lightning_transformers\core\data.py.
🐛 Bug
Errors: LightningDeprecationWarning:
LightningDataModule.on_save_checkpoint
was deprecated in v1.6 and will be removed in v1.8. Usestate_dict
instead. LightningDeprecationWarning:LightningDataModule.on_load_checkpoint
was deprecated in v1.6 and will be removed in v1.8. Useload_state_dict
instead.To Reproduce
Steps to reproduce the behavior:
Run any lightning-transformers DataModule in the trainer.
Code sample
These two methods in particular cause the errors in
lightning_transformers\core\data.py
.Expected behavior