Skip to navigation

Prerequisites

View as MarkdownOpen in Claude

Before you deploy a NIM LLM and VLM container, confirm that your environment meets the following requirements.

Hardware Requirements

The following table lists the minimum hardware requirements:

RequirementSpecification
CPUAMD64, ARM64
GPUAny supported NVIDIA GPU

Model GPU Memory Requirements

GPU memory requirements depend on the model, profile, and number of GPUs.

Confirm that your chosen hardware configuration meets the minimum GPU memory requirement for the model profile you wish to run. For more information, refer to Model Profiles and Support Matrix for PB NIMs.

Software Requirements

The following table lists the minimum software versions:

RequirementSpecification
Operating SystemUbuntu 22.04 LTS or later recommended
Container Toolkit1.14.0 or later
CUDA SDK12.9 or later
GPU Driver580 or later
Docker24.0 or later

Operating System

While other Linux distributions can be compatible with NIM LLM and VLM, they have not been officially validated.

Use Ubuntu 22.04 LTS or later for the best experience.

CUDA SDK

Install CUDA SDK by following the CUDA installation guide for Linux.

GPU Drivers

Install the NVIDIA GPU drivers by following the NVIDIA Driver Installation Guide.

Docker

Docker is required to run the containerized NIM services.

  1. Install Docker Engine for your Linux distribution by following the Docker Engine installation guide.

  2. Verify that the Docker daemon is running and that your user can execute docker commands without sudo. Add your user to the docker group if needed:

    sudo groupadd docker
    sudo usermod -aG docker $USER
  3. Log out and log back in so the group change takes effect.

Container Toolkit

The NVIDIA Container Toolkit enables Docker containers to access the host GPU.

  1. Install the toolkit by following the NVIDIA Container Toolkit installation guide.

  2. Configure Docker to use the NVIDIA runtime by following the Docker configuration steps.

  3. Restart the Docker daemon after configuration:

    sudo systemctl restart docker

NIM Container Access

PB7 containers require an active NVIDIA AI Enterprise entitlement. To request an evaluation license, see Ways to Get Started With NVIDIA AI Enterprise and Activate Your NVIDIA AI Enterprise License.

Generate Access Credentials

NGC Personal API Key

For this guide, create an NGC Personal API key to pull either type of PB7 container from NGC. Serving startup requires a valid NGC API key whenever NIM needs to download model files, including from Hugging Face.

  1. Generate a Personal API Key on the Setup API Keys page.
  2. Select at least NGC Catalog from the Services Included list.

Hugging Face Access Token

For a gated or private Hugging Face model, create a Hugging Face access token with read access to the model repository in addition to your NGC Personal API key. For other model sources, refer to Model Downloads.

Verify NVIDIA Runtime Access

To confirm that your setup is correct, run the following command:

docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi

This command should produce output similar to one of the following, where you can confirm CUDA driver version, and available GPUs.

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.95.05 Driver Version: 580.95.05 CUDA Version: 12.9 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA H100 80GB HBM3 On | 00000000:1B:00.0 Off | 0 |
| N/A 36C P0 112W / 700W | 78489MiB / 81559MiB | 0% Default |
| | | Disabled |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+