> This page is for version dev.
> For other versions, use one of these documentation indexes:
> - Latest (v1.7.1) (default): https://docs.nvidia.com/dynamo/latest/llms.txt
> - dev: https://docs.nvidia.com/dynamo/dev/llms.txt
> - v1.7.1: https://docs.nvidia.com/dynamo/v1.7.1/llms.txt
> - v1.6.2: https://docs.nvidia.com/dynamo/v1.6.2/llms.txt
> - v1.7.0: https://docs.nvidia.com/dynamo/v1.7.0/llms.txt
> - v1.6.1: https://docs.nvidia.com/dynamo/v1.6.1/llms.txt
> - v1.6.0: https://docs.nvidia.com/dynamo/v1.6.0/llms.txt
> - v1.5.1: https://docs.nvidia.com/dynamo/v1.5.1/llms.txt
> - v1.5.0: https://docs.nvidia.com/dynamo/v1.5.0/llms.txt
> - v1.4.2: https://docs.nvidia.com/dynamo/v1.4.2/llms.txt
> - v1.4.1: https://docs.nvidia.com/dynamo/v1.4.1/llms.txt
> - v1.4.0: https://docs.nvidia.com/dynamo/v1.4.0/llms.txt
> - v1.3.0: https://docs.nvidia.com/dynamo/v1.3.0/llms.txt
> - v1.2.1: https://docs.nvidia.com/dynamo/v1.2.1/llms.txt
> - v1.2.0: https://docs.nvidia.com/dynamo/v1.2.0/llms.txt
> - v1.1.1: https://docs.nvidia.com/dynamo/v1.1.1/llms.txt
> - v1.1.0: https://docs.nvidia.com/dynamo/v1.1.0/llms.txt
> - v1.0.2: https://docs.nvidia.com/dynamo/v1.0.2/llms.txt
> - v1.0.1: https://docs.nvidia.com/dynamo/v1.0.1/llms.txt
> - v1.0.0: https://docs.nvidia.com/dynamo/v1.0.0/llms.txt
> - v0.9.1: https://docs.nvidia.com/dynamo/v-0-9-1/llms.txt
> - v0.9.0: https://docs.nvidia.com/dynamo/v-0-9-0/llms.txt
> - v0.8.1: https://docs.nvidia.com/dynamo/v-0-8-1/llms.txt
> - v0.8.0: https://docs.nvidia.com/dynamo/v-0-8-0/llms.txt
> - v0.7.1: https://docs.nvidia.com/dynamo/v-0-7-1/llms.txt
> - v0.7.0: https://docs.nvidia.com/dynamo/v-0-7-0/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://docs.nvidia.com/dynamo/llms.txt. For full content including API reference and SDK examples, see https://docs.nvidia.com/dynamo/llms-full.txt.

# Ergo

Serve Ergo with NVIDIA Dynamo and SGLang on GB300 and B200. The recipes use DSpark speculative decoding and target an agentic SLA of at least 50 user tokens/s (P50) with TTFT P50 below 2 s on the AgentX trace. Pick your serving topology; deployment commands update to match. These recipes are experimental and were measured with one workload.

## What changed in this version

* Checkpoint: Ergo from Hugging Face: `Amazon-FMR/Ergo-mxfp8` (MXFP8 target model) and `Amazon-FMR/Ergo-dspark` (DSpark draft model).
* Image: a self-contained Dynamo 1.8.0 image with the Ergo SGLang runtime.
* The draft KV cache is bf16 (`--speculative-draft-kv-cache-dtype bf16`). It is required.
* The workers use the `ergo` reasoning and tool-call parsers. The frontend uses `--dyn-chat-processor dynamo`.
* The frontend runs on CPU and requests no GPU.
* Invalid JSON schema requests return HTTP 400.

Choose your deployment target

GPU

GB300 Recommended

<input type="radio" id="recipe-sku-b200" name="recipe-sku" value="b200" />

B200

Topology

Aggregated

<input type="radio" id="recipe-variant-disagg" name="recipe-variant" value="disagg" />

Disaggregated

**GPUs** 8x GB300 (1 worker) **Parallelism** TP8 and EP8 across 2 nodes **Speculative decoding** DSpark (block size 7)

**GPUs** 16x GB300 (1P1D) **Parallelism** TP8 and EP8 across 2 nodes per worker **Speculative decoding** DSpark on both roles

**GPUs** 8x B200 (1 worker) **Parallelism** TP8 and EP8 on 1 node **Speculative decoding** DSpark (block size 7)

**GPUs** 16x B200 (1P1D) **Parallelism** TP8 and EP8 on 1 node per worker **Speculative decoding** DSpark on both roles

