跳到导航

Ergo

Serve Ergo with Dynamo and SGLang on GB300 and B200.

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
Topology
GPUs 8x GB300 (1 worker)Parallelism TP8 and EP8 across 2 nodesSpeculative decoding DSpark (block size 7)
GPUs 16x GB300 (1P1D)Parallelism TP8 and EP8 across 2 nodes per workerSpeculative decoding DSpark on both roles
GPUs 8x B200 (1 worker)Parallelism TP8 and EP8 on 1 nodeSpeculative decoding DSpark (block size 7)
GPUs 16x B200 (1P1D)Parallelism TP8 and EP8 on 1 node per workerSpeculative 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.
  • 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.
  • 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:

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:

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.

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.

export DGD=ergo-sglang-gb300-agg-agentic
kubectl apply -f recipes/ergo/sglang/agg-gb300-agentic/deploy-gb300.yaml -n ${NAMESPACE}
export DGD=ergo-sglang-gb300-1p1d-agentic
kubectl apply -f recipes/ergo/sglang/disagg-gb300-agentic/deploy-gb300.yaml -n ${NAMESPACE}
export DGD=ergo-sglang-b200-agg-agentic
kubectl apply -f recipes/ergo/sglang/agg-b200-agentic/deploy-b200.yaml -n ${NAMESPACE}
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:

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:

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 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 48 for aggregated and 96 for disaggregated; on B200 use 66 for aggregated and 32 for disaggregated.
  • DURATION: 1200 s for a full run.
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

WorkloadUser output tok/s (P50)TTFT P50
AgentX (inferencex-agentx-mvp)at least 50below 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: sweep at concurrency 48 with the acceptance length pinned to 4.28. The fused Ergo/DSpark kernel settings and attention KV splits are in both recipes. DSpark block size 4 (acceptance 3.60) and block size 5 (acceptance 3.92) are both below block size 7 (acceptance 4.28).

WorkloadRecipeSKUConcurrencySystem Output tok/s/GPUUser output tok/s (P50)TTFT P50
AgentX (inferencex-agentx-mvp)aggregated, 8 GPUsGB3004887.9142.40.49 s
AgentX (inferencex-agentx-mvp)disaggregated 1P1D, 16 GPUsGB30096106.7114.71.18 s
AgentX (inferencex-agentx-mvp)aggregated, 8 GPUsB20066103.982.00.65 s
AgentX (inferencex-agentx-mvp)disaggregated 1P1D, 16 GPUsB2003232.8145.40.94 s

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:

BenchmarkResult
GPQA-Diamond (198 questions)0.909 (180/198)
IFEval prompt strict0.924
IFEval instruction strict0.942
IFEval prompt loose0.932
IFEval instruction loose0.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:

BenchmarkAggregatedDisaggregated 1P1D
GPQA-Diamond (198 questions)0.934 (185/198)0.899 (178/198)
IFEval prompt strict0.9190.891
IFEval instruction strict0.9400.920
IFEval prompt loose0.9340.909
IFEval instruction loose0.9510.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

GPUTopologyTotal GPUsParallelismSpeculative DecodingRuntime image
GB3001 worker8TP8 and EP8 across 2 nodesDSpark (block size 7)Dynamo 1.8.0 with Ergo SGLang runtime
GB3001P1D16TP8 and EP8 across 2 nodes per workerDSpark on both rolesDynamo 1.8.0 with Ergo SGLang runtime
B2001 worker8TP8 and EP8 on 1 nodeDSpark (block size 7)Dynamo 1.8.0 with Ergo SGLang runtime
B2001P1D16TP8 and EP8 on 1 node per workerDSpark on both rolesDynamo 1.8.0 with Ergo SGLang runtime

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