-
Clone the Generative AI examples Git repository using Git LFS:
sudo apt -y install git-lfs git clone [email protected]:NVIDIA/GenerativeAIExamples.git cd GenerativeAIExamples/ git lfs pull
-
Install Docker Engine. Refer to these instructions for Ubuntu.
-
Install Docker Compose. Refer to these instructions to install the Compose plugin.
a. Ensure the Docker Compose plugin version is 2.20 or higher.
b. After you get the Docker Compose plugin installed, run
docker compose version
to confirm. -
Optional: You can run some containers with GPU acceleration, such as Milvus and NVIDIA NIM for LLMs. To configure Docker for GPU-accelerated containers, install the NVIDIA Container Toolkit.
-
Get an API key to access models in the API Catalog. You can use different model API endpoints with the same API key.
a. Navigate to https://build.nvidia.com/explore/discover.
b. Find the Llama 3.1 70B Instruct card and click the card.
c. Click Get API Key.
d. Click Generate Key.
e. Click Copy Key and then save the API key. The key begins with the letters
nvapi-
. -
Get an NGC license. Choose one of the following methods.
a. Try before you buy and request a 90-day trial. For more information, refer to the NVIDIA AI Enterprise Overview.
b. Create an account with the NVIDIA Developer Program. For more information, refer to the NVIDIA Developer Program Overview.
-
Get an NVIDIA NGC API key. The NVIDIA NGC API key is required to log in to the NVIDIA container registry, nvcr.io, and to pull secure base container images used in the examples. Refer to these instructions to generate an NGC API key.
a. After you get your NGC API key, you can run
docker login nvcr.io
to confirm the key is valid.