Skip to content

Commit

Permalink
Fix VPP bug in MegatronStep (#10847)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcromeyn authored and monica-sekoyan committed Oct 11, 2024
1 parent 5b0300d commit 830cdbb
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 830cdbb

Please sign in to comment.