Kernel breaking in jupyter and RAM breaking in Colab

I cant seem to finish my course project cause the RAM in colab keeps restarting and the kernel in jupyter keeps breaking

I have a feeling your model is too complex/big. The cloud-available environments have usually limited resources. You might try using your own local installation of jupyter notebook if you have the devices capable of running ML experiments.

my model isn’t large. I also tried the local installation of jupyter notebook…buh the problem there is it isnt importing some libraries which i need, and i have already installed them but still its nt working

Could you explain what is going on or could you add colab notebook link lemme have a look.