The Dynamo Profiler analyzes model inference performance and generates optimized deployment configurations (DynamoGraphDeployments). Given a model, hardware, and SLA targets, it determines the best parallelization strategy, selects optimal prefill and decode engine configurations, and produces a ready-to-deploy DGD YAML.
The profiler accepts a DynamoGraphDeploymentRequestSpec (DGDR) as input and uses AI Configurator (AIC) for performance simulation, candidate enumeration, and configuration picking. When the planner is enabled, the profiler additionally generates engine interpolation curves used for runtime autoscaling.
model)sla.ttft, sla.itl)hardware)backend: auto, vllm, sglang, or trtllm)image)The profiler follows this pipeline:
Validation: The DGDR spec is validated — required fields checked (image, hardware.gpuSku, hardware.numGpusPerNode), SLA targets verified, and gate checks applied (see Gate Checks).
Search Strategy: The profiler branches based on searchStrategy:
Picking: The profiler selects the best configuration using one of three modes, determined automatically from the DGDR spec (see Picking Modes).
DGD Generation: The picked configuration is rendered into a complete DGD YAML via AIC’s generator pipeline, including correct parallelization, replica counts, container image, and PVC mounts.
Interpolation (throughput planner/mocker): When the planner is enabled, the profiler generates detailed performance interpolation curves — TTFT vs ISL for prefill, ITL vs KV-cache utilization for decode. These are stored as NPZ files and later packaged into a ConfigMap during final assembly.
Final Assembly (3 composable layers):
generate_mocker_config). Otherwise the AIC-picked DGD is kept.add_planner_to_config).add_profile_data_to_config).The result is written to final_config.yaml.
Uses AIC’s performance simulation to estimate optimal configurations without deploying real engines. Completes in ~30 seconds.
Enumerates candidate parallelization configs, deploys each as a real K8s workload, and benchmarks with AIPerf.
auto backend — specify vllm, sglang, or trtllmThe profiler automatically selects a picking mode based on the DGDR spec:
Triggered when the planner is enabled (scaling enabled in features.planner). Picks prefill and decode engines independently, each with 1 replica. The planner handles scaling at runtime.
Triggered when a target load is specified (workload.requestRate or workload.concurrency). Finds the configuration that serves the target load with the minimum number of GPUs under SLA.
Triggered when there is no planner and no target load. Maximizes throughput for the available GPU budget under SLA.
When the planner is enabled, the profiler generates engine interpolation data needed for throughput-based autoscaling. The pre_deployment_sweeping_mode field controls how this data is produced:
The profiler saves two ConfigMaps into the generated DGD:
PlannerConfig JSON (with profile_results_dir pointing to the profiling data mount)See the Planner Guide for the full PlannerConfig reference.
When features.mocker.enabled: true, the profiler outputs a mocker DGD that simulates engine behavior without real GPUs. This is useful for testing planner behavior and validating configurations at scale.
Mocker requires pre-deployment sweeping to generate simulated performance profiles — pre_deployment_sweeping_mode cannot be none when mocker is enabled.
The profiler enforces these rules at startup:
The profiler sweeps over the following parallelization mappings for prefill and decode:
Exact model x parallelization mapping support is dependent on the backend. The profiler does not guarantee that the recommended P/D engine configuration is supported and bug-free by the backend.
The recommended deployment method is through DGDRs. Sample configurations are provided in components/src/dynamo/profiler/deploy/:
Each DGDR requires a container image for profiling and deployment:
image (Optional): Container image for the profiling job. Must contain the profiler code and dependencies.Step 1: Create Your DGDR
Use a sample configuration or create your own:
Step 2: Apply the DGDR
Step 3: Monitor Progress
DGDR Status Phases:
Pending: Initial state, preparing to profileProfiling: Running profiling job (20-30 seconds for AIC, 2-4 hours for online)Ready: Profiling complete, generated DGD spec available in statusDeploying: Generating and applying DGD configurationDeployed: DGD successfully deployed and runningFailed: Error occurred (check events for details)Step 4: Access Your Deployment
DGDRs are immutable. To update SLAs or configuration, delete the existing DGDR and create a new one.
The profiler follows a 5-step process:
attention_dp_size × attn_dp_num_req_ratio (defaults to 4) and compute the reported TTFT as time_to_first_token.max / attn_dp_num_req_ratio from the AIPerf summary of that burst.


