Skip to content

Commit

Permalink
Set parallelism correctly when using VPP (#10204)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcromeyn authored Aug 20, 2024
1 parent 54458fa commit d4f02b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nemo/lightning/_strategy_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def set_model_parallel_attributes(model, parallelism):
if not hasattr(config, attr_name):
continue
setattr(config, attr_name, getattr(parallelism, attr_name))
if hasattr(config, "__io__"):
setattr(config.__io__, attr_name, getattr(parallelism, attr_name))

return config

Expand Down

0 comments on commit d4f02b5

Please sign in to comment.