Skip to content

Commit

Permalink
remove __ost_init__
Browse files Browse the repository at this point in the history
  • Loading branch information
sichu2023 committed Oct 25, 2024
1 parent bb1c874 commit fadca1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sub-packages/bionemo-llm/src/bionemo/llm/data/datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
class MegatronDataModule(pl.LightningDataModule):
"""A mixin that adds a `state_dict` and `load_state_dict` method for datamodule training resumption in NeMo."""

def __post_init__(self):
def _init__(self, *args, **kwargs):
"""Set init_global_step to 0 for datamodule resumption."""
super().__init__(self, *args, **kwargs)
self.init_global_step = 0

def update_init_global_step(self):
Expand Down

0 comments on commit fadca1e

Please sign in to comment.