## Prerequisites

* A Kubernetes cluster with the Dynamo platform installed and 8 GB300 GPUs available (2 nodes, 4 GPUs each, in one NVLink domain).  The frontend runs on CPU and needs no GPU. See the [Kubernetes Deployment Guide](/dynamo/dev/kubernetes/getting-started/quickstart).

- A Kubernetes cluster with the Dynamo platform installed and 16 GB300 GPUs available (4 nodes, all in one NVLink domain).  The frontend runs on CPU and needs no GPU. See the [Kubernetes Deployment Guide](/dynamo/dev/kubernetes/getting-started/quickstart).

* A Kubernetes cluster with the Dynamo platform installed and 8 B200 GPUs available on one node, with about 1.45 TiB of free host memory on that node (HiCache and the bf16 draft host pool). The frontend runs on CPU and needs no GPU.

- A Kubernetes cluster with the Dynamo platform installed and 16 B200 GPUs available (2 nodes, 8 GPUs each), with RDMA between the two nodes for the Mooncake KV transfer. The prefill node needs about 1.45 TiB of free host memory (HiCache and the bf16 draft host pool). If your cluster exposes RDMA through a device plugin resource or needs an explicit device list, add them in your own overlay. The frontend runs on CPU and needs no GPU.

* The `v1beta1` DynamoGraphDeployment API. The manifests set `runtimeVersionOverride: "1.8.0"`, which pins the runtime version explicitly.
* Access to nvcr.io for the runtime image.
* A `shared-model-cache` PVC readable from all pods (ReadOnlyMany or ReadWriteMany). The two model directories are about 1.1 TB.
* The Ergo weights and the DSpark draft model on that PVC. The model-cache directory has a Job (`model-download.yaml`) that downloads them from Hugging Face.

- The NVIDIA ComputeDomain DRA driver. The GB300 manifests create one `ComputeDomain` for the workers.

The model cache uses this layout:

```text
ergo/Ergo-mxfp8_hf/    target model weights (MXFP8, 65 shards, 1087 GiB)
ergo/dspark_hf/        DSpark draft model weights
```

The weights come from the public Hugging Face repositories `Amazon-FMR/Ergo-mxfp8` and `Amazon-FMR/Ergo-dspark`. No token is needed. `model-cache/model-download.yaml` contains a Job that downloads them into `Ergo-mxfp8_hf` and `dspark_hf` on the PVC. See the license in each repository.

## Deploy

Create the shared model cache. The Job in the same file fills it with the layout above:

> **Warning**
>
> Edit `storageClassName` in `recipes/ergo/model-cache/model-cache.yaml` to a class that suits your cluster before you apply it. Review node placement, registry credentials, and resource claims before you apply a manifest.

```bash
export NAMESPACE=your-namespace
kubectl apply -f recipes/ergo/model-cache/model-cache.yaml -n ${NAMESPACE}
kubectl apply -f recipes/ergo/model-cache/model-download.yaml -n ${NAMESPACE}
kubectl wait --for=condition=complete job/ergo-model-download -n ${NAMESPACE} --timeout=14400s   # the download is about 1.1 TB
```

Deploy the selected DynamoGraphDeployment (DGD). Run only one Ergo recipe on the same nodes.

```bash
export DGD=ergo-sglang-gb300-agg-agentic
kubectl apply -f recipes/ergo/sglang/agg-gb300-agentic/deploy-gb300.yaml -n ${NAMESPACE}
```

```bash
export DGD=ergo-sglang-gb300-1p1d-agentic
kubectl apply -f recipes/ergo/sglang/disagg-gb300-agentic/deploy-gb300.yaml -n ${NAMESPACE}
```

```bash
export DGD=ergo-sglang-b200-agg-agentic
kubectl apply -f recipes/ergo/sglang/agg-b200-agentic/deploy-b200.yaml -n ${NAMESPACE}
```

```bash
export DGD=ergo-sglang-b200-1p1d-agentic
kubectl apply -f recipes/ergo/sglang/disagg-b200-agentic/deploy-b200.yaml -n ${NAMESPACE}
```

Plan for a long start. Weight loading is slower when several pods read the same shared volume at once, and CUDA graph capture follows. When many pods read one shared volume, the load can take more than 2 hours. Some clusters remove pods that are not Ready after 2 hours, so start the engine alone.

## Smoke Test

The deploy command sets `DGD` to the selected resource name. Wait for readiness and forward the frontend port:

```bash
kubectl wait --for=condition=Ready dynamographdeployment/${DGD} \
  -n ${NAMESPACE} --timeout=7200s
kubectl port-forward svc/${DGD}-frontend 8000:8000 -n ${NAMESPACE}
```

