Prerequisites
- Begin with Docker-supported operating system
- Install Docker - minimum version: 23.0.1
- Install NVIDIA Drivers - minimum version: 580
- Install the NVIDIA Container Toolkit - minimum version: 1.13.5
- Verify your container runtime supports NVIDIA GPUs by running
Example output:
For more information on enumerating multi-GPU systems, please see the NVIDIA Container Toolkit’s GPU Enumeration Docs
NGC (NVIDIA GPU Cloud) Account
- Create an account on NGC
- Generate an API Key
- Docker log in with your NGC API key using
docker login nvcr.io --username='$oauthtoken' --password=${NGC_API_KEY}
NGC CLI Tool
- Download the NGC CLI tool for your OS.
Use NGC CLI version
3.41.1or newer. Here is the command to install this on AMD64 Linux in your home directory:
- Set up your NGC CLI Tool locally (You’ll need your API key for this!):
After you enter your API key, you may see multiple options for the org and team. Select as desired or hit enter to accept the default.
- Log in to NGC
You’ll need log in to NGC via Docker and set the NGC_API_KEY environment variable to pull images:
Then, set the relevant environment variables in your shell. You will need to set the NGC_API_KEY variable:
- Set up your NIM cache
The NIM cache allows you to download models and store previously-downloaded models so that you don’t need to download them again later when you run the NIM again. The NIM cache must be readable and writable by the NIM, so in addition to creating the directory, the permissions on this directory need to be set to globally readable writable. The NIM cache directory can be set up as follows:
Now, you should be able to pull the container and download the model using the environment variables. To get started, see the quickstart guide.