vLLM-Omni Configuration
CLI flag reference for the vLLM-Omni multimodal backend (python -m dynamo.vllm.omni).
The vLLM-Omni backend uses a dedicated entrypoint: python -m dynamo.vllm.omni. This page documents its CLI flags. For deployment guides and per-modality examples, see the Diffusion Overview.
These are the vLLM-Omni orchestration flags. The omni worker also accepts the same underlying vLLM engine arguments and the cross-cutting Dynamo Runtime flags (--namespace, --endpoint, and others).
General Flags
Enable the vLLM-Omni orchestrator (required for all omni workloads).
Output modality the worker registers endpoints for.
Path to stage config YAML (optional; vLLM-Omni uses model defaults if omitted).
MoE expert switching boundary. If omitted, the vLLM-Omni model pipeline selects its default.
Scheduler flow_shift (5.0 for 720p, 12.0 for 480p).
Default frames per second for generated videos.
Model-defined startup task or checkpoint partition.
Disable native model guardrails, such as Cosmos3 guardrails, for an aggregated
Omni worker. The environment equivalent is DYN_OMNI_NO_GUARDRAILS=true.
Omitting the option preserves the model’s guardrail configuration and its
dependency requirements. Standalone stages, the stage router, and realtime
workers reject this option.
Diffusion checkpoint adapter path(s) fused into the model at startup. This is separate from request-time LoRA loading.
Default diffusion attention backend, such as TRTLLM_ATTN, FLASH_ATTN, or
FASTVIDEO_VSA.
Key/value blocks retained per query block by FASTVIDEO_VSA. The value must
be positive; FastH3 VSA starts with 64.
Image Edit Capabilities
Experimental. The maximum number of input images depends on the loaded model, not the model name clients send. Models with unknown metadata accept at most one reference; the model must still support image conditioning.
Use an aggregated Omni worker for image edits. Stage-router deployments reject edit references and continue to support text-to-image generation.
These limits come from vLLM-Omni 0.31.0rc1 registry metadata and may change with the installed version:
Only FLUX.2 Klein 4B has been GPU-qualified for this integration; the other limits come from registry metadata, not GPU testing.
See the Image Edits API for request formats, input budgets, configuration placement, errors, and rolling upgrades.
Memory & Performance
Lossless PNG compression level for generated images, from 0 to 9.
0 disables compression for faster CPU encoding and larger responses;
1 uses fast compression, and 9 uses the strongest compression. The default
6 preserves Pillow’s existing encoding behavior. All levels preserve pixels.
Set DYN_OMNI_IMAGE_PNG_COMPRESSION_LEVEL as an environment alternative;
an explicit CLI value takes precedence. Invalid values fail startup.
Set this on the aggregated worker, or on the --omni-router process in
disaggregated mode. It applies to PNG images returned as base64, stored for
URL responses, or embedded in chat responses. It does not change model
inference or video encoding.
Measure both encoding time and end-to-end latency when tuning this setting: larger payloads can offset CPU savings on slower networks. Compare backends at matched PNG compression levels, and report first-request and warm latency separately from model-loading time.
Enable VAE slicing for memory optimization.
Enable VAE tiling for memory optimization.
Enable layerwise offloading on DiT modules to reduce GPU memory.
This legacy option is no longer supported and causes a configuration error
when set. Remove the flag or unset DYN_OMNI_LAYERWISE_NUM_GPU_LAYERS.
Use --enable-layerwise-offload without a layer-count override to let
vLLM-Omni manage layerwise offloading.
Disable torch.compile for diffusion models.
Enable CPU offloading for diffusion models.
Diffusion Cache
Diffusion cache backend.
Cache configuration as a JSON string (overrides defaults).
Enable cache-dit summary logging after diffusion forward passes.
Parallelism
GPUs for Ulysses sequence parallelism in diffusion.
GPUs for ring sequence parallelism in diffusion.
GPUs for classifier-free guidance parallelism (1 or 2).
Ranks used for VAE patch or tile parallelism.
Tensor-parallel ranks used by the diffusion text encoder.
Disaggregated Mode
See vLLM-Omni Disaggregated Serving for usage.
Run as a single-stage worker for the given stage ID. Requires --stage-configs-path.
Run as the stage router. Requires --stage-configs-path. Mutually exclusive with --stage-id.
Media Storage
Filesystem URL for storing generated media.
Base URL for rewriting media paths in responses (optional).