Profiles your model by creating real test deployments in Kubernetes and measuring their performance.
AIPerf-based profiling is the default behavior. Use searchStrategy: thorough for comprehensive real-engine profiling:
Uses performance simulation to rapidly estimate optimal configurations without running real deployments.
AI Configurator is used by default with searchStrategy: rapid:
aicBackendVersion specifies the TensorRT-LLM version that AI Configurator simulates. See the AI Configurator supported features for available versions.
Currently supports:
See AI Configurator documentation for the full list.
The operator automatically discovers GPU resources from cluster nodes, providing hardware info (GPU model, VRAM, GPUs per node) and automatic profiling search space calculation.
Requirements:
For namespace-scoped operators, GPU discovery is controlled by a Helm value:
If GPU discovery is disabled, provide hardware config manually in the DGDR:
If GPU discovery is disabled and no manual hardware config is provided, the DGDR will be rejected at admission time.
All profiler configuration is provided through the v1beta1 DGDR spec fields:
If you don’t specify hardware constraints, the controller auto-detects based on your model size and available cluster resources.
Controls the profiling search depth:
Pass arguments to the SLA planner via the features section:
Planner arguments use planner_ prefix. See SLA Planner documentation for full list.
For large models, use a pre-populated PVC containing model weights instead of downloading from HuggingFace:
Requirements:
{mountPath}/{pvcPath}The controller automatically handles model and backend configuration from high-level fields:
You should not manually set model or backend in profiling config overrides.
Provide a base DGD config via the overrides section:
The profiler uses the DGD config as a base template, then optimizes it based on your SLA targets.
The Profiler generates interpolation data that the SLA Planner uses for autoscaling decisions.
Prefill Interpolation (selected_prefill_interpolation/raw_data.npz):
prefill_isl: 1D array of input sequence lengths testedprefill_ttft: 1D array of TTFTs (ms) at each ISLprefill_thpt_per_gpu: 1D array of throughput (tokens/s/GPU) at each ISLDecode Interpolation (selected_decode_interpolation/raw_data.npz):
max_kv_tokens: Total KV tokens capacity in decode enginex_kv_usage: 1D array of active KV usage percentages [0, 1]y_context_length: 1D array of average context lengths testedz_itl: 1D array of ITLs (ms) at each (KV usage, context length) pointz_thpt_per_gpu: 1D array of throughput (tokens/s/GPU) at each pointWhen using DGDR, the Dynamo Operator:
planner-profile-data)The generated DGD is tracked via labels:
Monitor profiling jobs:
Disable auto-deployment to review the generated DGD before applying:
Then manually extract and apply:
Deploy a mocker deployment that simulates engines without GPUs:
Profiling still runs against the real backend to collect performance data. The mocker uses this data to simulate realistic timing behavior. Useful for large-scale experiments, testing Planner behavior, and validating configurations.
By default, profiling data is stored in ConfigMaps. For detailed artifacts (plots, logs, raw data), attach a PVC via overrides:
ConfigMaps (always created):
dgdr-output-<name>: Generated DGD configurationplanner-profile-data: Profiling data for Planner (JSON)PVC artifacts (optional):
.npz files)Access PVC results:
The profiler generates plots to visualize performance data:
Parallelization Mapping Sweep Plots:
prefill_performance.png: TTFT vs Parallelization Mapping sizedecode_performance.png: ITL vs Parallelization Mapping size and in-flight requestsIn-Depth Profiling Plots:
selected_prefill_interpolation/prefill_ttft_interpolation.png: TTFT vs ISLselected_prefill_interpolation/prefill_throughput_interpolation.png: Throughput vs ISLselected_decode_interpolation/decode_itl_interplation.png: ITL vs KV usage and context lengthselected_decode_interpolation/decode_throughput_interpolation.png: Throughput vs KV usage and context lengthSGLang workers expose profiling endpoints for runtime performance analysis:
View traces using Chrome’s chrome://tracing, Perfetto UI, or TensorBoard.
The profiler logs a warning and updates the SLA to the best achievable value. To improve results:
searchStrategy: rapid for ~30s profilingmax_batch_size in engine configEnsure image pull secrets are configured in your namespace for the container registry.