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

Reformer model with long sequence throws an error #351

Closed
satya77 opened this issue Mar 9, 2020 · 2 comments
Closed

Reformer model with long sequence throws an error #351

satya77 opened this issue Mar 9, 2020 · 2 comments

Comments

@satya77
Copy link

satya77 commented Mar 9, 2020

Im trying to train the basic Reformer and not the RefomerLM on long sequence of text based on the language generation example. Simply by replacing the RefomerLM class with the reformer and remove the mask, but feeding in the entire crime and punishment book, throws the following error:

TypeError: requesting more random bits than a single call provides.

everything works fine if I cut down the input to smaller sequences. The example can be seen in the following notebook:
https://colab.research.google.com/drive/1C9KOHOfuVhoOqzRKx_rRaeOV3jPvuZ_L

@lukaszkaiser
Copy link
Contributor

This looks like a potential JAX problem. Could you paste here the whole error log?

@lukaszkaiser
Copy link
Contributor

Closing as it doesn't look active, please reopen if needed of course!

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