Google colab is a free jupyter notebook that is hosted on Google cloud servers. We can use CPU, GPU and TPU for free. It helps you to write and execute your code. You can directly access this through your browser.
If you want to use Google Cloud/AWS, it requires hell lot of setup. You have to spin a cluster, create a notebook and then use it. But, Google colab will be readily available for you to use it. You can also install libraries from the notebook itself.
These notebooks are very useful for training large models and processing huge datasets. Students and developers can make use of this because it’s very difficult for them to afford GPUs and TPUs.
I was trying to run a memory heavy job. The notebook crashed. Then, I came to know how I can increase the RAM. So, I thought of sharing it in my blog.
There are some constraints with the notebook. You can run these notebooks for not more than 12 hours and you can use only 12 GB RAM.
There is no direct method or button to change the RAM configuration.
NOTE: Please follow this only if you know that your task would require more than 12 GB RAM. Let's not waste resources unneccesarily. If you do this unneccesarily, Google colab might block your account. (edited)
Follow the below steps to increase the RAM to 25GB:
- Open the Google colab Jupyter notebook.
- Run your task. If it takes less than 12 GB RAM, then you are good. Otherwise, the notebook will crash and you will get a popup notification at the bottom left asking you to increase your RAM.
- Click on that and “Switch to a high-RAM runtime”.
On the top right, you can check the RAM configuration. It will be increased to 25 GB.
Use this to use colab for memory heavy jobs that require more than 12 GB RAM.
Thank you so much for reading my blog and supporting me. Stay tuned for my next article. If you want to receive email updates, don’t forget to subscribe to my blog. If you have any queries, please do comment in the comment section below. I will be more than happy to help you. Keep learning and sharing!!
Follow me here:
GitHub: https://github.com/Abhishekmamidi123
LinkedIn: https://www.linkedin.com/in/abhishekmamidi/
Kaggle: https://www.kaggle.com/abhishekmamidi
If you are looking for any specific blog, please do comment in the comment section below.
GitHub: https://github.com/Abhishekmamidi123
LinkedIn: https://www.linkedin.com/in/abhishekmamidi/
Kaggle: https://www.kaggle.com/abhishekmamidi
If you are looking for any specific blog, please do comment in the comment section below.
Hi, This technique doesn't seems to work's now, now if we try to crash a google colab rather than prompting a pop up it automatically restarts the session with same RAM
ReplyDeleteThis Technique is not working, Can you suggest any alternative for this?
ReplyDeletehttps://colab.research.google.com/drive/1GqZu6zmCy2vMNMZqO78DDuHvwv_9vJcp?usp=sharing
DeleteGo to this URL. This will open up a colab notebook. then go to File-> Save a copy to drive.
This will open a copy of this notebook but on your drive rename and connct to runtime you will be allocated 25 GB RAM
That link is not work for me. Not sure if it works for others?
Deleteits work for me.. thanks bro
DeleteUnknown thank you! That works!
Deleteit is not working now. it restarts with same ram
ReplyDeletewe dont get any button to increase ram
ReplyDeleteme to , we dont get any button to increase ram
ReplyDelete👍👌
ReplyDelete👍👌
ReplyDeleteGlad to visit this blog, really helpful. Gathered lots of information and waiting to see more updates.
ReplyDeleteRPA course in Chennai
RPA Training Institute in Chennai
RPA Online course
RPA Training in Coimbatore
None of the links in this web page worked for me.
ReplyDeleteThat link is not working is there any other way. Can anyone please share it
ReplyDeleteif you know.
A reporting tool, or software reporting tool, is a system that takes in data from various sources and extrapolates it in tables, charts and visual presentations. Inetsoft
ReplyDeleteSimply return, restore or exchange any purchase at any location, in person or by mail inside ninety days. Extend your licensing potentialities and personalize any bodily or digital product and merchandise with our icons. You can 파라오바카라 upgrade your account to get a limiteless collection.
ReplyDeleteAsking for references from other clients can provide a variety of information. You want to know you're dealing with a professional who takes the client's needs seriously. Previous clients of the blogger outreach services you are considering are prime candidates to consult because they have first-hand experience dealing with the service provider.
ReplyDeleteI really thank you for the valuable info on this great subject and look forward to more great posts. Software Companies Chennai
ReplyDelete