Skip to content

Commit

Permalink
Fix VPP bug in MegatronStep (NVIDIA#10847)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcromeyn authored and artbataev committed Oct 22, 2024
1 parent 2ee9c88 commit fafcd2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/lightning/megatron_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ def to_data_iterator_list(
List[Iterator[DataT]]: A list of iterators created from the input data.
"""
if isinstance(data, Iterator):
return _make_data_iterator_list(self.pipeline, data)
return _make_data_iterator_list(self.model, data)
elif isinstance(data, list) and all(isinstance(item, Iterator) for item in data):
# If data is already a list of iterators, return it as is
return cast(List[Iterator[DataT]], data)
Expand Down

0 comments on commit fafcd2c

Please sign in to comment.