---
title: How to Use a GPU Fabric Cluster
url: https://docs.vultr.com/products/compute/clusters/use-gpu-fabric
description: Deploy and manage a Vultr GPU Fabric Cluster with RoCE or InfiniBand fabric networking using the API.
publish_date: 2026-10-27T21:32:46.300834Z
last_updated: 2026-10-28T17:03:14.394880Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

A GPU Fabric Cluster connects GPU instances via an automated, high-performance fabric network (RoCE or InfiniBand) for AI/ML training, distributed inference, and HPC workloads. Unlike a Compute Cluster or Bare Metal Cluster, a GPU Fabric Cluster does not automatically provision instances to match `desired_pool_count`. You deploy each instance yourself and attach it to the cluster.

This guide explains how to deploy and manage a GPU Fabric Cluster using the Vultr API.

> [!NOTE]
> Raising `desired_pool_count` on a GPU Fabric Cluster does not provision any instances. The field still tracks your intended pool size, but reaching it is a manual process on this cluster type.

1. Send a `POST` request to the [**Create Cluster** endpoint](https://www.vultr.com/api/#tag/clusters/operation/create-cluster) with `gpu_fabric` set to `true` to create the cluster. Replace `REGION` with the region identifier, `PLAN` with a GPU-capable bare metal plan, `CLUSTER_LABEL` with a descriptive name, `OS_ID` with the operating system ID, and `HOSTNAME` with a hostname for the cluster's instances. See [How to Create a Cluster](https://docs.vultr.com/products/compute/clusters/create) for the full set of create options.

    ```console
    $ curl "https://api.vultr.com/v2/clusters" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        -d '{
            "region": "REGION",
            "plan": "PLAN",
            "label": "CLUSTER_LABEL",
            "min_pool_count": 1,
            "desired_pool_count": 1,
            "os_id": OS_ID,
            "hostname": "HOSTNAME",
            "gpu_fabric": true
        }'
    ```

    A successful request returns an HTTP `200 OK` response. The cluster's `state` reads `empty` until you attach an instance, even if `desired_pool_count` is `1` or higher.

1. Send a `POST` request to the [**Create Bare Metal Instance** endpoint](https://www.vultr.com/api/#tag/baremetal/operation/create-baremetal) to deploy an instance to attach. Use the same `plan` and `region` as the cluster. Replace `OS_ID` with the operating system ID and `INSTANCE_LABEL` with a descriptive label.

    ```console
    $ curl "https://api.vultr.com/v2/bare-metals" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        -d '{
            "region": "REGION",
            "plan": "PLAN",
            "os_id": OS_ID,
            "label": "INSTANCE_LABEL"
        }'
    ```

    Wait for the instance's `status` to read `active` before attaching it. Note the instance's `id`.

1. Send a `POST` request to the [**Add Single Instance** endpoint](https://www.vultr.com/api/#tag/clusters/operation/update-cluster-instance) to attach the instance to the cluster as a compute node. Replace `{cluster-id}` with the cluster's ID and `{instance-id}` with the instance's ID. To attach it as the cluster's head node instead, see **Attach a Head Node** below.

    ```console
    $ curl "https://api.vultr.com/v2/clusters/{cluster-id}/add/{instance-id}" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    ```

    A successful request returns an HTTP `202 Accepted` response. The fabric interconnect, PKey partition, and VLAN assignment configure automatically on attach. No manual network setup is required.

1. Repeat steps 2 and 3 for each additional instance you want in the cluster, since the cluster does not provision them for you.

## Attach a Head Node

A GPU Fabric Cluster can designate one attached instance as its head node, separate from the compute node pool. This action is only available on GPU Fabric Clusters.

1. Deploy an instance as in step 2 above, using the same `plan` and `region` as the cluster.

1. Send a `POST` request to the [**Add Single Instance** endpoint](https://www.vultr.com/api/#tag/clusters/operation/update-cluster-instance) with `attach_head_node` as the action, to designate the instance as the cluster's head node. Replace `{cluster-id}` with the cluster's ID and `{instance-id}` with the instance's ID.

    ```console
    $ curl "https://api.vultr.com/v2/clusters/{cluster-id}/attach_head_node/{instance-id}" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    ```

    A successful request returns an HTTP `202 Accepted` response.

    > [!NOTE]
    > A cluster can only have one head node. Attaching a second returns a `400` error reporting that the cluster already has one. Sending this action to a non-GPU cluster also returns a `400` error, since only GPU clusters support head nodes.

## Retrieve Fabric Metrics

Send a `GET` request to the [**Get Cluster Metrics** endpoint](https://www.vultr.com/api/#tag/clusters/operation/get-cluster-metrics) to retrieve GPU and fabric metrics for each attached instance, including per-GPU temperature and power usage, and per-NIC network utilization and error counts. See [How to Retrieve Cluster Metrics](https://docs.vultr.com/products/compute/clusters/retrieve-metrics) for the request format.
