Skip to content

Commit

Permalink
Apply isort and black reformatting
Browse files Browse the repository at this point in the history
Signed-off-by: suiyoubi <suiyoubi@users.noreply.github.com>
  • Loading branch information
suiyoubi committed Nov 7, 2024
1 parent 1768003 commit 819899d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nemo/lightning/pytorch/strategies/megatron_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,7 @@ def current_epoch_step(self) -> int:

@property
def distributed_sampler_kwargs(self) -> Dict[str, Any]:
""" Get distributed sampler kwargs.
"""
"""Get distributed sampler kwargs."""
from nemo.utils import AppState

app_state = AppState()
Expand All @@ -898,8 +897,7 @@ def restore_checkpoint_after_setup(self) -> bool:

@property
def parallelism(self) -> ParallelismConfig:
""" Get ParallelismConfig.
"""
"""Get ParallelismConfig."""
return ParallelismConfig(
tensor_model_parallel_size=self.tensor_model_parallel_size,
pipeline_model_parallel_size=self.pipeline_model_parallel_size,
Expand Down

0 comments on commit 819899d

Please sign in to comment.