docs: add general architecture overview
Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
cb3c84094f
commit
d338df2b80
1 file changed
+34
-22
@@ -256,32 +256,44 @@ resources.
|
|||||||
|
|
||||||
## System architecture
|
## System architecture
|
||||||
|
|
||||||
The runtime is organized around an engine, an orchestrator, stage lifecycle
|
The overview below adapts the [general vLLM-Omni architecture
|
||||||
management, and independent AR and diffusion stage implementations.
|
slide](https://docs.google.com/presentation/d/111-L8zF7A1j_YI_cR8JsblofdScdRr2f/edit?slide=id.p17#slide=id.p17)
|
||||||
|
to the current stage-based runtime. It keeps only the main components:
|
||||||
|
entrypoints, the shared `AsyncOmniEngine`, request orchestration, stage
|
||||||
|
lifecycle management, AR and diffusion execution modules, model/layer
|
||||||
|
operations, connector transport, and multimodal outputs. `AsyncOmniEngine` is
|
||||||
|
the composition root between the entrypoints and the orchestrator.
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart TB
|
flowchart TB
|
||||||
entry["Entrypoints<br/>Omni / AsyncOmni / CLI / OpenAI-compatible APIs / duplex WebSocket"]
|
subgraph omni["vLLM-Omni"]
|
||||||
engine["AsyncOmniEngine<br/>engine composition root and background loop"]
|
subgraph entry["Entry points"]
|
||||||
orchestrator["Orchestrator<br/>request state, cross-stage routing, correlation, and output ordering"]
|
api["API server"]
|
||||||
runtime["StageRuntime or DistStageRuntime<br/>placement, replicas, readiness, and lifecycle"]
|
client["Omni / AsyncOmni"]
|
||||||
clients["StagePool and stage clients<br/>StageEngineCoreClient / StageDiffusionClient"]
|
end
|
||||||
ar["AR stages<br/>vLLM engine, scheduler, worker, and model runner"]
|
engine["AsyncOmniEngine<br/>composition root and background loop"]
|
||||||
diffusion["Diffusion stages<br/>DiffusionEngine, scheduler, executor, worker, and pipeline"]
|
orchestrator["Orchestrator<br/>request state and cross-stage routing"]
|
||||||
connector["OmniConnector<br/>payload and KV transport plus synchronization"]
|
runtime["StageRuntime<br/>placement, replicas, readiness, and lifecycle"]
|
||||||
outputs["MultimodalPayload and OmniRequestOutput<br/>tensors, metadata, streaming chunks, and final artifacts"]
|
ar["AR module<br/>vLLM engine, scheduler, cache, executor, worker, and model runner"]
|
||||||
|
diffusion["Diffusion module<br/>scheduler, worker, model runner, and pipeline"]
|
||||||
|
ops["Model / layer / ops<br/>attention, parallelism, and quantization"]
|
||||||
|
connector["OmniConnector<br/>payload and KV transport plus synchronization"]
|
||||||
|
outputs["Multimodal outputs<br/>streaming chunks and final artifacts"]
|
||||||
|
|
||||||
entry --> engine
|
api --> engine
|
||||||
engine --> orchestrator
|
client --> engine
|
||||||
engine --> runtime
|
engine --> orchestrator
|
||||||
runtime --> clients
|
engine --> runtime
|
||||||
clients --> ar
|
orchestrator --> runtime
|
||||||
clients --> diffusion
|
runtime --> ar
|
||||||
ar <--> connector
|
runtime --> diffusion
|
||||||
diffusion <--> connector
|
ar -. uses .-> ops
|
||||||
ar --> outputs
|
diffusion -. uses .-> ops
|
||||||
diffusion --> outputs
|
ar -. transports through .-> connector
|
||||||
outputs --> entry
|
diffusion -. transports through .-> connector
|
||||||
|
ar --> outputs
|
||||||
|
diffusion --> outputs
|
||||||
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
### Key components
|
### Key components
|
||||||
|
|||||||
Reference in new issue
Block a user