Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you run Google Colab on your local computer?

My PC is rocking a 2080TI so I don't really need the GPU computation of Google Colab, but I do find it a nice development environment (in comparison to jupyter notebooks) and I like the fact that I can access my files from anywhere, so, is it possible to use Google Colab but let my local pc do the computation?

like image 309
Tomergt45 Avatar asked Jul 25 '20 10:07

Tomergt45


People also ask

How to connect Google CoLab to a local runtime?

Kindly copy the entire URL that starts with http://localhost ahead for the next step. In your Google Colab notebook, click on the toggle button at the top right corner showing the RAM and Disk status bar and select the option "Connect a local runtime" as seen in the screenshots below.

Is Google Colab still free to use?

Yes, Google Colab allows you to heist their low-level GPU for you to run on your local machine and yes, it is still FREE! Also, you can use your local environment in the notebook, which is a definite plus.

Why do I need to upload files to Google Colab?

When you are using Google Colab, you aren't running locally but on the cloud servers of Google which is linked with Google drive. So you have to upload files there to run environment on servers such as GPU and TPU with allotted memory. You as local machine just a medium to connect to those servers with internet.

Can I use local GPU with Google collab?

Yes, there is an option to use Local GPU if you want. There is an option called Connect where you can select "Connect to local runtime" @segfault404 can you please elaborate on how to do that? Open Google Collab, click at the dropdown near "Connect" option and select "Connect to local runtime" .


1 Answers

Steps:

  • Go to Google colab and click on connect to local runtime, a pop-up comes. enter image description here

  • Go to your terminal and execute:

jupyter notebook   --NotebookApp.allow_origin='https://colab.research.google.com'   --port=8888   --NotebookApp.port_retries=0

If this shows error:

ERROR: the notebook server could not be started because port 8888 is not available.

Then run the following to basically kill any process using it or use another port:

  1. lsof -wni tcp:8888
  2. kill -9 <JOB_ID>

If successful, then the command gives a link:

For example:

http://localhost:8888/?token=bb80b05aef71999353fe4715e0f06be40d22911648dbdcd6

Copy it in the pop-up in the colab and you are set to go.

like image 80
Kartikey Singh Avatar answered Sep 26 '22 02:09

Kartikey Singh