Skip to content

Latest commit

 

History

History
55 lines (32 loc) · 2.78 KB

common-prerequisites.md

File metadata and controls

55 lines (32 loc) · 2.78 KB

Prerequisites

  1. 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
  2. Install Docker Engine. Refer to these instructions for Ubuntu.

  3. 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.

  4. 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.

  5. 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.

    Llama 3 70B Instruct model card

    c. Click Get API Key.

    API section of the model page.

    d. Click Generate Key.

    Generate key window.

    e. Click Copy Key and then save the API key. The key begins with the letters nvapi-.

    Key Generated window.

  6. 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.

  7. 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.