Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/NVIDIA/NeMo into athitten/a…
Browse files Browse the repository at this point in the history
…lways_save_context
  • Loading branch information
pablo-garay committed Oct 24, 2024
2 parents c944e54 + 956406e commit 353b2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/lightning/pytorch/strategies/megatron_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def __init__(
def connect(self, model: pl.LightningModule) -> None:
super().connect(model)

assert not hasattr(model, 'is_hf_model'), "Cannot use HfAutoModelForCausalLM with MegatronParallel"
assert not 'is_hf_model' in model.__dict__, "Cannot use HfAutoModelForCausalLM with MegatronParallel"

_maybe_mcore_config = _strategy_lib.set_model_parallel_attributes(model, self.parallelism)
if _maybe_mcore_config:
Expand Down

0 comments on commit 353b2a6

Please sign in to comment.