Skip to content

Commit

Permalink
Pass mock to GPTDatasetConfig (NVIDIA#10435)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Koumparoulis <[email protected]>
Co-authored-by: Pablo Garay <[email protected]>
Signed-off-by: Hainan Xu <[email protected]>
  • Loading branch information
2 people authored and Hainan Xu committed Nov 5, 2024
1 parent 27a3dc5 commit f3c632e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1622,6 +1622,7 @@ def build_train_valid_test_datasets(self):
dataset_type = GPTFIMDataset
else:
dataset_config = GPTDatasetConfig(**kwargs)
dataset_config.mock = mock_dataset
dataset_type = MockGPTDataset if mock_dataset else GPTDataset

self._train_ds, self._validation_ds, self._test_ds = BlendedMegatronDatasetBuilder(
Expand Down

0 comments on commit f3c632e

Please sign in to comment.