Complete examples for profiling with DGDRs.
Fast profiling (~30 seconds):
Profiling with real GPU measurements:
Multi-node MoE profiling with SGLang:
The PVC referenced by modelCache.pvcName must already exist in the same namespace and contain
the model weights at the specified pvcModelPath. The DGDR controller does not create or
populate the PVC — it only mounts it into the profiling job and deployed workers.
For gated or private HuggingFace models, pass your token via an environment variable injected into the profiling job. Create the secret first:
Then reference it in your DGDR:
Control how the profiler optimizes your deployment by specifying latency targets and workload characteristics.
Explicit TTFT + ITL targets (default mode):
End-to-end latency target (alternative to ttft+itl):
Optimization objective without explicit targets (maximize throughput or minimize latency):
Use overrides to customize the profiling job pod spec — for example to add tolerations for
GPU node taints or inject environment variables.
GPU node toleration (common on GKE and shared clusters):
Override the generated DynamoGraphDeployment (e.g., to use a custom worker image):
Profile SGLang workers at runtime via HTTP endpoints:
A test script is provided at examples/backends/sglang/test_sglang_profile.py:
View traces using Chrome’s chrome://tracing, Perfetto UI, or TensorBoard.