Skip to content

About

ChatFish, an open-source chatbot trained by fine-tuning Bloom on open-source conversation datasets.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

ChatFish, an open-source chatbot trained by fine-tuning Bloom on open-source conversation datasets.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages