-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Colab session crashed after using all available RAM #54
Comments
Crash happened when running this cell:
|
Hi Tyler Do you run out of CPU RAM or GPU/TPU RAM? Also, how much RAM do you have? The provided Colab works fine with CIFAR datasets and the default settings (default Colab currently has 12G of RAM). |
I cannot run the code on colab and I have the same problem when I try to use colab which crashed the blocks. |
I just checked, the Colab runs fine (at least up to the "Fine-tune" section that is below the "Random performance without fine-tuning." comment that you point out above). |
I find an error at the last two steps of Fine Tune: The world's simplest training loop.Completes in ~20 min on the TPU runtime.for step, batch, lr_repl in zip( opt_repl, loss_repl, update_rngs = update_fn_repl( Thank you very much! I'm looking forward to your reply. |
Hi Tyler,
Did you run If you double click this cell, you will find there are multiple codes there:
I think these codes will register your TPU. |
To be specific, import flax.optim as optim |
Thanks for your reply. That does work! Thank you very much! |
I just re-ran the code in the provided Colab on TPU and it worked without problem. @Tylersuard can you try again? |
@andsteing I just tried again, same issue: The world's simplest training loop.Completes in ~20 min on the TPU runtime.for step, batch, lr_repl in zip( opt_repl, loss_repl, update_rngs = update_fn_repl( Response: Log:
|
Just to confirm:
Because I tried multiple times and was not able to reproduce your error. |
I used a slightly different link, the one shown in this repo's readme: |
@andsteing Ok, I got it to work. For some reason, it does not work with the "high-ram" instance option, but it does work with the regular option. Thank you for your help. |
I am using the premium High-Ram instance. I appreciate that you made a Colab notebook. How can I fix this issue to run it?
The text was updated successfully, but these errors were encountered: