You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fall back to aggregated mode when prefill workers unavailable
AIC Prefill Load Model
These options are used only when --router-mode kv is combined with --router-prefill-load-model aic.
CLI Argument
Env Var
Default
Description
--aic-backend
DYN_AIC_BACKEND
—
Backend family to model in AIC, for example vllm or sglang
--aic-system
DYN_AIC_SYSTEM
—
AIC hardware/system identifier, for example h200_sxm
--aic-model-path
DYN_AIC_MODEL_PATH
—
Model path or model identifier used for AIC perf lookup
--aic-backend-version
DYN_AIC_BACKEND_VERSION
backend-specific
Pinned AIC database version. If omitted, Dynamo uses the backend default
--aic-tp-size
DYN_AIC_TP_SIZE
1
Tensor-parallel size to model in AIC
--aic-moe-tp-size
DYN_AIC_MOE_TP_SIZE
—
MoE tensor-parallel size for models that require AIC MoE parallelism
--aic-moe-ep-size
DYN_AIC_MOE_EP_SIZE
—
MoE expert-parallel size for models that require AIC MoE parallelism
--aic-attention-dp-size
DYN_AIC_ATTENTION_DP_SIZE
—
Attention data-parallel size for models that require AIC MoE parallelism
When enabled, the frontend's embedded KV router predicts one expected prefill duration per admitted request, using the selected worker's overlap-derived cached prefix. The router then decays only the oldest active prefill request on each worker for prompt-side load accounting.
For MoE models, AIC requires aic_tp_size * aic_attention_dp_size == aic_moe_tp_size * aic_moe_ep_size. For Kimi-style TP-only MoE runs, set --aic-moe-tp-size to the same value as --aic-tp-size, with --aic-moe-ep-size 1 and --aic-attention-dp-size 1.
Fault Tolerance
CLI Argument
Env Var
Default
Description
--migration-limit
DYN_MIGRATION_LIMIT
0
Max request migrations per worker disconnect. 0 = disabled
--active-decode-blocks-threshold
DYN_ACTIVE_DECODE_BLOCKS_THRESHOLD
1.0
KV cache utilization fraction (0.0–1.0) for busy detection. Pass None to disable
--active-prefill-tokens-threshold
DYN_ACTIVE_PREFILL_TOKENS_THRESHOLD
10000000
Absolute token count for prefill busy detection. Pass None to disable
--active-prefill-tokens-threshold-frac
DYN_ACTIVE_PREFILL_TOKENS_THRESHOLD_FRAC
64.0
Fraction of max_num_batched_tokens for prefill busy detection. OR logic with absolute threshold. Pass None to disable
--admission-control
DYN_ADMISSION_CONTROL
none
Admission control mode. token-capacity applies the busy thresholds above; none clears them. Router queueing remains controlled by --router-queue-threshold
Model Discovery
CLI Argument
Env Var
Default
Description
--namespace
DYN_NAMESPACE
—
Exact namespace for model discovery scoping
--namespace-prefix
DYN_NAMESPACE_PREFIX
—
Namespace prefix for discovery (e.g., ns matches ns, ns-abc123). Takes precedence over --namespace
--model-name
DYN_MODEL_NAME
—
Override model name string
--model-path
DYN_MODEL_PATH
—
Path to local model directory (for private/custom models)
--kv-cache-block-size
DYN_KV_CACHE_BLOCK_SIZE
—
KV cache block size override
Infrastructure
CLI Argument
Env Var
Default
Description
--discovery-backend
DYN_DISCOVERY_BACKEND
etcd
Service discovery: kubernetes, etcd, file, mem
--request-plane
DYN_REQUEST_PLANE
tcp
Request distribution: tcp (fastest), nats
--event-plane
DYN_EVENT_PLANE
auto
Event publishing: nats, zmq; defaults to zmq for file/mem discovery and nats for etcd/kubernetes
KServe gRPC
CLI Argument
Env Var
Default
Description
--kserve-grpc-server / --no-kserve-grpc-server
DYN_KSERVE_GRPC_SERVER
false
Start KServe gRPC v2 server
--grpc-metrics-port
DYN_GRPC_METRICS_PORT
8788
HTTP metrics port for gRPC service
See the Frontend Guide for KServe message formats and integration details.
Monitoring
CLI Argument
Env Var
Default
Description
--metrics-prefix
DYN_METRICS_PREFIX
dynamo_frontend
Prefix for frontend Prometheus metrics
--dump-config-to
DYN_DUMP_CONFIG_TO
—
Dump resolved config to file path
Tokenizer
CLI Argument
Env Var
Default
Description
--tokenizer
DYN_TOKENIZER
default
Tokenizer: default (HuggingFace) or fastokens (high-performance Rust tokenizer). See Tokenizer
Experimental
CLI Argument
Env Var
Default
Description
--enable-anthropic-api
DYN_ENABLE_ANTHROPIC_API
false
Enable /v1/messages (Anthropic Messages API)
--dyn-chat-processor
DYN_CHAT_PROCESSOR
dynamo
Chat processor: dynamo (default), vllm, or sglang. See Parser Configuration for how this combines with the parser flags.
--dyn-debug-perf
DYN_DEBUG_PERF
false
Log per-function timing for preprocessing (vllm processor only)
--dyn-preprocess-workers
DYN_PREPROCESS_WORKERS
0
Worker processes for CPU-bound preprocessing. 0 = main event loop (vllm processor only)
-i / --interactive
DYN_INTERACTIVE
false
Interactive text chat mode
HTTP Endpoints
The frontend exposes the following HTTP endpoints:
OpenAI-Compatible
Method
Path
Description
POST
/v1/chat/completions
Chat completions (streaming and non-streaming)
POST
/v1/completions
Text completions
POST
/v1/embeddings
Text embeddings
POST
/v1/responses
Responses API
POST
/v1/images/generations
Image generation
POST
/v1/videos/generations
Video generation
POST
/v1/videos/generations/stream
Video generation (streaming)
GET
/v1/models
List available models
Anthropic (Experimental)
Method
Path
Description
POST
/v1/messages
Anthropic Messages API (requires --enable-anthropic-api)
POST
/v1/messages/count_tokens
Token counting for Anthropic API
Infrastructure
Method
Path
Description
GET
/health
Health check
GET
/live
Liveness check
GET
/metrics
Prometheus metrics
GET
/openapi.json
OpenAPI specification
GET
/docs
Swagger UI
POST
/busy_threshold
Set busy thresholds (gated by DYN_ENABLE_FRONTEND_ADMIN_API, see below)
GET
/busy_threshold
Get current busy thresholds (gated by DYN_ENABLE_FRONTEND_ADMIN_API, see below)
Frontend feature switches
Environment variables controlling frontend extensions. Extensions are enabled by default. When deploying, consider whether each is needed for your use case; if not, disable it to prevent accidental abuse.
Set an env value of 0 / false / no / off (case-insensitive) to disable.
Env Var
Default
Behavior when false
DYN_ENABLE_FRONTEND_NVEXT
true
Frontend drops request.nvext at handler entry on /v1/chat/completions, /v1/completions, /v1/responses, and /v1/embeddings; ignores routing-override headers (x-worker-instance-id, x-prefill-instance-id, x-dp-rank, x-data-parallel-rank, x-prefill-dp-rank); silently ignores the response-side nvext.extra_fields opt-in. Note: disabling this breaks EPP / GAIE serving, Prime-RL-style training that uses nvext.cache_salt, multi-tenant agent platforms that forward nvext.agent_hints / nvext.agent_context, and clients that opt into response disclosure via nvext.extra_fields.
DYN_ENABLE_FRONTEND_ADMIN_API
true
GET /busy_threshold and POST /busy_threshold are not registered (404 instead of 503). Inference, metrics, models, health, and liveness routes are unaffected.
Endpoint Path Customization
All endpoint paths can be overridden via environment variables: