[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114692":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":30,"discoverSource":31},114692,"Duo","inclusionAI\u002FDuo","inclusionAI","Duo: A Reciprocal World Model for Full-Duplex Interaction","",null,"Python",217,20,2,1,0,16,135,153,83,93.97,"Apache License 2.0",false,"main",[],"2026-11-18 14:31:59","2026-11-23 19:28:45","\u003Cdiv align=\"center\">\n\n  \u003Cimg src=\".\u002Fassets\u002Fduo-logo.svg\" width=\"38%\" alt=\"Duo\" \u002F>\n\n# Duo: A Reciprocal World Model for Full-Duplex Interaction\n\n[![Homepage](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-Homepage-0A66C2?logo=googlechrome&logoColor=white&labelColor=555)](https:\u002F\u002Fduo-v1.github.io\u002F)\n[![arXiv](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv-2611.15131-B31B1B?logo=arxiv&logoColor=white&labelColor=555)](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.15131)\n[![Hugging Face](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-Hugging%20Face-FFD21E?logo=huggingface&logoColor=white&labelColor=555)](https:\u002F\u002Fhuggingface.co\u002Fcollections\u002FinclusionAI\u002Fduo-v1)\n[![ModelScope](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-ModelScope-624AFF?logo=modelscope&logoColor=white&labelColor=555)](https:\u002F\u002Fwww.modelscope.cn\u002Fcollections\u002FinclusionAI\u002FDuo-v1)\n[![GitHub](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-GitHub-181717?logo=github&logoColor=white&labelColor=555)](https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo)\n[![Technical Report](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F-TechReport-526A78?logo=readthedocs&logoColor=white&labelColor=555)](https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo\u002Fblob\u002Fmain\u002Fassets\u002FDuo_Technical_Report.pdf)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache%202.0-blue?logo=apache&logoColor=white&labelColor=555)](https:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0)\n[![Python](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPython-3.10%2B-3776AB?logo=python&logoColor=white&labelColor=555)](https:\u002F\u002Fwww.python.org\u002Fdownloads\u002F)\n\n[vLLM-Omni](https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo\u002Ftree\u002Finference\u002Fvllm-omni-duo) · [SGLang-Omni](https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo\u002Ftree\u002Finference\u002Fsglang-omni-duo)\n\n\u003C\u002Fdiv>\n\n**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\u002Fvllm-omni-duo`](https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo\u002Ftree\u002Finference\u002Fvllm-omni-duo) and [`inference\u002Fsglang-omni-duo`](https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo\u002Ftree\u002Finference\u002Fsglang-omni-duo) branches provide accelerated online real-time streaming pipelines.\n\n## 🔥 News\n\n- `2026\u002F11\u002F13`: Publish the [Duo paper on arXiv](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.15131), introducing the Reciprocal World Model and our first implementation for full-duplex audiovisual interaction.\n- `2026\u002F11\u002F13`: Release the [vLLM-Omni](https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo\u002Ftree\u002Finference\u002Fvllm-omni-duo) (Recommended) and [SGLang-Omni](https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo\u002Ftree\u002Finference\u002Fsglang-omni-duo) streaming pipelines for accelerated, online full-duplex deployment.\n- `2026\u002F11\u002F13`: Release **Duo v1** with [Duo-1.0 causal](https:\u002F\u002Fhuggingface.co\u002FinclusionAI\u002FDuo-1.0-causal-base), [distilled](https:\u002F\u002Fhuggingface.co\u002FinclusionAI\u002FDuo-1.0-distill), [quantized](https:\u002F\u002Fhuggingface.co\u002FinclusionAI\u002FDuo-1.0-distill-quant), and [Duo-1.2 causal](https:\u002F\u002Fhuggingface.co\u002FinclusionAI\u002FDuo-1.2-causal-base) model weights, plus [offline inference code](https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo\u002Ftree\u002Fmain) for research.\n\n## ✨ Architecture\n\n![Duo v1 architecture with Intent and Realization modules](.\u002Fassets\u002Fduo-architecture.png)\n\n**Duo introduces three key technical designs:**\n\n- Leveraging autoregressive modeling for continuous interaction reasoning and participation decisions, rather than restricting it to instruction understanding for diffusion models. \n- 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.\n- Mitigating distribution shift in both modules through dual rollout distillation, training on autoregressively generated Intent tokens and synthesized audiovisual histories from Realization.\n\nDuo 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. \n\n```text\ncompleted user recording\n    │\n    ├─ Qwen3-ASR + forced alignment ─ user video\u002Ftext chunks\n    │                                      │\n    └──────────────────────────────────── Intent\n                                           │ intent states\n                                           ▼\n                                      Realization\n                                           │ assistant media latents\n                                           ▼\n                                  streaming media codecs\n                                           │\n                                           ▼\n                                  browser playback and API\n```\n\nSee [Architecture](docs\u002Farchitecture.md) for the causal visibility and clean commitment contract.\n\n## 📦 Model Releases\n\n| Version | Causal base | Distilled | Quantized | Features \u002F Notes |\n| --- | --- | --- | --- | --- |\n| v1.0 | [Duo-1.0-causal-base](https:\u002F\u002Fhuggingface.co\u002FinclusionAI\u002FDuo-1.0-causal-base) | [Duo-1.0-distill](https:\u002F\u002Fhuggingface.co\u002FinclusionAI\u002FDuo-1.0-distill) | [Duo-1.0-distill-quant](https:\u002F\u002Fhuggingface.co\u002FinclusionAI\u002FDuo-1.0-distill-quant) | Basic full-duplex realtime audio-visual conversation. |\n| v1.2 | [Duo-1.2-causal-base](https:\u002F\u002Fhuggingface.co\u002FinclusionAI\u002FDuo-1.2-causal-base) | Coming soon | Coming soon | Quality improvements. |\n| v2.0 | Coming soon | Coming soon | Coming soon | Visual interaction. |\n\n\n## 🛠️ Requirements\n\n- Linux and Python 3.10 or newer\n- FFmpeg and FFprobe on `PATH`\n- CUDA GPUs x2. the default offline configuration assigns one to Intent\u002Fcodecs and one to Realization\n- enough GPU memory for the selected released checkpoints\n- The reference offline deployment uses separate model and speech environments because `qwen-asr` pins its own compatible Transformers version.\n\n## 🚀 Installation\n\nClone the repository and create the model environment:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo.git\ncd Duo\npython -m venv .venv-model\nsource .venv-model\u002Fbin\u002Factivate\npip install --upgrade pip\n# Install the PyTorch, TorchAudio, and TorchVision wheels matching your CUDA driver.\npip install -e '.[realization]'\ndeactivate\n```\n\nCreate the speech environment:\n\n```bash\npython -m venv .venv-speech\nsource .venv-speech\u002Fbin\u002Factivate\npip install --upgrade pip\n# Install the PyTorch wheel matching your CUDA driver.\npip install -e '.[speech]'\ndeactivate\n```\n\nThe 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.\n\n## 🤗 Download Checkpoints\n\nDownload the complete [Duo-1.2-causal-base](https:\u002F\u002Fhuggingface.co\u002FinclusionAI\u002FDuo-1.2-causal-base) bundle. It already contains every model needed by offline inference, including speech recognition and forced alignment:\n\n```bash\nhf download inclusionAI\u002FDuo-1.2-causal-base --local-dir weights\n```\n\nTo 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:\n\n```bash\nhf download inclusionAI\u002FDuo-1.0-causal-base --local-dir weights\nhf download inclusionAI\u002FDuo-1.0-distill --local-dir weights\n# Or: hf download inclusionAI\u002FDuo-1.0-distill-quant --local-dir weights\n```\n\nTo store the bundle elsewhere, change `--local-dir` and update the model paths in `configs\u002Finference.json`. A DCP-based bundle has this directory layout:\n\n```text\nweights\u002F\n├── realization\u002F\n│   ├── complete.json\n│   ├── dcp\u002F\n│   │   ├── .metadata\n│   │   └── *.distcp\n│   └── backbone\u002F                 # when referenced by complete.json\n├── intent\u002F                       # base Intent processor and model\n├── intent_adapter\u002F               # Intent tokenizer and adapter\n│   └── protocol_manifest.json\n├── codec\u002F\n│   ├── video_vae\u002Fmodel.safetensors\n│   └── audio_vae\u002Fdiffusion_pytorch_model.safetensors\n└── speech\u002F\n    ├── recognizer\u002F\n    └── forced-aligner\u002F\n```\n\n**Updating an existing DCP download.** If the offline runtime reports `Realization checkpoint file is missing: dcp\u002F.metadata`, download the updated `realization\u002Fdcp\u002F.metadata` and `realization\u002Fcomplete.json` from the same model on Hugging Face or ModelScope. Copy both files into their original paths in your local bundle, keeping the existing `*.distcp` shards. The leading dot makes `.metadata` hidden in some file browsers. This update applies to Duo-1.2-causal-base, Duo-1.0-causal-base, and Duo-1.0-distill. [See issue #1](https:\u002F\u002Fgithub.com\u002FinclusionAI\u002FDuo\u002Fissues\u002F1).\n\nThe runtime reads every weight locally and does not download models at startup. Keep `realization_family` set to `auto`; the manifest selects `student` for causal checkpoints and `realization` for distilled checkpoints. Release manifests also select the validated sampler defaults: 50 Euler steps with flow shift 1.0 for causal-base, and 4 Euler steps with flow shift 5.0 for distilled models. The quantized release is dequantized by the portable offline runtime; optimized FP8 execution is provided by the dedicated serving branches.\n\n## 🎮 Run the Offline Demo\n\nCopy and edit the example configuration:\n\n```bash\ncp configs\u002Finference.example.json configs\u002Finference.json\n```\n\nSet the three Python executables in `configs\u002Finference.json`. A typical setup is:\n\n```json\n{\n  \"executables\": {\n    \"realization_python\": \".venv-model\u002Fbin\u002Fpython\",\n    \"intent_python\": \".venv-model\u002Fbin\u002Fpython\",\n    \"speech_python\": \".venv-speech\u002Fbin\u002Fpython\",\n    \"ffmpeg\": \"ffmpeg\",\n    \"ffprobe\": \"ffprobe\"\n  }\n}\n```\n\nSet the local model directories in the same file. Absolute paths are accepted:\n\n```json\n{\n  \"weights\": {\n    \"realization\": \"\u002Fmodels\u002Fduo\u002Frealization\",\n    \"realization_family\": \"auto\",\n    \"intent\": \"\u002Fmodels\u002Fduo\u002Fintent\",\n    \"intent_adapter\": \"\u002Fmodels\u002Fduo\u002Fintent_adapter\",\n    \"intent_protocol\": \"\u002Fmodels\u002Fduo\u002Fintent_adapter\u002Fprotocol_manifest.json\",\n    \"codec\": \"\u002Fmodels\u002Fduo\u002Fcodec\",\n    \"speech_recognizer\": \"\u002Fmodels\u002Fspeech\u002Frecognizer\",\n    \"forced_aligner\": \"\u002Fmodels\u002Fspeech\u002Fforced-aligner\"\n  }\n}\n```\n\nLaunch the demo with your configuration:\n\n```bash\n.venv-model\u002Fbin\u002Fpython run_demo.py --config configs\u002Finference.json --port 4173\n```\n\nOpen \u003Chttp:\u002F\u002F127.0.0.1:4173\u002Fvideo\u002Findex.html>, then record or upload an MP4\u002FWebM video to generate and play Duo's audiovisual response. If you deploy behind a reverse proxy, set `DUO_PUBLIC_URL` to the public demo URL before launch. You can also explore the interface in [preview mode](docs\u002Ffrontend.md#preview-mode) without loading model weights.\n\n![Duo offline demo console showing video recording, playback, and inference progress](.\u002Fassets\u002Fconsole.png)\n\n## ⚙️ Configuration\n\n`configs\u002Finference.example.json` controls executables, weight locations, GPU assignment, resolution, seed, sampler steps, and the Case catalog. Relative paths are resolved from the repository root. Runtime output is written to the configured runtime directory, which is ignored by Git.\n\n\n## 🗂️ Repository Layout\n\n```text\nDuo\u002F\n├── configs\u002F               # offline runtime and Case configuration\n├── demo\u002F                  # browser frontend\n├── docs\u002F                  # architecture and frontend integration notes\n├── duo\u002F\n│   ├── data\u002F              # inference sequence materialization\n│   ├── inference_runtime\u002F # multi-GPU offline execution engine\n│   ├── models\u002F            # Intent, Realization, and codecs\n│   ├── preprocessing\u002F     # ASR, alignment, and user-video preparation\n│   ├── runtime\u002F           # distributed inference\u002Fcheckpoint utilities\n│   └── serving\u002F           # HTTP API, sessions, media publication\n├── tests\u002F                 # CPU regression and release-safety tests\n└── run_demo.py            # end-to-end offline launcher\n```\n\n\n## 🤗 Acknowledgements\n\nWe thank the [MiniMax H3](https:\u002F\u002Fgithub.com\u002FMiniMax-AI\u002FMiniMax-H3) and [Qwen](https:\u002F\u002Fgithub.com\u002FQwenLM) teams for their models and research. We also thank the [Hugging Face](https:\u002F\u002Fhuggingface.co\u002F), [vLLM](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm) (especially [vLLM-Omni](https:\u002F\u002Fgithub.com\u002Fvllm-project\u002Fvllm-omni)), and [SGLang](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002Fsglang) (especially [SGLang-Omni](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002Fsglang-omni)) communities.\n\n## 📝 Citation\n\nIf you use Duo in your research, please cite:\n\n```bibtex\n@misc{cao2026duoreciprocalworldmodel,\n  title         = {Duo: A Reciprocal World Model for Full-Duplex Interaction},\n  author        = {Hengyuan Cao and Biao Gong and Guoshan Lu and Qiyuan Zhang and Lin Liu and Yiding Tian and Yilei Jiang and Yuxin Ma and Chengzhang Wu and Kun Chen and Yiqian Xie and Ting Liu and Xin Zheng and Xijun Gu and Tianren Ma and Jiancheng Pan and Chi Zhang and Xuzhe Zheng and Siyi Li and Zhenzhong Lan},\n  year          = {2026},\n  eprint        = {2611.15131},\n  archivePrefix = {arXiv},\n  primaryClass  = {cs.CV},\n  url           = {https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.15131}\n}\n```\n\n\n## 📄 License\n\nThis project is released under the [Apache 2.0 License](LICENSE). Third-party components retain their original notices and licenses beside their source.\n","Duo 是一个面向全双工交互的互惠式世界模型，旨在实现感知与动作的实时双向耦合。其核心功能支持同步处理音频与视觉输入，并在毫秒级延迟下生成自然语言响应，支持对话中断与自发交互；技术上采用因果建模与多模态对齐架构，提供离线研究管道及基于 vLLM\u002FSGLang 的在线流式推理方案。适用于人机协同、智能助手、具身交互系统等需低延迟、双向实时响应的研究与原型开发场景。","2026-11-24 04:49:25","CREATED_QUERY"]