For the complete documentation index, see llms.txt. This page is also available as Markdown.

Linux

Everything you need to know about deploying Supervisely agent on Linux based operating systems

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

The agent is shipped as a Docker image built on top of CUDA 12.8 (nvidia/cuda:12.8.1-cudnn-runtime-ubuntu24.04). The agent itself only reads GPU information via the host driver (NVML / nvidia-smi), so it starts on a wide range of driver versions. However, the GPU applications that the agent launches in separate containers are built against newer CUDA versions, so the host driver determines whether those workloads run reliably.

For this reason there are two tiers of requirements — the minimum needed for the agent to run, and the recommended setup for stable execution of GPU applications:

Component
Minimum required
Recommended (stable)

Linux OS

Kernel 5.15 or higher

Ubuntu 24.04 LTS or later

19.03 or higher

Latest stable

535 (CUDA 12.2 branch)

570.26 or higher

12.2

12.8

Any recent version

Latest

Why the difference? CUDA 12.8 workloads run natively on driver ≥ 570.26. On older drivers — down to the 535 branch (CUDA 12.2) — they run via the CUDA forward-compatibility package (cuda-compat-12-8), whose lowest supported base branch is 535. Below 535 there is no supported path for CUDA 12.8. Forward compatibility is officially supported on NVIDIA Data Center GPUs; on other GPUs (e.g. GeForce) install driver 570.26 or higher, which removes the need for the compat package and avoids edge cases (PTX JIT from a newer toolkit, the newest GPU architectures such as Blackwell, features introduced after the installed driver branch).

CPU-only machines don't need any of the NVIDIA components — you can skip the driver, CUDA Toolkit, and Container Toolkit steps below.

How to install

All commands assume Ubuntu 24.04 on an x86_64 host; notes throughout point out where to adjust for Ubuntu 22.04. Run them as a user with sudo privileges, and reboot when prompted after the driver installation.

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 12.8 using the local installer:

The commands target Ubuntu 24.04. If your host runs Ubuntu 22.04, replace ubuntu2404 with ubuntu2204 in both URLs — CUDA 12.8 and driver 570 are available for both. For a different patch release, find the matching .deb on the official downloads page.

Online installation (network repository)

If the host has direct internet access, the network repository is simpler and keeps the toolkit updated via apt:

Legacy installation (CUDA 12.4, minimum supported)

CUDA 12.4 is still supported as a minimum, but CUDA 12.8 above is recommended.

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:

Legacy driver (550, minimum supported)

Driver 550 is the minimum that pairs with CUDA 12.4. It still works for CUDA 12.8 workloads via the forward-compatibility package, but driver 570 above is recommended.

It's recommended to restart your system after installing the NVIDIA driver with the following command:

To verify the installation, run the following command:

The output should display the NVIDIA driver version, CUDA version, and GPU information.

nvidia-smi

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.

nvidia-smi in Docker

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.

Add Agent

Copy the command and run it in the terminal on the machine where you want to deploy the agent.

Command

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