Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'helpers' from 'megatron.data' #1045

Closed
shaunstoltz opened this issue Sep 25, 2023 · 0 comments
Closed

ImportError: cannot import name 'helpers' from 'megatron.data' #1045

shaunstoltz opened this issue Sep 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@shaunstoltz
Copy link

Traceback (most recent call last):
File "train.py", line 27, in
pretrain(neox_args=neox_args)
File "/home/shaunst/repo/gpt-neox/megatron/training.py", line 194, in pretrain
) = build_train_valid_test_data_iterators(neox_args=neox_args)
File "/home/shaunst/repo/gpt-neox/megatron/data/data_utils.py", line 400, in build_train_valid_test_data_iterators
train_ds, valid_ds, test_ds = build_train_valid_test_datasets(
File "/home/shaunst/repo/gpt-neox/megatron/data/data_utils.py", line 139, in build_train_valid_test_datasets
train_dataset = build_dataset(0, "train")
File "/home/shaunst/repo/gpt-neox/megatron/data/data_utils.py", line 127, in build_dataset
dataset = GPT2Dataset(
File "/home/shaunst/repo/gpt-neox/megatron/data/gpt2_dataset.py", line 52, in init
self.doc_idx, self.sample_idx, self.shuffle_idx = _build_index_mappings(
File "/home/shaunst/repo/gpt-neox/megatron/data/gpt2_dataset.py", line 166, in _build_index_mappings
from megatron.data import helpers
ImportError: cannot import name 'helpers' from 'megatron.data' (/home/shaunst/repo/gpt-neox/megatron/data/init.py)

@shaunstoltz shaunstoltz added the bug Something isn't working label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant