Linux
Everything you need to know about deploying Supervisely agent on Linux based operating systems
Deploy Supervisely agent on Linux
Supervisely agent can work both with and without GPU support. If you don't have a GPU, you can deploy the agent on any machine with Linux OS and you can skip the GPU installation steps. This tutorial explains how to deploy the Supervisely agent on Linux OS.
Table of Contents
Prerequisites
Linux OS (Kernel 3.10 or higher)
Docker (Version 19.3 or higher)
CUDA Toolkit (Version 9.0 or higher)
NVIDIA Driver (Version 452.39 or higher)
How to install
Step 1. Install Docker
First, set up the Docker apt repository:
Then install the Docker packages:
Finally, verify that the Docker Engine installation is successful by running the hello-world image:
Check out the official Docker documentation for more information.
Step 2. Install CUDA Toolkit
Install the CUDA Toolkit using the following commands:
Check out the official CUDA Toolkit documentation for more information and the latest version.
Step 3. Install NVIDIA Driver
Install the NVIDIA driver using the following commands:
To verify the installation, run the following command:
It's recommended to restart your system after installing the NVIDIA driver with the following command:
The output should display the NVIDIA driver version, CUDA version, and GPU information.
If you can see this information, the installation was successful. Otherwise, please check the Troubleshooting section.
Check out the official NVIDIA Driver documentation for more information and the latest version.
Step 4. Install NVIDIA Container Toolkit
The NVIDIA drivers must be also available in the Docker containers so the agent can utilize the GPU. To do this, install the NVIDIA Container Toolkit using the following commands:
Now, configure the Docker daemon to use the NVIDIA runtime:
Finally, restart the Docker daemon:
Now, we'll need to ensure that the NVIDIA Container Toolkit is installed and working correctly and that the NVIDIA runtime is available inside the Docker containers. To do this, run the following command:
The output should display the NVIDIA driver version, CUDA version, and GPU information.
If you can't see this information, please check the Troubleshooting section.
Step 5. Deploy Supervisely Agent
Now it's time to deploy the Supervisely agent.
Open Supervisely instance, go to the Cluster page and press the Add
button. Select the Supervisely agent
option.
Copy the command and run it in the terminal on the machine where you want to deploy the agent.
That's it! Now your agent is deployed and running.
TroubleShooting
If the nvidia-smi
command does not display the GPU information from OS or the Docker container, the NVIDIA drivers were not successfully installed. In this case, you can try to uninstall the NVIDIA drivers and CUDA Toolkit:
After that restart your system, and try to install the components again.
Last updated