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

AttributeError: type object 'SeqIndexedDataset' has no attribute 'Index' #23

Open
fuchengjie opened this issue Nov 14, 2022 · 4 comments

Comments

@fuchengjie
Copy link
Contributor

fuchengjie commented Nov 14, 2022

hi,
I want to run GPT-2
After i execute: python -m ncc_dataset.raw_py150.completion.preprocess,got one error as the picture:

AttributeError: type object 'SeqIndexedDataset' has no attribute 'Index'

image

Looking for your reply.
Thanks.

@fuchengjie
Copy link
Contributor Author

hello, the seq_indexed_dataset.py's SeqIndexedDataset class don't have Index object.
Could you have any solution?
thanks.

@fuchengjie
Copy link
Contributor Author

If you can't resolve this issue, could you tell me function of SeqIndexedDataset.Index?

@whatsmyname
Copy link
Collaborator

You can try to insert the code here to the SeqIndexedDataset class.

If you have any other questions. Please ping them (@wanyao1992).

@fuchengjie
Copy link
Contributor Author

thank you, i have tried this solution, but something wrong...
@wanyao1992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants