dynamo/components
Yan Ru Pei 1995ef9aee
docs: change docs to default port 8000 (#2876)
Signed-off-by: PeaBrane <yanrpei@gmail.com>
2025-09-05 01:16:53 +00:00
..
backends docs: change docs to default port 8000 (#2876) 2025-09-05 01:16:53 +00:00
frontend docs: change docs to default port 8000 (#2876) 2025-09-05 01:16:53 +00:00
metrics chore: Rust to 1.89 and edition 2024 (#2659) 2025-08-22 16:17:15 -07:00
planner chore: many bug fixes and improvements when testing planner (#2776) 2025-09-02 17:05:50 -07:00
README.md feat: python bindings for the entire KvPushRouter + per-request router configs (#2658) 2025-08-25 22:27:10 +00:00

README.md

Dynamo Components

This directory contains the core components that make up the Dynamo inference framework. Each component serves a specific role in the distributed LLM serving architecture, enabling high-throughput, low-latency inference across multiple nodes and GPUs.

Supported Inference Engines

Dynamo supports multiple inference engines (with a focus on SGLang, vLLM, and TensorRT-LLM), each with their own deployment configurations and capabilities:

  • vLLM - High-performance LLM inference with native KV cache events and NIXL-based transfer mechanisms
  • SGLang - Structured generation language framework with ZMQ-based communication
  • TensorRT-LLM - NVIDIA's optimized LLM inference engine with TensorRT acceleration

Each engine provides launch scripts for different deployment patterns in their respective /launch & /deploy directories.

Core Components

Backends

The backends directory contains inference engine integrations and implementations, with a key focus on:

  • vLLM - Full-featured vLLM integration with disaggregated serving, KV-aware routing, and SLA-based planning
  • SGLang - SGLang engine integration supporting disaggregated serving and KV-aware routing
  • TensorRT-LLM - TensorRT-LLM integration with disaggregated serving capabilities

Frontend

The frontend component provides the HTTP API layer and request processing:

  • OpenAI-compatible HTTP server - RESTful API endpoint for LLM inference requests
  • Pre-processor - Handles request preprocessing and validation
  • Router - Routes requests to appropriate workers based on load and KV cache state
  • Auto-discovery - Automatically discovers and registers available workers

Planner

The planner component monitors system state and dynamically adjusts worker allocation:

  • Dynamic scaling - Scales prefill/decode workers up and down based on metrics
  • SLA-based planning - Ensures inference performance targets are met
  • Load-based planning - Optimizes resource utilization based on demand

Getting Started

To get started with Dynamo components:

  1. Choose an inference engine from the supported backends
  2. Set up required services (etcd and NATS) using Docker Compose
  3. Configure your chosen engine using Python wheels or building an image
  4. Run deployment scripts from the engine's launch directory
  5. Monitor performance using the metrics component

For detailed instructions, see the README files in each component directory and the main Dynamo documentation.