Giter Club home page Giter Club logo

chatfish-chatbot's Introduction

ChatFish-Chatbot

image ChatFish, an open-source Chinese chatbot trained by fine-tuning Bloom on blendered conversation datasets. This Repo builds Web UI for ChatFish powered by Gradio.

Quick Start

git clone https://github.com/LZYSaltedFish/ChatFish-Chatbot.git
cd ChatFish-Chatbot
pip install -r requirements.txt

cd inference
sh chat.sh

Training Detail

Trained with DeepSpeed-Chat, on 8 16G-V100 GPUs. Full finetuned with ZeRO stage 2, no LoRA.

Model

Data

Data used for training are extracted from the following open-source dataset.

Dataset Size Avg turns Used
Guanaco 200K 2.7 66K
Vicuna-ShareGPT 6K 5.9 3.5K
GPT4-LLM 49K 1 33K
MOSS-002-SFT 590K 2.9 211K
InstructWild 51K 1 45K

Instances are simply filtered by rules to meet the requirements of:

  1. length of response no shorter than 5 tokens.
  2. total length of query and response no shorter than 128 tokens.
  3. each query has one and only one response.
  4. chinese data.
  5. split multiturn conversation into multiple instances, with history context at the beginning of the query.

Hyperparams

name value
batch_size 1
max_seq_len 1024
lr 9.65e-6
epoch 15
lr_scheduler cosine
warm_up 1000

Cases

Writing

image

Common Sense

image

Chatting

image

Role Playing

image

Limitations

  1. lack of methematical and complex reasoning ability.
  2. lack of truthfulness, prone to hallucinations.
  3. lack of hramlessness.
  4. chinese only.
  5. lack of coding ability, the codes generated usually contains errors.

chatfish-chatbot's People

Contributors

lzysaltedfish avatar

Stargazers

 avatar Tingfeng Cao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.