RepoInclusionAI (Ant Group)InclusionAI (Ant Group)published Nov 6, 2026seen 2w

inclusionAI/Duo

Python

Open original ↗

Captured source

source ↗
published Nov 6, 2026seen 2wcaptured 2whttp 200method plain

inclusionAI/Duo

Description: Duo: A Reciprocal World Model for Full-Duplex Interaction

Language: Python

License: Apache-2.0

Stars: 38

Forks: 2

Open issues: 0

Created: 2026-11-06T10:42:15Z

Pushed: 2026-11-13T13:22:08Z

Default branch: main

Fork: no

Archived: no

README:

Duo v1 is a Reciprocal World Model that treats intelligence and physical reality as equally fundamental to a world. It continuously perceives audiovisual inputs while responding in real time, enabling spontaneous conversations and interruptions. This preview release currently supports basic audiovisual conversation, with an updated version coming soon. The main branch provides an offline pipeline for research, while the `inference/vllm-omni-duo` and `inference/sglang-omni-duo` branches provide accelerated online real-time streaming pipelines.

🔥 News

✨ Architecture

![Duo v1 architecture with Intent and Realization modules](./assets/duo-architecture.png)

Duo introduces three key technical designs:

  • Leveraging autoregressive modeling for continuous interaction reasoning and participation decisions, rather than restricting it to instruction understanding for diffusion models.
  • Constructing chunk-specific conditions and synchronizing tokens across Intent and Realization on a unified timeline. Module-specific attention masks enforce causal dependencies both within and across chunks, preventing access to future inputs.
  • Mitigating distribution shift in both modules through dual rollout distillation, training on autoregressively generated Intent tokens and synthesized audiovisual histories from Realization.

Duo v1 is a preview release for researchers. In the offline pipeline below, user video and ASR text pass through Intent, which guides Realization via intent states. Duo v2 is coming soon and will enable visual interaction by conditioning Realization directly on user audio and video.

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

See [Architecture](docs/architecture.md) for the causal visibility and clean commitment contract.

📦 Model Releases

| Version | Causal base | Distilled | Quantized | Features / Notes | | --- | --- | --- | --- | --- | | v1.0 | Duo-1.0-causal-base | Duo-1.0-distill | Duo-1.0-distill-quant | Basic full-duplex realtime audio-visual conversation. | | v1.2 | Duo-1.2-causal-base | Coming soon | Coming soon | Quality improvements. | | v2.0 | Coming soon | Coming soon | Coming soon | Visual interaction. |

🛠️ Requirements

  • Linux and Python 3.10 or newer
  • FFmpeg and FFprobe on PATH
  • CUDA GPUs x2. the default offline configuration assigns one to Intent/codecs and one to Realization
  • enough GPU memory for the selected released checkpoints
  • The reference offline deployment uses separate model and speech environments because qwen-asr pins its own compatible Transformers version.

🚀 Installation

Clone the repository and create the model environment:

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

Create the speech environment:

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

The CUDA build tag matters in addition to the package version. Install PyTorch from the index matching the host driver before the editable install. Pip will keep a compatible already-installed build. Optional optimized attention kernels can be installed for the target GPU. sdpa is the portable default.

🤗 Download Checkpoints

Download the complete Duo-1.2-causal-base bundle. It already contains every model needed by offline inference, including speech recognition and forced alignment:

hf download inclusionAI/Duo-1.2-causal-base --local-dir weights

To run the 1.0 distilled or quantized Realization, first download the 1.0 causal bundle and then overlay the selected Realization weights onto the same directory:

hf download inclusionAI/Duo-1.0-causal-base --local-dir weights
hf download inclusionAI/Duo-1.0-distill --local-dir weights
# Or: hf download inclusionAI/Duo-1.0-distill-quant --local-dir weights

To store the bundle elsewhere, change --local-dir and update the model paths in configs/inference.json. The complete directory layout is:

weights/
├── realization/
│ ├── complete.json
│ ├── dcp/
│ │ ├── .metadata
│ │ └── *.distcp
│ └── backbone/ # when referenced by complete.json
├── intent/ # base Intent processor and model
├── intent_adapter/ # Intent tokenizer and adapter
│ └── protocol_manifest.json
├── codec/
│ ├── video_vae/model.safetensors
│ └── audio_vae/diffusion_pytorch_model.safetensors
└── speech/
├── recognizer/
└── forced-aligner/

Excerpt shown — open the source for the full document.