Working with Watson Machine Learning Accelerator notebooks in IBM® Cloud Pak for Data

Use IBM Watson® Machine Learning Accelerator notebooks to run elastic distributed training workloads in Cloud Pak for Data.

  1. Before using Watson Machine Learning Accelerator notebooks, complete the following tasks:
    1. Considerations for upgrade
    2. Install the Watson Machine Learning Accelerator notebook runtime configuration
    3. Create the Watson Machine Learning Accelerator environment template
  2. Submitting workloads using Watson Machine Learning Accelerator notebooks, see Using elastic distributed training API in notebooks.

Considerations for upgrade

Before you upgrade Watson Machine Learning Accelerator, you can backup existing notebooks to your local system. After upgrading, you are able to restore these notebooks.

When upgrading all previously installed Watson Machine Learning Accelerator notebooks are removed.

To export your notebooks, do the following:
  1. Login to the Watson Machine Learning Accelerator console.
  2. Go to Workload > My Notebook Server and start the notebook server.
  3. In the JupyterLab page, navigate to the notebook file you want to migrate using the left menu.
  4. Right-click on the notebook file.
  5. Click Download to save the notebook file to your local system.
After upgrade, the exported notebooks can be imported into Watson Studio:
  1. Navigate to the user project page in Watson Studio.
  2. Click New Asset.
  3. Select Jupyter Notebook Editor.
  4. Click the From File tab, select the Watson Machine Learning Accelerator notebook runtime and upload the notebook file you just save.

Install the Watson Machine Learning Accelerator notebook runtime configuration

To be able to use the Watson Machine Learning Accelerator notebooks from Watson Studio, the administrator must install the Watson Machine Learning Accelerator notebook runtime configuration.

Before you begin

In order to install the Watson Machine Learning Accelerator notebook runtime configuration, you need to download the required scripts from IBM Git, these scripts configure the Watson Machine Learning Accelerator notebook runtime and the JupyterLab runtime configuration.

You must be a Cloud Pak for Data administrator to run the scripts.

Steps

Install Watson Machine Learning Accelerator notebook runtime configuration:
  1. Download install_wmla_notebook_runtime.sh
  2. Install jq.
    yum install jq
  3. Run the install_wmla_notebook_runtime.sh script:
    bash install_wmla_notebook_runtime.sh
    bash install_wmla_notebook_runtime.sh -u <user> -c <cpd_host>
    bash install_wmla_notebook_runtime.sh -u <user> -x <password> -c <cpd_host>
    bash install_wmla_notebook_runtime.sh -h
Install Watson Machine Learning Accelerator notebook runtime configuration:
  1. Download install_wmla_jupyterlab_runtime.sh
  2. Install jq.
    yum install jq
  3. Run the install_wmla_notebook_runtime.sh script:
    bash install_wmla_jupyterlab_runtime.sh
    bash install_wmla_jupyterlab_runtime.sh -u <user> -c <cpd_host>
    bash install_wmla_jupyterlab_runtime.sh -u <user> -x <password> -c <cpd_host>
    bash install_wmla_jupyterlab_runtime.sh -h

Create the Watson Machine Learning Accelerator environment template

To create an environment template that uses Watson Machine Learning Accelerator runtime, complete the following steps:
  1. From the Manage tab of your project, select the Environments page, and click New template under Templates.
  2. Enter a name and a description, for example: wmla.
  3. Select the environment type as Default.
  4. Choose the hardware configuration size and select Runtime 23.1 on Python 3.10 (jupyter-wmla-py) in the Software version dropdown. This template has a hardware configuration of 1 CPU and 2 GP RAM.
  5. Click the Create button.

After you create the Watson Machine Learning Accelerator environment template, you can select to run your notebook in that environment at the time you create the notebook.

In a project, you can run more than one notebook using the same Watson Machine Learning Accelerator environment template. This means that if you open a second notebook with the same environment template in the same project, a second kernel is started in the same runtime. The runtime resources are shared by the kernels that you start in the runtime. The runtime is started per single user and not per notebook.

Open a notebook

You can find and open notebooks from the Assets page of the project.

You can change the environment of the notebook to use the Watson Machine Learning Accelerator environment template.

To open the notebook, click on the notebook for it to open in edit mode.