In a second terminal (set `NAMESPACE` there too), send a chat completion with the served model name `ergo`:

```bash
curl http://localhost:8000/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"ergo","messages":[{"role":"user","content":"Reply with exactly: READY"}],"temperature":0,"max_tokens":256}'
```

## Benchmark

Use [perf.yaml](https://github.com/ai-dynamo/dynamo/blob/main/recipes/ergo/perf/perf.yaml) to run AIPerf 0.13.0 against the deployment. It uses the chat endpoint with streaming on the AgentX agentic trace (`semianalysis_cc_traces_weka_062126`, scenario `inferencex-agentx-mvp`), with an agentic warmup and a 1200 s profiling phase. Use the Ergo tokenizer (the `Ergo-mxfp8_hf` directory) in the client; a wrong tokenizer changes prompt token counts a lot.

Set these values in the Job `env` section:

* `ENDPOINT`: the frontend Service, `${DGD}-frontend:8000`.
* `CONCURRENCY`: the knee for your target. On GB300 use  for aggregated and  for disaggregated; on B200 use  for aggregated and  for disaggregated.
* `DURATION`: 1200 s for a full run.

```bash
kubectl delete job ergo-aiperf -n ${NAMESPACE} --ignore-not-found   # a finished Job is not run again
kubectl apply -f recipes/ergo/perf/perf.yaml -n ${NAMESPACE}
kubectl logs -f job/ergo-aiperf -n ${NAMESPACE}
```

Restart the workers between independent runs. A warm engine gives higher numbers than a fresh one.

### Optimization Targets

| Workload                       | User output tok/s (P50) |  TTFT P50 |
| ------------------------------ | ----------------------: | --------: |
| AgentX (inferencex-agentx-mvp) |             at least 50 | below 2 s |

### Performance Results

The knee is the highest concurrency that meets the SLA. Throughput is output tokens/s per worker GPU (8 for aggregated, 16 for 1P1D). The selected target is highlighted. Knobs:

<table>
  <thead>
    <tr><th>Workload</th><th>Recipe</th><th>SKU</th><th>Concurrency</th><th>System Output tok/s/GPU</th><th>User output tok/s (P50)</th><th>TTFT P50</th></tr>
  </thead>

  <tbody>
    <tr data-highlight-target="gb300-agg">
      <td>AgentX (inferencex-agentx-mvp)</td>

      <td>aggregated, 8 GPUs</td>

      <td>GB300</td>

      <td />

      <td />

      <td />

      <td />
    </tr>

    <tr data-highlight-target="gb300-disagg">
      <td>AgentX (inferencex-agentx-mvp)</td>

      <td>disaggregated 1P1D, 16 GPUs</td>

      <td>GB300</td>

      <td />

      <td />

      <td />

      <td />
    </tr>

    <tr data-highlight-target="b200-agg">
      <td>AgentX (inferencex-agentx-mvp)</td>

      <td>aggregated, 8 GPUs</td>

      <td>B200</td>

      <td />

      <td />

      <td />

      <td />
    </tr>

    <tr data-highlight-target="b200-disagg">
      <td>AgentX (inferencex-agentx-mvp)</td>

      <td>disaggregated 1P1D, 16 GPUs</td>

      <td>B200</td>

      <td />

      <td />

      <td />

      <td />
    </tr>
  </tbody>
</table>

**Measurement method.** Throughput rows were measured with the DSpark acceptance length pinned to the vendor-measured golden value of 4.28 (block size 7), by using the acceptance simulation of SGLang, so that runs are comparable. Accuracy and functional checks were measured without pinning. The pinning is not part of the recipe: the manifests use real DSpark acceptance.

### Accuracy and functional checks

Measured on the aggregated recipe without acceptance pinning:

| Benchmark                    |          Result |
| ---------------------------- | --------------: |
| GPQA-Diamond (198 questions) | 0.909 (180/198) |
| IFEval prompt strict         |           0.924 |
| IFEval instruction strict    |           0.942 |
| IFEval prompt loose          |           0.932 |
| IFEval instruction loose     |           0.948 |

The functional gate passes 7/7 checks. An invalid JSON schema returns HTTP 400 (it returned HTTP 500 before).

B200, measured without acceptance pinning:

| Benchmark                    |      Aggregated | Disaggregated 1P1D |
| ---------------------------- | --------------: | -----------------: |
| GPQA-Diamond (198 questions) | 0.934 (185/198) |    0.899 (178/198) |
| IFEval prompt strict         |           0.919 |              0.891 |
| IFEval instruction strict    |           0.940 |              0.920 |
| IFEval prompt loose          |           0.934 |              0.909 |
| IFEval instruction loose     |           0.951 |              0.932 |

On B200 the QA API suite has one P0 failure on both recipes, `high_effort_reasoning` on `/v1/responses` (reasoning-budget exhaustion), the same known failure as on GB300.

## Compare All Targets

<table>
  <thead>
    <tr><th>GPU</th><th>Topology</th><th>Total GPUs</th><th>Parallelism</th><th>Speculative Decoding</th><th>Runtime image</th></tr>
  </thead>

  <tbody>
    <tr data-highlight-target="gb300-agg">
      <td>GB300</td>

      <td>1 worker</td>

      <td>8</td>

      <td>TP8 and EP8 across 2 nodes</td>

      <td>DSpark (block size 7)</td>

      <td>Dynamo 1.8.0 with Ergo SGLang runtime</td>
    </tr>

    <tr data-highlight-target="gb300-disagg">
      <td>GB300</td>

      <td>1P1D</td>

      <td>16</td>

      <td>TP8 and EP8 across 2 nodes per worker</td>

      <td>DSpark on both roles</td>

      <td>Dynamo 1.8.0 with Ergo SGLang runtime</td>
    </tr>

    <tr data-highlight-target="b200-agg">
      <td>B200</td>

      <td>1 worker</td>

      <td>8</td>

      <td>TP8 and EP8 on 1 node</td>

      <td>DSpark (block size 7)</td>

      <td>Dynamo 1.8.0 with Ergo SGLang runtime</td>
    </tr>

    <tr data-highlight-target="b200-disagg">
      <td>B200</td>

      <td>1P1D</td>

      <td>16</td>

      <td>TP8 and EP8 on 1 node per worker</td>

      <td>DSpark on both roles</td>

      <td>Dynamo 1.8.0 with Ergo SGLang runtime</td>
    </tr>
  </tbody>
</table>

## Notes

* Status is experimental. All results use one trace (AgentX), and throughput was measured with the acceptance length pinned (see the measurement method above).
* The Dynamo frontend rejects some OpenAI parameters: `custom_labels`, `json_schema`, and `response_format` on `/v1/completions`; `max_tool_calls` and `top_logprobs` on `/v1/responses`; and more than 32 `stop_token_ids`.
* `min_p` is not supported together with DSpark speculative decoding.
* Streaming on `/v1/responses` does not send the `response.in_progress`, `response.created`, and `response.completed` events.
* Forward-pass metrics are off in both recipes: the workers set `DYN_FORWARDPASS_METRIC_PORT` to an empty string. In the aggregated recipe this is also the cost of SGLang gateway mode (`--tokenizer-worker-num 2`). This affects the planner and some observability.
* The recipe unit is one 8-GPU worker. Scale with independent deployments.
* Disaggregated performance depends on your fabric. KV cache moves between workers with Mooncake: over MNNVL on GB300 and over RDMA on B200.
* On B200 the bf16 draft KV cache reduces the KV cache capacity of one 8-GPU worker (about 2.9M tokens), which limits the 1P1D recipe to low concurrency on the AgentX trace.

## Source

* Deployment assets: [Ergo recipes](https://github.com/ai-dynamo/dynamo/tree/main/recipes/ergo)
* Setup assets: [model-cache.yaml](https://github.com/ai-dynamo/dynamo/blob/main/recipes/ergo/model-cache/model-cache.yaml) and [model-download.yaml](https://github.com/ai-dynamo/dynamo/blob/main/recipes/ergo/model-cache/model-download.yaml)
* Benchmark manifest: [perf.yaml](https://github.com/ai-dynamo/dynamo/blob/main/recipes/ergo/perf/perf.yaml)
* Full measurements and sweeps: [recipe README](https://github.com/ai-dynamo/dynamo/blob/main/recipes/ergo/README.md)
* GB300 aggregated: [deployment manifest](https://github.com/ai-dynamo/dynamo/blob/main/recipes/ergo/sglang/agg-gb300-agentic/deploy-gb300.yaml)
* GB300 disaggregated: [deployment manifest](https://github.com/ai-dynamo/dynamo/blob/main/recipes/ergo/sglang/disagg-gb300-agentic/deploy-gb300.yaml)
* B200 aggregated: [deployment manifest](https://github.com/ai-dynamo/dynamo/blob/main/recipes/ergo/sglang/agg-b200-agentic/deploy-b200.yaml)
* B200 disaggregated: [deployment manifest](https://github.com/ai-dynamo/dynamo/blob/main/recipes/ergo/sglang/disagg-b200-agentic/deploy-b200.yaml)