Go back

How to Get AI/ML Development, Training & Inference Using Python & Jupyter Kit on GCP (Google Cloud Platform)

This section describes how to launch and connect to AI/ML development, training & inference using Python & Jupyter Kit in a Google Compute environment using the available Cloud Launcher offering.

Note: Now the AI/ML development, training & inference using Python & Jupyter kit is available with GPU Acceleration. To provision this VM with the GPU instance, please select the GPU tab available on configuration page (Please see below configuration screenshot in step2). It will show 1 Nvidia T4 GPU selected. Now choose the instance type. Default instance is n1-standard2(2vCPU, 7.5GB memory).

Note: GPU availability is limited to certail zones.

  1. Open AI/ML development, training & inference using Python & Jupyter Kit marketplace listing

  2. Click Launch.

/img/gcp/aiml-launch.png It will take you to the agreement page. On this page, you can change the project from the project selector on top navigator bar as shown in the below screenshot.

Accept the Terms and agreements by ticking the checkbox and clicking on the AGREE button. /img/common/gcp_agreement_page.png

It will show you the successfully agreed popup page. Click on Deploy. /img/common/gcp_agreement_accept_page.png

Select a zone where you want to launch the VM(such as us-east1-)

Optionally change the number of cores and amount of memory. (This defaults to 2 vCPUs and 7.5 GB ram.)

Optionally change the boot disk type and size. (This defaults to “Standard Persistent Disk” and 35 GB respectively)

Optionally change the network name and subnetwork names. Be sure that whichever network you specify has ports 22 (for ssh), 3389 (for RDP) and 80 (for HTTP) exposed.

Click Deploy when you are done. Python AI & Machine learning Suit will begin deploying.

/img/gcp/python-machine-learning-marketplace.png

  1. A summary page displays when the compute engine is successfully deployed. Click on the Instance link to go to the instance page .

  2. On the instance page, click on the “SSH” button, select “Open in browser window”.

/img/gcp/gcp_pythonmachinelearning_ssh_option.png

  1. This will open SSH window in a browser.
  2. Run below command to set the password for “ubuntu” user
sudo passwd ubuntu

/img/gcp/gcp_pythonmachinelearning_passwd.png

  1. Now the password for ubuntu user is set, you can connect to the VM’s desktop environment from any local windows machine using RDP protocol or linux machine using Remmina.

  2. To connect using RDP via Windows Machine, first note the external IP of the VM from VM details page as highlighted below /img/gcp/gcp_pythonmachinelearning_vm_details.png

  3. Then From you local windows machine, goto “start” menu, in the search box type and select “Remote desktop connection”

  4. In the “Remote Desktop connection” wizard, copy the external ip and click connect /img/gcp/gcprdp.png

  5. This will connect you to the VM’s desktop environment. Provide “ubuntu” as the userid and the password set in step 6 to authenticate. Click OK /img/gcp/xrdp.png

  6. Now you are connected to the out of box MUJEFA environment via Windows Machine.. /img/gcp/jupyter-python-notebook/rdp-desktop.png

  7. To connect using RDP via Linux machine, first note the external IP of the VM from VM details page,then from your local Linux machine, goto menu, in the search box type and select “Remmina”.

    Note: If you don’t have Remmina installed on your Linux machine, first Install Remmina as per your linux distribution.

/img/gcp/common/remmina-search.png

  1. In the “Remmina Remote Desktop Client” wizard, select the RDP option from dropdown and paste the external ip and click enter.
    /img/gcp/common/remmina-external-ip.png

  2. This will connect you to the VM’s desktop environment. Provide “ubuntu” as the userid and the password set in step 6 to authenticate. Click OK
    /img/gcp/common/remmina-rdp-login.png

  3. Now you are connected to the out of box MUJEFA environment via Linux machine. /img/gcp/jupyter-python-notebook/rdp-desktop.png

  4. You can use the remote desktop you connected in above step for using the VM, however, more convenient and better method is to use the Jupyter/Ipython notebook which comes with the VM .

    The Notebook is available on the same public IP you used for remote desktop and accessible via any browser. Just open the browser and type the public IP address and you will get below screen for login .

    The Jupyter Notebook is configured with the ubuntu as an admin user. Login with ubuntu as username and use a strong password & note it down somewhere, since this will be the password for the admin user account from now on.

    Note: Make sure you use “http” and not “https” in the url

/img/gcp/gcp_pythonmachinelearning_notebook.png

/img/gcp/gcp_pythonmachinelearning_jupyter_homepage.png

Go back