Skip to content

Commit

Permalink
destruct singleton on megatron-strategy dtor
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Koumparoulis <[email protected]>
  • Loading branch information
akoumpa committed Oct 30, 2024
1 parent a8fd3d6 commit 40113c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nemo/lightning/pytorch/strategies/megatron_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,8 @@ def predict_step(self, dataloader_iter, *args: Any, **kwargs: Any) -> STEP_OUTPU
@override
def teardown(self) -> None:
super().teardown()
from nemo.utils.metaclasses import Singleton
Singleton._Singleton__instances = {}

@override
def model_sharded_context(self) -> ContextManager:
Expand Down

0 comments on commit 40113c7

Please sign in to comment.