Ant Group's inclusionAI Open-Sources Full-Duplex World Model Duo

By inclusionAIOriginal title: ⭐ inclusionAI/Duo (258 stars)
74AI Score

inclusionAI has released Duo v1, a preview Reciprocal World Model that treats intelligence and physical reality as equally fundamental, continuously perceiving audiovisual input and responding in real time with spontaneous conversation and interruptions. The project ships an offline research pipeline plus accelerated streaming inference branches built on vLLM-Omni and SGLang-Omni, backed by an arXiv paper.

Full Report

Contents5 sections

Duo:面向全双工交互的互惠世界模型 vLLM-Omni · SGLang-Omni

Duo v1 是一个互惠世界模型(Reciprocal World Model),它将智能与物理现实视为世界中同等基础的存在。它持续感知视听输入,同时实时作出响应,从而支持自然对话与打断。本次预览版本目前支持基础的视听对话,更新版本即将发布。main 分支提供用于研究的离线流水线,而 inference/vllm-omni-duo 和 inference/sglang-omni-duo 分支则提供加速的在线实时流式流水线。

🔥 最新动态

✨ 架构

Duo v1 架构,包含 Intent 与 Realization 模块

Duo 引入了三项关键技术设计:

  • 利用自回归建模进行连续交互推理与参与决策,而非将其局限于扩散模型的指令理解。
  • 构建分块特定的条件,并在统一时间线上同步 Intent 与 Realization 的 token。模块特定的注意力掩码在块内和块间强制执行因果依赖,防止访问未来输入。
  • 通过双重 rollout 蒸馏缓解两个模块中的分布偏移,在自回归生成的 Intent token 和由 Realization 合成的视听历史记录上进行训练。

Duo v1 是面向研究人员的预览版本。在下面的离线流水线中,用户视频和 ASR 文本经过 Intent,Intent 通过意图状态引导 Realization。Duo v2 即将推出,它将通过直接以用户音频和视频为条件来驱动 Realization,从而实现视觉交互。

TEXT
completed user recording
    │
    ├─ Qwen3-ASR + forced alignment ─ user video/text chunks
    │                                      │
    └──────────────────────────────────── Intent
                                           │ intent states
                                           ▼
                                      Realization
                                           │ assistant media latents
                                           ▼
                                  streaming media codecs
                                           │
                                           ▼
                                  browser playback and API

有关因果可见性和干净提交契约,请参阅 Architecture。

📦 模型发布

版本因果基础模型蒸馏版量化版特性 / 说明
v1.0Duo-1.0-causal-baseDuo-1.0-distillDuo-1.0-distill-quant基础的全双工实时音视频对话。
v1.2Duo-1.2-causal-base即将推出即将推出质量改进。
v2.0即将推出即将推出即将推出视觉交互。

🛠️ 环境要求

  • Linux 及 Python 3.10 或更高版本
  • PATH 中已配置 FFmpeg 和 FFprobe
  • 两块 CUDA GPU。默认离线配置将其中一块分配给 Intent/codecs,另一块分配给 Realization
  • 为所选已发布 checkpoint 预留足够的 GPU 显存
  • 参考离线部署将模型环境与语音环境分开,因为 qwen-asr 固定依赖其自身兼容的 Transformers 版本。

🚀 安装

克隆仓库并创建模型环境:

BASH
git clone https://github.com/inclusionAI/Duo.git
cd Duo
python -m venv .venv-model
source .venv-model/bin/activate
pip install --upgrade pip
# Install the PyTorch, TorchAudio, and TorchVision wheels matching your CUDA driver.
pip install -e '.[realization]'
deactivate

创建语音环境:

BASH
python -m venv .venv-speech
source .venv-speech/bin/activate
pip install --upgrade pip
# Install the PyTorch wheel matching your CUDA driver.
pip install -e '.[speech]'
deactivate

除包版本外,CUDA 构建标签同样重要。在执行可编辑安装之前,请从与主机驱动匹配的索引安装 PyTorch。Pip 会保留已安装的兼容构建。可为目标 GPU 安装可选的优化注意力内核。sdpa 是可移植的默认选项。

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)