Can't finish training the model

Whenever I try to train my model, my session crashes because it uses up all the available RAM too quickly. Is there any way to fix this?

If you feel that there’s very little memory on your local computer, how about using google colab?

I was using google colab, but unfortunately it doesn’t work.

Please click my name and message your notebook as an attachment.

Please use a small batch size like 32. If memory is a problem, you can use smaller batch sizes like 8 or 16.

It worked, thank you so much!