> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reliantlabs.io/llms.txt
> Use this file to discover all available pages before exploring further.

# ML on your own GPU cluster (early access)

> Early access, by request. Reliant for ML brings releases, observability and agent feedback loops to training and inference on Kubernetes clusters you run. What it is, how access works, the forge.MLStack declaration that exists today, and what is not built yet.

> [!WARNING]
>
> **Early access, by request.** ML is not generally available. It is switched on per organization, and most of what the design describes below is not built. This page says which parts exist today and which do not.

Teams that train and serve models run on GPU clusters they already operate, with scheduling, drivers and exporters they chose. Reliant for ML is aimed at the part that cluster does not give you: the same delivery and feedback loop a service gets from Forge. That means a release you can promote and judge, tests that gate it, observability that joins what the GPUs and the scheduler report, and alerts that an agent can pick up and act on.

Two boundaries shape everything else. **Reliant does not provision GPUs and does not run your training or inference.** Everything runs on Kubernetes clusters you operate, in your cloud, and Forge works with what is already there. And nothing is all-or-nothing: you declare the components you want Forge to know about, adopt the ones your cluster already runs, and let Forge install only what is missing.

## How access works

ML is available by request. To ask for it, email [support@reliantlabs.io](mailto:support@reliantlabs.io) with your organization id, and Reliant staff enable the `ml` feature for the organization.

**Coming in the next release:** the control plane side of that switch is merged but not in a release tag yet. It is a per-organization feature that staff turn on with an audited reason, and members can ask for access through the API. An in-console "Request access" step is still in review. Until all of it ships, the email is the way in.

## What exists today: declare a cluster's ML stack

`forge.MLStack` is available in forge v1.13.0. It lets an environment declare the ML components one cluster runs, as code in the same `deploy/kcl/<env>` files as the rest of the environment. The policy it encodes is **discover, then adopt, then install only what is missing**. For each component, the declaration says one of three things: forge reads it where it already runs (`forge.Adopt`), forge installs it from a pinned chart (`forge.Install`), or the slot is left out and forge does nothing.

A stack belongs to one cluster, and only `cluster` is required. Every component slot is optional, so a stack of one component is valid and renders only that component. This example adopts the NVIDIA exporter the cluster already runs and scrapes the metrics you chose, installs Kueue because the cluster lacks a queue, and records a dismissed recommendation with a reason and an expiry:

```python theme={null}
import forge

ml_stacks = [forge.MLStack {
    cluster = forge.ClusterTarget {
        cluster = "gke_acme_us-central1_gpu"       # the kubectl context
        namespace = "forge-ml"
        platform = "amd64"
        connected_cluster = "acme-gpu"              # `forge cluster connect`
    }
    observed = ["gpu-operator", "dcgm-exporter"]    # what a human or discovery found running
    observed_at = "2026-11-26"
    accelerators = [forge.Accelerators {
        vendor = "nvidia"
        metrics = forge.Adopt {
            kind = "dcgm-exporter", namespace = "gpu-operator", version = "3.3.9"
            selector = {"app": "nvidia-dcgm-exporter"}, port = 9400
            allow = ["DCGM_FI_DEV_GPU_UTIL", "DCGM_FI_DEV_FB_USED", "DCGM_FI_DEV_XID_ERRORS"]
        }
    }]
    queue = forge.Install {
        kind = "kueue"
        chart = forge.HelmChart {
            name = "kueue", oci = "oci://registry.k8s.io/kueue/charts/kueue"
            version = "0.14.4", namespace = "kueue-system"
        }
    }
    decisions = [forge.RecommendationDecision {
        id = "kubelet-tracing-off", reason = "GKE does not expose kubelet tracing config", expires = "2027-06-01"
    }]
}]
```

Set it on the environment's bundle, as `ml_stacks = ml_stacks`, and check it with `forge env render <env>`. The Kueue chart from this example renders as a chart to deliver on that cluster,.

### The slots

An accelerator vendor goes in `accelerators` (`nvidia`, `amd`, `tpu`, `neuron`, `gaudi` or `generic`), and each carries the exporter that reports on it. A vendor's device-plugin resource, such as `nvidia.com/gpu`, is filled in for you, and a `generic` vendor names its own. The other slots are `node_health`, `queue`, `training`, `serving`, `monitoring` and `pull_cache`, and each holds an `Adopt` or an `Install`. Forge ships no per-vendor presets: the metric names you draw and alert on are your data, written in your own files (see scraping below).

