Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions megatron/core/datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@


class Split(Enum):
"""Enum train, valid, and test split."""

train = 0
valid = 1
test = 2
Expand All @@ -26,7 +28,11 @@ def compile_helpers():
if subprocess.run(command).returncode != 0:
import sys

import torch.distributed as dist

log_single_rank(logger, logging.ERROR, "Failed to compile the C++ dataset helper functions")

dist.destroy_process_group()
sys.exit(1)


Expand Down
Loading