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

UnboundLocalError of "new_batches" in iterators.py #10

Open
ZexueHe opened this issue Jun 29, 2023 · 2 comments
Open

UnboundLocalError of "new_batches" in iterators.py #10

ZexueHe opened this issue Jun 29, 2023 · 2 comments

Comments

@ZexueHe
Copy link

ZexueHe commented Jun 29, 2023

I was trying to reproduce the results in your paper by running language modeling with newgpt class, where the codes failed to execute due to the error about new_batches in fairseq/fairseq/data/iterators.py. Is this function correct?

UnboundLocalError: local variable 'new_batches' referenced before assignment

And can you provide a demo/script on how to run the codes in order to reproduce your results? Thank you in advance! :)

@ZexueHe
Copy link
Author

ZexueHe commented Jun 29, 2023

Sorry I notice the newgpt is not the right class here, instead I should use the transformer_lm_sidenet_*.

But still, a demo/script on how to use your codes would be really appreciated!

@Victorwz
Copy link
Owner

Thank you so much for your interest in our work. I clean up all unnecessary scripts and files. Also training and evaluation scripts are released just now as demos. I reproduced the whole repo in a new conda environment to ensure that it can run without bugs.

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