### Adopt and Install

`forge.Adopt` is a statement that a component already runs. It records the `kind` (a component id such as `dcgm-exporter`, `kueue` or `kserve`), the `namespace`, the `version` you found and an optional `note`, and forge reads it and never upgrades, reconfigures or owns it. With a `selector` and a `port` it also scrapes the component's metrics, described next. `forge.Install` names the same `kind` with a pinned upstream Helm `chart`, and forge delivers it to the stack's cluster.

How a chart is delivered follows its `delivery`. A chart that owns no CRDs, such as node-problem-detector, is `bundle`: it is rendered at build time into the environment's bundle and reconciled with it, so it is pruned when you remove the `Install`. An operator with CRDs, such as Kueue, is `bootstrap`, the default: it is applied with `forge env deploy <env> --target <chart name>` and kept out of the bundle, so pruning the bundle can never delete its CRDs and everything made from them. Every object an `Install` creates is labelled as forge's own, so discovery can tell forge's installs from the cluster's.

### Scraping a component's metrics

In forge v1.13.0, an `Adopt` or an `Install` that sets `selector` (pod labels that must all match) and `port` (the metrics port, 1 to 65535) is also scraped. When the environment's observability is on, it becomes a `forge.Telemetry` entry with `service_name` `ml-<kind>` (suffixed with the cluster when the environment declares several stacks), scope `platform`, the stack's cluster, `namespaces` set to the component's namespace (for an `Install`, its chart's), and one metrics scrape on that port. `allow` is a list of Prometheus metric names the scrape keeps, and without it the scrape keeps every name. The names are your data: forge ships no per-vendor list, so the ones you draw and alert on are written in your own file. `service_name` overrides the generated name when you adopt two scraped components of one kind. If the environment declares its own `Telemetry` with the same `service_name`, yours replaces the generated one, which is how you give a scrape a path, an interval or dashboards of its own.

Render checks the combination: `port` needs a `selector`, `allow` and `service_name` need a `port`, and every `allow` entry must be a valid metric name. An `Adopt` with no `port` is an inventory statement only and scrapes nothing.

> [!NOTE]
>
> **The preferred path is changing.** forge#3030 has not merged. It is being reworked to deprecate the scrape fields on `Adopt` and `Install`, keeping them working with a warning, and to point to the environment's regular `Observability.telemetry` instead. Once it lands, declare scrapes as `forge.Telemetry` entries in the environment's `observability`, and treat `Adopt` as the inventory statement of what runs. What this page describes is the released v1.13.0 behavior.

### What render refuses

The checks run at render, so a mistake fails before anything is applied. Forge refuses a component both adopted and installed, a kind installed twice, an `Install` of a kind listed in `observed` (adopt the running one, because two DCGM exporters on one node break each other's profiling counters), two `Accelerators` of one vendor, a recommendation id decided twice, and an `Install` chart bound to a different cluster than its stack. KubeRay is adopt-only: installing it needs a `reason`, because it is a whole platform with its own scheduler and a team's queue and training defaults are the better thing to install.

## What is not available yet

None of the following can be used today, and none has a date. They are in progress, and each depends on work that has not merged or has not been released.

* **`forge ml discover`**, a read-only command that inventories a cluster through your own kube context and proposes the `ml.k` for it. Until it ships, you write the stack by hand, or from what your platform team already knows about the cluster.
* **ML in the Forge console**: training runs, evaluations, models, inference services, fleet and setup views, and the in-console access request. These are in review and are not in a release.
* **Cluster inventory and events from the collector**, which the fleet and setup views are meant to read.
* **Releases, previews, tests and security for models**, and the resilience tooling for long training runs. These are the design direction, mirroring what Reliant does for services: releases promoted by digest and judged by a health check, a smoke training run per pull request, evaluation gates, signed artifacts, and traces joined across the GPU, the node and the queue. It is a direction, not a feature.

Support starts with NVIDIA. If your cluster is something else, the vendor field accepts it, but expect less to be read from it at first.

## Related topics

* [Multi-environment deploys](https://docs.reliantlabs.io/forge/deploy/environments.md): where the stack is declared and how an environment binds to a cluster
* [Deploy to your own Kubernetes cluster](https://docs.reliantlabs.io/guides/hosting/deploy-to-your-own-kubernetes.md): connecting a cluster you run
* [Escape hatches](https://docs.reliantlabs.io/forge/deploy/escape-hatches.md): charts, manifests and patches for things forge does not model


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.