Home
Softono
x

x-plug

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
2

Software by x-plug

mPLUG-Owl
Open Source

mPLUG-Owl

<div align="center"> <h2>mPLUG-Owl: The Powerful MLLM Family</h2> </div> <!--![summary_tab](https://z1.ax1x.com/2023/11/03/piM1rGQ.md.png)!--> ![summary_tab](https://picx.zhimg.com/70/v2-0c20dc670d9a55c03fb8d7b253ebfe1d_1440w.avis?source=172ae18b&biz_tag=Post) - [**mPLUG-Owl**](mPLUG-Owl) (Arxiv 2023) - mPLUG-Owl: Modularization Empowers Large Language Models with Multimodality - [**mPLUG-Owl2**](mPLUG-Owl2) (Arxiv 2023) - mPLUG-Owl2: Revolutionizing Multi-modal Large Language Model with Modality Collaboration - [**mPLUG-Owl3**](mPLUG-Owl3) (Arxiv 2024) - mPLUG-Owl3: Towards Long Image-Sequence Understanding in Multi-Modal Large Language Models ## News and Updates * ```2024.08.12``` 🔥🔥🔥 We release **mPLUG-Owl3**. The source code and weights are avaliable at [HuggingFace](https://huggingface.co/mPLUG/mPLUG-Owl3-7B-240728). * ```2024.04.05``` **mPLUG-Owl2** is accepted by CVPR 2024 as a Highlight. * ```2024.02.01``` We relaese **mPLUG-Owl2.1**, a Chinese enhanced version of mPLUG-Owl2. The weight is available at [HuggingFace](https://huggingface.co/Mizukiluke/mplug_owl_2_1). ## License The content of this project itself is licensed under [LICENSE](LICENSE). ## Misc <div align="center"> [![Stargazers repo roster for @X-PLUG/mPLUG-Owl](https://reporoster.com/stars/X-PLUG/mPLUG-Owl)](https://github.com/X-PLUG/mPLUG-Owl/stargazers) [![Forkers repo roster for @X-PLUG/mPLUG-Owl](https://reporoster.com/forks/X-PLUG/mPLUG-Owl)](https://github.com/X-PLUG/mPLUG-Owl/network/members) [![Star History Chart](https://api.star-history.com/svg?repos=X-PLUG/mPLUG-Owl&type=Date)](https://star-history.com/#X-PLUG/mPLUG-Owl&Date) </div>

LLM Tools & Chat UIs ML Frameworks
2.5K Github Stars
ChatPLUG
Open Source

ChatPLUG

# ChatPLUG: Chinese Personalized Large Language Model [![](assets/Demo-ModelScope-brightgreen.svg)](https://www.modelscope.cn/studios/damo/role_play_chat/summary) [![](assets/Paper-Arxiv-orange.svg)](https://arxiv.org/abs/2304.07849) ![Hex.pm](https://img.shields.io/hexpm/l/plug) [![docs](https://img.shields.io/badge/docs-latest-blue)](https://chatplug.readthedocs.io/zh_CN/latest/) [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FX-PLUG%2FChatP&count_bg=%23E97EBA&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=visitors&edge_flat=false)](https://hits.seeyoufarm.com) This is the repo for the [ChatPLUG](./ChatPLUG.md) project, which aims to build and share a Chinese open-domain dialogue system. <hr> | 爱用emoji的萌妹子小婉 | 富有智慧的得道高僧 | 会说古文的的三国NPC关羽 | :-------------------------:|:-------------------------:|:-------------------------: <img src="assets/xiaowan.gif" width="80%" /> | <img src="assets/gaoseng.gif" width="90%" /> | <img src="assets/guanyu.gif" width="80%" /> ## News - 🔥 ChatPLUG-13B will soon be released on ModelScope for research. - [2023/05/23] Add guides about [retrieval](https://chatplug.readthedocs.io/zh_CN/latest/retrieval.html) and [role-play](https://chatplug.readthedocs.io/zh_CN/latest/roleplay.html) - [2023/05/10] Add training code, which helps train custom models and build chatbots quickly and easily. - [2023/04/26] Try our [Role-Play-Chat Online Demo](https://modelscope.cn/studios/damo/role_play_chat/summary) in ModelScope Now! - [2023/04/19] Add content including spotlights, results and limitations. Upload models to [ModelScope](https://modelscope.cn/my/overview). - [2023/04/16] Initialize project. ## Online Demo [Role-Play-Chat](https://www.modelscope.cn/studios/damo/role_play_chat/summary) ## Spotlights <img src="assets/spotlights.jpg" alt="spotlights" width="80%" /> Compared with existed open-source models, we highlight three feaures of ChatPLUG as follows: 1. **Knowledge Augmentation** > It's flexible to integrate external knowledge during inference, and this is an optional input. You can utilize a `search engine` to acquire up-to-date information or use a local knowledge base to obtain domain knowledge. 2. **Personalization** > It's easy to customize the style of conversations and characters by setting `bot profiles` or using `role-paly instructions`. 3. **Multi Skills** > It exhibits its proficiency in open-domain dialogue through mulit-turn conversation, while also displaying impressive `multi-task abilities` on a wide range of NLP tasks. ## How to run We offer three methods to use or continue developing ChatPLUG as follows: | | Getting Started | Inference | Train | Deploy | |---|---|---|---|---| | ModelScope | Easy | :heavy_check_mark: Cli | :x: Not Ready | :x: Not Ready | | HuggingFace | Medium | :heavy_check_mark: Cli | :x: Not Ready | :x: Not Ready | | XDPX | Hard | :heavy_check_mark: Cli | :heavy_check_mark: Support | :heavy_check_mark: Serving | ### ModelScope You can download and use ChatPLUG models from ModelScope. | Model Name | URL | | ------------- | ------------------------------------------------------------ | | ChatPLUG-240M | [ChatPLUG-开放域对话模型-240M](https://modelscope.cn/models/damo/ChatPLUG-240M/summary) | | ChatPLUG-3.7B | [ChatPLUG-开放域对话模型-3.7B](https://modelscope.cn/models/damo/ChatPLUG-3.7B/summary) | ### HuggingFace Coming soon. ### XDPX XDPX is an easy-to-use library, that allows researchers and developers to train custom models and build own chatbots in a streamlined manner. Its all-in-one functionality allows for a one-stop solution that simplifies complex processes. [quick start](https://chatplug.readthedocs.io/zh_CN/latest/quick_start.html) #### One-Click Inference > When using ChatPLUG-3.7B, you can set `core_chat_half_precision : true` to save memory. ```bash # Requirement # in the dir of XDPX cd XDPX pip install -e . # Download checkpoints # in the same dir as the download.sh cd .. sh download.sh # Inference # in the dir of XDPX cd XDPX CUDA_VISIBLE_DEVICES=0 x-script fidchat_new chat_pipeline/chatplug_3.7B_sftv2.6.0_instruction.hjson # input `#exit` and exit the terminal ``` #### One-Click Train > If your GPU(e.g. A100、A10) support bf16, set `deepspeed_bf16: true` and `deepspeed_fp16: false`, otherwise set `deepspeed_bf16: false` and `deepspeed_fp16: true` ```bash # 1. Download dataset from belle # in ChatPLUG/data/belle dir cd data/belle git lfs install git clone https://huggingface.co/datasets/BelleGroup/train_0.5M_CN python process_belle_0.5M.py # $ls data/belle # train_0.jsonl dev.jsonl ... # 2. Preprocess Data # in XDPX dir x-prepro chat_pipeline/chatplug_prepro_sft_instruction.hjson # $ls data/dialogue/sft/chatplug/belle_instruction # train_0.pt dev.pt # 3. Training # in XDPX dir x-train chat_pipeline/chatplug_3.7B_train_sftv2.6.0_instruction.hjson ``` #### One-Click Deploy Coming soon. ## Installation Please refer to [Installation](https://chatplug.readthedocs.io/zh_CN/latest/quick_start.html) for installation instructions. For detailed user guides, please refer to our [documentation](https://chatplug.readthedocs.io/zh_CN/latest): - User Guides - [Quick Start](https://chatplug.readthedocs.io/zh_CN/latest/quick_start.html) - [Retrieval](https://chatplug.readthedocs.io/zh_CN/latest/retrieval.html) - [Role-Play](https://chatplug.readthedocs.io/zh_CN/latest/roleplay.html) - Advanced Guides - [Intro](https://chatplug.readthedocs.io/zh_CN/latest/get_started.html) - [Training](https://chatplug.readthedocs.io/zh_CN/latest/nlu_training.html#) - [Develop](https://chatplug.readthedocs.io/zh_CN/latest/develop.html) - [F.A.Q](https://chatplug.readthedocs.io/zh_CN/latest/faq.html) ## Citations If you find our project useful in your work, please cite: ``` @misc{tian2023chatplug, title={ChatPLUG: Open-Domain Generative Dialogue System with Internet-Augmented Instruction Tuning for Digital Human}, author={Junfeng Tian and Hehong Chen and Guohai Xu and Ming Yan and Xing Gao and Jianhai Zhang and Chenliang Li and Jiayi Liu and Wenshen Xu and Haiyang Xu and Qi Qian and Wei Wang and Qinghao Ye and Jiejing Zhang and Ji Zhang and Fei Huang and Jingren Zhou}, year={2023}, eprint={2304.07849}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` ``` @misc{plug2021, title = {{PLUG: Pre-training for Language Understanding and Generation}}, author={ModelScope}, publisher = {ModelScope}, journal = {ModelScope repository}, year = {2021}, howpublished = {\url{https://modelscope.cn/models/damo/nlp_plug_text-generation_27B/summary}}, } ``` ## License This code is licensed under the [Apache License (Version 2.0). ](./LICENSE)

ML Frameworks
324 Github Stars