Omni-Flow: A Unified Workflow Orchestration and Distributed KV Cache Sharing Framework for Multimodal Inference
Bin Xiao, Jingfu Dong, Changran Wang, Yitian Chen, Xiaoyu Zhao, Yuqi Peng, Jianping Lin, Yuchen Xie
Abstract
Multimodal models increasingly integrate heterogeneous components, from encoders and LLMs to diffusion models and media decoders. Serving these models efficiently requires flexible workflow orchestration, independent component scheduling, and cross-component state sharing. However, existing multimodal frameworks primarily organize execution as stage-level pipelines, while state ownership remains largely stage-local. We present Omni-Flow, a distributed serving framework built around three cooperating abstractions. Control Flow defines workflows through a Python DSL, organizing heterogeneous components and their dependencies into a unified dataflow graph. The runtime uses these dependencies to determine when each component can execute. Data Flow manages the placement, transfer, and lifetime of shared tensors and paged KV caches across roles, together with same-device weight sharing. Compute Flow matches multimodal conversation histories to reuse KV across turns and integrates framework-managed KV and model-specific sampling with SGLang's execution interfaces. Omni-Flow also enables cross-role prefix-KV reuse between compatible LLM and diffusion components. Together, these abstractions separate model-specific computation from workflow coordination and state management, allowing independently executing roles to share compatible resources through a common programming model. Experiments with Qwen3-Omni show that, across four benchmarks and multiple concurrency levels, Omni-Flow's aggregate job completion time (JCT) is 1.2\% and 4.9\% higher than vLLM-Omni's and SGLang-Omni's, respectively. In a 50-turn multimodal session, Omni-Flow avoids resubmitting accumulated inputs through server-side session state, reducing mean JCT by 7.5\% and 19.3\% relative to vLLM-Omni and SGLang-Omni, respectively.
Create a lesson
Metadata
- Comments
- 21 pages
Related papers
[AAFLOW+] Stateful Operator Abstraction with Zero-Copy Distributed KV Cache Orchestration for Multi-Agent Workflows
Shared title terminologycs.DCArup Kumar Sarker, Alexander James Halpern, Mills Staylor et al.
Kamera: Unified Position-Invariant Multimodal KV Cache for Training-Free Reuse
Shared title terminologycs.DCBole Ma, Jan Eitzinger, Harald Koestler et al.
CCAMoE: Cache-Conditioned Adaptive Inference for Offloaded MoE
Shared title terminologycs.DCXuan Zhang, Haisheng Tan, Han Tian et al.
NVFP4-MLA: Unified FP4 KV-Cache Storage and Attention Computation for Multi-Head Latent Attention
Shared title terminologycs.DCChao Ni, Qi Zhang, Xiao Wang et al.
Superfluid: Local AI Server for Distributed LLM Inference
Shared title terminologycs.DCPrabod Rathnayaka, Isura Manchanayake, Srikandabala Kogul et al.
rush: Scalable Asynchronous Distributed Computing via Shared State in R
Shared title terminologycs.DCMarc Becker, Bernd Bischl