Skip to content

Latest commit

 

History

History
79 lines (62 loc) · 3.08 KB

README_ZH.md

File metadata and controls

79 lines (62 loc) · 3.08 KB




Beyond the Turn-Based Game: Duplex Models Enable Real-Time Conversations

英文版论文数据模型

简介

我们提出双工模型的概念,即一边接收用户输入一边生成输出,并可根据用户的及时反馈调整输出,如打断。不同于轮次对话机制,双工模型可以与用户实时交互。为展示双工模型的性能表现,我们基于MiniCPM-2.4B训练了一个实例模型,MiniCPM-duplex。双工模型的微调数据,不同于普通微调数据,每个输入输出被切成切片。

MiniCPM-duplex试用

下面是将MiniCPM-duplex demo部署到本地Mac笔记本或者Linux服务器的步骤。

安装依赖

加载模型

运行demo服务

  • 先确保后端已经启动
  • demo自动连接到后端服务 ws://localhost:8765.
  • 设置环境变量DUPLEX_SERVER可以修改后端地址.
  • 运行demo服务
      yarn install
      yarn dev
    
  • demo服务启动,http://localhost:3000

引用格式

@misc{zhang2024turnbasedgameenablingrealtime,
      title={Beyond the Turn-Based Game: Enabling Real-Time Conversations with Duplex Models}, 
      author={Xinrong Zhang and Yingfa Chen and Shengding Hu and Xu Han and Zihang Xu and Yuanwei Xu and Weilin Zhao and Maosong Sun and Zhiyuan Liu},
      year={2024},
      eprint={2406.15718},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
      url={https://arxiv.org/abs/2406.15718}, 
}

致谢

Thanks to Xueheng Luo, Binhui Fan, Kaihuo Zhang, Ao Sun, Zhongwu Zhai, Yating Gong, Chaoqun He, Zhenning Dai, Yunqi Ba, Rongting Tang, Lei Zhang, Yingying Xiong, Tianmeng Pang, Chenzhe Jing, Ge Zhou, Siyuan Li, Yuge Tu, Yulin Chen, Ganqu Cui, Fengyuan Lu, Yudong Mei, Hanghao Wu, Suiyun Yang, Ran Yao, Ziming You, Jie Zhou, Jie Cai, Haifeng Xu, Yibin Li, Tianchi Cai, Xiang Long, Shi Yu, Renjie Lou, Yinxu Pan, JiaWen Liu, Hanqing Zhao, Peiqi Yu, Yishan Li, Bokai Xu, Yifan Luo, Siyuan Cai, Fuxi Zhu, Ran Yao, Tianyi Chen, Meixu Hu, Shi Yu, Ling Li, Zhenhua Zhang, Meiqi Fan, Yuqi Luo, Tianmeng Pang, Siyuan Liu, Bowen Ping.

参考

  1. https://huggingface.co/openbmb/MiniCPM-2B-sft-bf16
  2. https://github.com/thunlp/UltraChat