Skip to content

Commit

Permalink
Bug fix for reset_sequence_parallel_args (NVIDIA#6802) (NVIDIA#6805)
Browse files Browse the repository at this point in the history
Signed-off-by: Markel Sanz Ausin <markelsanz14@gmail.com>
Co-authored-by: Markel Sanz Ausin <markelsanz14@gmail.com>
  • Loading branch information
github-actions[bot] and markelsanz14 authored Jun 5, 2023
1 parent aa21e8a commit f9bb1b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ def _reset_sequence_parallelism_args(self):
for module in self.get_gpt_module_list():
for mod in module.modules():
if hasattr(mod, "sequence_parallel"):
mod.sequence_parallel = self.last_sequence_parallel
mod.sequence_parallel = False

def _restore_sequence_parallelism_args(self):
""" Restores the sequence parallelism parameters using the values saved by
Expand Down

0 comments on commit f9bb1b0

Please sign in to comment.