-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
SIGSEGV when training on TPU #4464
Comments
Hi! thanks for your contribution!, great first issue! |
cc @lezwon |
This seems to be an XLA issue and is tracked here pytorch/xla#1775 @FabianBell Mind adding the following at the beginning of your notebook and trying? import os
os.environ['XLA_USE_32BIT_LONG'] = '1'
os.environ['TRIM_GRAPH_SIZE'] = '1000000' |
@lezwon thank you for your help. I changed the notebook but I still get the same error. |
I get a different error: Notebook
Will look into this. |
@FabianBell I'm not able to figure out the root cause of the error mentioned above. I think it might be similar to this one: huggingface/transformers#2952 |
❓ Questions and Help
Before asking:
What is your question?
I tried to apply the reformer model on a sentiment analysis task and train it on a tpu. I get a
What did I do wrong?
Code
You can find my code in a colab notebook here.
What have you tried?
I tried to stick to notebook 1 for the general setup and notebook 2 for the tpu setup. I saw #1956 and #2124 however it does not work with the latest version (1.0.4).
What's your environment?
The text was updated successfully, but these errors were encountered: