# **BLOSSOM-v4-mistral-7b**

Try blossom online demo! [Blossom Chat[🚀](https://blossom-chat.com/)](https://huggingface.co/spaces/Azure99/BlossomChat)

### Introduction

Blossom is a conversational large language model, fine-tuned on the Blossom Orca/Wizard/Chat/Math mixed dataset based on the Mistral-7B-v0.1 pre-trained model. Blossom possesses robust general capabilities and context comprehension. Additionally, the high-quality Chinese and English datasets used for training have been made open source.

Training was conducted in two stages. The first stage used 100K Wizard, 100K Orca, 20K Math single-turn instruction datasets, training for 1 epoch; the second stage used 50K Blossom chat multi-turn dialogue dataset, and 2% randomly sampled data from the first stage, training for 3 epochs.

Note: The Mistral-7B-v0.1 pre-trained model is somewhat lacking in Chinese knowledge, so for Chinese scenarios, it is recommended to use [blossom-v4-baichuan2-7b](https://huggingface.co/Azure99/blossom-v4-baichuan2-7b).

### Inference

Inference is performed in the form of dialogue continuation.

Single-turn dialogue

```
A chat between a human and an artificial intelligence bot. The bot gives helpful, detailed, and polite answers to the human's questions.
|Human|: hello
|Bot|: 
```

Multi-turn dialogue

```
A chat between a human and an artificial intelligence bot. The bot gives helpful, detailed, and polite answers to the human's questions.
|Human|: hello
|Bot|: Hello! How can I assist you today?</s>
|Human|: Generate a random number using python
|Bot|: 
```

Note: At the end of the Bot's output in the historical conversation, append a `</s>`.
{"language": ["zh", "en"], "license": "apache-2.0", "datasets": ["Azure99/blossom-chat-v2", "Azure99/blossom-math-v3", "Azure99/blossom-wizard-v2", "Azure99/blossom-orca-v2"]}
transformers pytorch mistral text-generation zh en dataset:Azure99/blossom-chat-v2 dataset:Azure99/blossom-math-v3 dataset:Azure99/blossom-wizard-v2 dataset:Azure99/blossom-orca-v2 license:apache-2.0 autotrain_compatible endpoints_compatible text-generation-inference region:us