Install on Ubuntu¶
This section describes how to install the Driverless AI Docker image on Ubuntu. The installation steps vary depending on whether your system has GPUs or if it is CPU only.
Environment¶
Operating System | GPUs? | Min Mem |
---|---|---|
Ubuntu with GPUs | Yes | 64 GB |
Ubuntu with CPUs | No | 64 GB |
Install on Ubuntu with GPUs¶
Note: Driverless AI is supported on Ubuntu 16.04 or later.
Open a Terminal and ssh to the machine that will run Driverless AI. Once you are logged in, perform the following steps.
Retrieve the Driverless AI Docker image from https://www.h2o.ai/driverless-ai-download/.
Note: You can optionally run the following to retrieve the
latest
tagged version.wget https://s3-us-west-2.amazonaws.com/h2o-internal-release/docker/driverless-ai-docker-runtime-latest-release.gz
Install and run Docker on Ubuntu (if not already installed):
# Install and run Docker on Ubuntu curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt-get update sudo apt-get install docker-ce sudo systemctl start docker-ce
- Install nvidia-docker on Ubuntu (if not already installed):
# Install nvidia-docker on Ubuntu wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb dpkg -i /tmp/nvidia-docker*.deb rm /tmp/nvidia-docker*.deb
- Verify that the NVIDIA driver is up and running. If the driver is not up and running, log on to http://www.nvidia.com/Download/index.aspx?lang=en-us to get the latest NVIDIA Tesla V/P/K series driver:
nvidia-smi
- Enable persistence of the GPU. Note that this only needs to be run once. Refer to the following for more information: http://docs.nvidia.com/deploy/driver-persistence/index.html.
nvidia-persistenced --user <USER> nvidia-smi -pm 1
- Set up a directory for the version of Driverless AI on the host machine, replacing VERSION below with your Driverless AI Docker image version (for example, 1.2.2):
# Set up directory with the version name mkdir dai_rel_VERSION
- Load the Driverless AI Docker image inside the new directory.
# cd into the new directory cd dai_rel_VERSION # Load the Driverless AI docker image docker load < driverless-ai-docker-runtime-latest-release.gz
- Set up the data, log, and license directories on the host machine:
# Set up the data, log, license, and tmp directories on the host machine (within the new directory) mkdir data mkdir log mkdir license mkdir tmp
- At this point, you can copy data into the data directory on the host machine. The data will be visible inside the Docker container.
- Start the Driverless AI Docker image with nvidia-docker:
# Start the Driverless AI Docker image nvidia-docker run \ --pid=host \ --init \ --rm \ -u `id -u`:`id -g` \ -p 12345:12345 \ -p 54321:54321 \ -p 8888:8888 \ -v `pwd`/data:/data \ -v `pwd`/log:/log \ -v `pwd`/license:/license \ -v `pwd`/tmp:/tmp \ opsh2oai/h2oai-runtimeDriverless AI will begin running:
-------------------------------- Welcome to H2O.ai's Driverless AI --------------------------------- version: 1.2.2 - Put data in the volume mounted at /data - Logs are written to the volume mounted at /log/20180606-044258 - Connect to Driverless AI on port 12345 inside the container - Connect to Jupyter notebook on port 8888 inside the container
- Connect to Driverless AI with your browser:
http://Your-Driverless-AI-Host-Machine:12345
Install on Ubuntu with CPUs¶
Note: Driverless AI is supported on Ubuntu 16.04 or later.
This section describes how to install and start the Driverless AI Docker image on Ubuntu. Note that this uses Docker EE and not NVIDIA Docker. GPU support will not be available.
Watch the installation video here. Note that some of the images in this video may change between releases, but the installation steps remain the same.
Open a Terminal and ssh to the machine that will run Driverless AI. Once you are logged in, perform the following steps.
Retrieve the Driverless AI Docker image from https://www.h2o.ai/driverless-ai-download/.
Note: You can optionally run the following to retrive the
latest
tagged version.wget https://s3-us-west-2.amazonaws.com/h2o-internal-release/docker/driverless-ai-docker-runtime-latest-release.gz
Install and run Docker on Ubuntu (if not already installed):
# Install and run Docker on Ubuntu curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt-get update sudo apt-get install docker-ce sudo systemctl start docker-ce
- Set up a directory for the version of Driverless AI on the host machine, replacing VERSION below with your Driverless AI Docker image version (for example, 1.2.2):
# Set up directory with the version name mkdir dai_rel_VERSION
- Load the Driverless AI Docker image inside the new directory.
# cd into the new directory cd dai_rel_VERSION # Load the Driverless AI docker image docker load < driverless-ai-docker-runtime-latest-release.gz
- Set up the data, log, license, and tmp directories on the host machine (within the new directory):
# Set up the data, log, license, and tmp directories mkdir data mkdir log mkdir license mkdir tmp
- At this point, you can copy data into the data directory on the host machine. The data will be visible inside the Docker container.
- Start the Driverless AI Docker image:
# Start the Driverless AI Docker image docker run \ --pid=host \ --init \ --rm \ -u `id -u`:`id -g` \ -p 12345:12345 \ -p 54321:54321 \ -p 8888:8888 \ -v `pwd`/data:/data \ -v `pwd`/log:/log \ -v `pwd`/license:/license \ -v `pwd`/tmp:/tmp \ opsh2oai/h2oai-runtimeDriverless AI will begin running:
-------------------------------- Welcome to H2O.ai's Driverless AI --------------------------------- version: 1.2.2 - Put data in the volume mounted at /data - Logs are written to the volume mounted at /log/20180606-044258 - Connect to Driverless AI on port 12345 inside the container - Connect to Jupyter notebook on port 8888 inside the container
- Connect to Driverless AI with your browser:
http://Your-Driverless-AI-Host-Machine:12345
Stopping the Docker Image¶
To stop the Driverless AI Docker image, type Ctrl + C in the Terminal (Mac OS X) or PowerShell (Windows 10) window that is running the Driverless AI Docker image.
Upgrading the Docker Image¶
This section provides instructions for upgrading Driverless AI so that existing experiments are saved. The instructions show an example of upgrading Driverless AI from version 1.0.18 to version 1.2.2.
WARNING: Experiments, MLIs, and MOJOs are not automatically upgraded when Driverless AI is upgraded.
- Build MLI models before upgrading.
- Build MOJO pipelines before upgrading.
If you did not build MLI on a model before upgrading Driverless AI, then you will not be able to view MLI on that model after upgrading. Before upgrading, be sure to run MLI jobs on models that you want to continue to interpret in future releases. If that MLI job appears in the list of Interpreted Models in your current version, then it will be retained after upgrading.
If you did not build a MOJO pipeline on a model before upgrading Driverless AI, then you will not be able to build a MOJO pipeline on that model after upgrading. Before upgrading, be sure to build MOJO pipelines on all desired models.
Note: Stop Driverless AI if it is still running.
- SSH into the IP address of the machine that is running Driverless AI.
- Set up a directory for the version of Driverless AI on the host machine:
# Set up directory with the version name mkdir dai_rel_1.2.2 # cd into the new directory cd dai_rel_1.2.2
- Retrieve the Driverless AI package from https://www.h2o.ai/driverless-ai-download/ and add it to the new directory.
Note: You can optionally run the following to retrive the
latest
tagged version.# Download latest release wget https://s3-us-west-2.amazonaws.com/h2o-internal-release/docker/driverless-ai-docker-runtime-latest-release.gz
- Load the Driverless AI Docker image inside the new directory:
# Load the Driverless AI docker image docker load < driverless-ai-docker-runtime-latest-release.gz
- Copy the data, log, license, and tmp directories from the previous Driverless AI directory to the new Driverless AI directory:
# Copy the data, log, license, and tmp directories on the host machine cp -r dai_rel_1.0.18/data dai_rel_1.2.2/data cp -r dai_rel_1.0.18/log dai_rel_1.2.2/log cp -r dai_rel_1.0.18/license dai_rel_1.2.2/license cp -r dai_rel_1.0.18/tmp dai_rel_1.2.2/tmpAt this point, your experiments from the previous versions will be visible inside the Docker container.
- Start the Driverless AI Docker image.
- Connect to Driverless AI with your browser at http://Your-Driverless-AI-Host-Machine:12345.