NVIDIA Dynamo Disaggregated Inference Deployment

This tutorial demonstrates how to run a multi-node, disaggregatedarrow-up-right inference workload using the RedHatAI/Llama-3.3-70B-Instruct-FP8-dynamic model with NVIDIA Dynamoarrow-up-right, vLLM, and NVIDIA Grovearrow-up-right on the NVIDIA Run:ai platform. You can use this workflow as a reference and adapt it for your own models, container images, and hardware configurations.

circle-info

Note

Verify the specific version of Dynamo is supported on your target hardware according to the Dynamo support matrixarrow-up-right.

In this tutorial, you will learn how to:

  • Set up environment prerequisites for Dynamo-based inference workload

  • Create a user access key for API integrations with NVIDIA Run:ai

  • Submit and run a multi-node inference workload through the NVIDIA Run:ai user interface, API, or CLI

  • Access the inference endpoint to send requests

Prerequisites

Cluster Prerequisites

Ensure that the NVIDIA Dynamo platform is installed in the cluster. This includes the required Custom Resource Definitions (CRDs) and Dynamo platform components.

The following steps must be performed by your administrator.

  1. Set environment variables:

    export NAMESPACE=dynamo-system
    export RELEASE_VERSION=0.7.1
  2. Install CRDs:

    helm fetch https://helm.ngc.nvidia.com/nvidia/ai-dynamo/charts/dynamo-crds-${RELEASE_VERSION}.tgz
    helm install dynamo-crds dynamo-crds-${RELEASE_VERSION}.tgz --namespace default
  3. Install the Dynamo platform:

    helm fetch https://helm.ngc.nvidia.com/nvidia/ai-dynamo/charts/dynamo-platform-${RELEASE_VERSION}.tgz
    helm install dynamo-platform dynamo-platform-${RELEASE_VERSION}.tgz \
      --namespace ${NAMESPACE} \
      --create-namespace \
      --set "grove.enabled=true"

NVIDIA Run:ai Prerequisites

Before you start, make sure the following requirements are met:

  • Your administrator has:

    • Created a project for you.

    • Enabled network topology-aware scheduling in the relevant node pool, allowing the NVIDIA Run:ai Scheduler to place distributed pods close to each other in the network for optimal performance. For more details, see Accelerating workloads with network topology-aware scheduling.

    • For GB200 NVL72 and Multi-Node NVLink (MNNVL) systems:

      • Enabled GB200 NVL72 and Multi-Node NVLink (MNNVL) support in the relevant node pool, ensuring that distributed workloads can leverage high-bandwidth interconnects and topology-aware scheduling. For more details, see Using GB200 NVL72 and Multi-Node NVLink domains.

      • Enabled GPU network acceleration in the cluster configuration by setting the appropriate flag, anyworkload-controller.GPUNetworkAccelerationEnabled=true. For details on how to configure this value using Helm or runaiconfig, see Advanced cluster configurations.

  • You have:

    • Access to the model if you are using a gated Hugging Face model that requires an HF_TOKEN. Generate a token from your Hugging Face accountarrow-up-right and provide it to the workload as an environment variable. The model used in this tutorial is not gated and does not require authentication.

Step 1: Logging In

Browse to the provided NVIDIA Run:ai user interface and log in with your credentials.

Step 2: Creating a User Access Key

Access keys are used for API integrations with NVIDIA Run:ai. An access key contains a client ID and a client secret. With the client credentials, you can obtain a token and use it within subsequent API calls.

In the NVIDIA Run:ai user interface:

  1. Click the user avatar at the top right corner, then select Settings

  2. Click +ACCESS KEY

  3. Enter the access key's name and click CREATE

  4. Copy the Client ID and Client secret and store securely

  5. Click DONE

To request an API access token, use the client credentials to get a token to access NVIDIA Run:ai using the Tokens API. For example:

Step 3: Creating a PVC Data Source

To reduce cold-start latency and cache model weights across runs, create a data source in the form of a Persistent Volume Claim (PVC). The PVC can be mounted to workloads and will persist after the workload completes, allowing any data it contains to be reused.

circle-info

Note

The first time a workload is launched using a new PVC, it will take longer to start as the storage gets provisioned only once the first claim to the PVC is made.

  1. To create a PVC, go to Workload manager → Data sources.

  2. Click +NEW DATA SOURCE and select PVC from the dropdown menu.

  3. Within the new form, set the scope.

circle-info

Important

PVC data sources created at the cluster or department level do not replicate data across projects or namespaces. Each project or namespace will be provisioned as a separate PVC replica with different underlying PVs; therefore, the data in each PVC is not replicated.

  1. Enter a name for the data source. The name must be unique.

  2. For the data options, select New PVC and the storage class that suits your needs:

    • To allow all nodes to read and write from/to the PVC, select Read-write by many nodes for the access mode.

    • Enter 2 TB for the claim size to ensure we have plenty of capacity for future workloads

    • Select Filesystem (default) as the volume mode. The volume will be mounted as a filesystem, enabling the usage of directories and files.

    • Set the Container path to /opt/models which is where the PVC will be mounted inside containers.

  3. Click CREATE DATA SOURCE

After creating the data source, wait for the PVC to be provisioned. The PVC claim name (which is displayed in the UI as the Kubernetes name) will appear in the Data sources grid once it’s ready. This claim name is the exact value that will be used for the <pvc-claim-name> when submitting the workload.

Step 4: Creating the Workload

The configuration below submits a DynamoGraphDeployment that defines a disaggregated, multi-node inference pipeline composed of multiple Dynamo services, each responsible for a distinct stage of inference execution.

How the Configuration Works

  • Defines a Dynamo-based inference workload that is registered and managed by NVIDIA Run:ai.

  • Uses vLLM as the backend framework for model execution.

  • Deploys a single frontend service that exposes an HTTP endpoint for inference requests.

  • Deploys two worker services:

    • VllmPrefillWorker for the prefill stage

    • VllmDecodeWorker for the decode stage

  • Configures the workload as a disaggregated, multi-node deployment, where prefill and decode run as independent worker services and can be scheduled on different nodes.

  • Each worker runs as one replica and requests 8 GPUs per replica, enabling parallel execution across stages.

  • Configures shared memory (80 Gi) for each worker to support performance-sensitive inference execution.

For more details, see the NVIDIA Dynamo documentationarrow-up-right.

Submitting the Workload

  1. To create a workload, go to Workload manager → Workloads.

  2. Click + NEW WORKLOAD and select Via YAML from the dropdown.

  3. In the YAML submission form, select the cluster where the workload will run.

  4. Upload or paste your YAML manifest. To upload a file, click UPLOAD YAML FILE and choose your YAML. To paste the YAML, insert it directly into the editor. Before submitting, update the following fields in the manifest:

    • <pvc-claim-name> - The claim name associated with the PVC created in Step 3.

    • <your-hf-token> - Required only for gated Hugging Face models. Generate a token from your Hugging Face accountarrow-up-right and provide it to the workload as an environment variable.

  1. Select a project. If the namespace is not defined in the YAML, select a project from the submission form.

  2. Click CREATE WORKLOAD

Step 5: Verifying the Workload Status

After submitting the workload, wait for it to reach the Running status in the Workloads table. A workload becomes Ready to accept inference requests only after all its pods have fully initialized, including model loading.

Large models may require several minutes to load their weights, especially when the model is stored on a PVC. During this time, the workload may remain in Initializing even though pods are already running.

To monitor progress, select the workload and click the SHOW DETAILS button at the upper-right side of the action bar. The details pane appears, presenting the Logs tab to track model-download and model-loading progress. Select the relevant pod from the dropdown and review the pod logs.

Once the workload reaches Running and shows an available Connection, you can proceed to access the inference endpoint.

Step 6: Accessing the Inference Workload

You can programmatically consume an inference workload via API by making direct calls to the serving endpoint, typically from other workloads or external integrations. Once an inference workload is deployed, the serving endpoint URL appears in the Connections column of the Workloads table. To retrieve the service endpoint programmatically, use the Get Workloads API. The endpoint URL will be available in the response body under urls.

circle-info

Note

Configuring access to the inference endpoint is not supported for Dynamo-based deployments. As a result, the inference serving endpoint created in this tutorial is not protected.

Access control for inference endpoints (such as restricting access to authenticated users, service accounts, or groups) is planned for a future release.

Last updated