Caleb Fahlgren
commited on
Commit
•
c8f63cb
1
Parent(s):
3a8d15b
init
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- README.md +323 -0
- gitignore +1 -0
- mod_cache_before_build.pkl +3 -0
- openchat-3.5-1210-q4f32_1-webgpu.wasm +3 -0
- params/added_tokens.json +4 -0
- params/mlc-chat-config.json +20 -0
- params/ndarray-cache.json +0 -0
- params/params_shard_0.bin +3 -0
- params/params_shard_1.bin +3 -0
- params/params_shard_10.bin +3 -0
- params/params_shard_100.bin +3 -0
- params/params_shard_101.bin +3 -0
- params/params_shard_102.bin +3 -0
- params/params_shard_103.bin +3 -0
- params/params_shard_104.bin +3 -0
- params/params_shard_105.bin +3 -0
- params/params_shard_106.bin +3 -0
- params/params_shard_107.bin +3 -0
- params/params_shard_108.bin +3 -0
- params/params_shard_109.bin +3 -0
- params/params_shard_11.bin +3 -0
- params/params_shard_110.bin +3 -0
- params/params_shard_111.bin +3 -0
- params/params_shard_112.bin +3 -0
- params/params_shard_113.bin +3 -0
- params/params_shard_114.bin +3 -0
- params/params_shard_115.bin +3 -0
- params/params_shard_116.bin +3 -0
- params/params_shard_117.bin +3 -0
- params/params_shard_118.bin +3 -0
- params/params_shard_119.bin +3 -0
- params/params_shard_12.bin +3 -0
- params/params_shard_120.bin +3 -0
- params/params_shard_121.bin +3 -0
- params/params_shard_122.bin +3 -0
- params/params_shard_123.bin +3 -0
- params/params_shard_124.bin +3 -0
- params/params_shard_125.bin +3 -0
- params/params_shard_126.bin +3 -0
- params/params_shard_127.bin +3 -0
- params/params_shard_128.bin +3 -0
- params/params_shard_129.bin +3 -0
- params/params_shard_13.bin +3 -0
- params/params_shard_130.bin +3 -0
- params/params_shard_14.bin +3 -0
- params/params_shard_15.bin +3 -0
- params/params_shard_16.bin +3 -0
- params/params_shard_17.bin +3 -0
- params/params_shard_18.bin +3 -0
- params/params_shard_19.bin +3 -0
README.md
CHANGED
@@ -1,3 +1,326 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- openchat
|
5 |
+
- mistral
|
6 |
+
- C-RLFT
|
7 |
+
datasets:
|
8 |
+
- openchat/openchat_sharegpt4_dataset
|
9 |
+
- kaist-ai/Feedback-Collection
|
10 |
+
- imone/OpenOrca_FLAN
|
11 |
+
- LDJnr/LessWrong-Amplify-Instruct
|
12 |
+
- LDJnr/Pure-Dove
|
13 |
+
- LDJnr/Verified-Camel
|
14 |
+
- tiedong/goat
|
15 |
+
- glaiveai/glaive-code-assistant
|
16 |
+
- meta-math/MetaMathQA
|
17 |
+
- OpenAssistant/oasst_top1_2023-08-25
|
18 |
+
- TIGER-Lab/MathInstruct
|
19 |
+
library_name: transformers
|
20 |
+
pipeline_tag: text-generation
|
21 |
---
|
22 |
+
|
23 |
+
# OpenChat-3.5-1210 compiled for WebGPU - q4f32_1
|
24 |
+
|
25 |
+
- Original model: [OpenChat-3.5-1210](https://huggingface.co/openchat/openchat-3.5-1210)
|
26 |
+
- compiled by: Caleb Fahlgren: [👋 on Twitter](https://twitter.com/calebfahlgren)
|
27 |
+
|
28 |
+
<div align="center">
|
29 |
+
<img src="https://raw.githubusercontent.com/imoneoi/openchat/master/assets/logo_new.png" style="width: 65%">
|
30 |
+
<h1>Advancing Open-source Language Models with Mixed-Quality Data</h1>
|
31 |
+
</div>
|
32 |
+
|
33 |
+
<p align="center" style="margin-top: 0px;">
|
34 |
+
<a href="https://openchat.team">
|
35 |
+
<img src="https://github.com/alpayariyak/openchat/blob/master/assets/logo_nobg.png?raw=true" alt="OpenChat Logo" style="width:20px; vertical-align: middle; display: inline-block; margin-right: 5px; margin-left: 10px; margin-top: 0px; margin-bottom: 0px;"/>
|
36 |
+
<span class="link-text" style=" margin-right: 5px;">Online Demo</span>
|
37 |
+
</a> |
|
38 |
+
<a href="https://github.com/imoneoi/openchat">
|
39 |
+
<img src="https://camo.githubusercontent.com/4133dc1cd4511d4a292b84ce10e52e4ed92569fb2a8165381c9c47be5edc2796/68747470733a2f2f6564656e742e6769746875622e696f2f537570657254696e7949636f6e732f696d616765732f706e672f6769746875622e706e67" alt="GitHub Logo" style="width:20px; vertical-align: middle; display: inline-block; margin-right: 5px; margin-left: 5px; margin-top: 0px; margin-bottom: 0px;"/>
|
40 |
+
<span class="link-text" style=" margin-right: 5px;">GitHub</span>
|
41 |
+
</a> |
|
42 |
+
<a href="https://arxiv.org/pdf/2309.11235.pdf">
|
43 |
+
<img src="https://github.com/alpayariyak/openchat/blob/master/assets/arxiv-logomark-small-square-border.png?raw=true" alt="ArXiv Logo" style="width:20px; vertical-align: middle; display: inline-block; margin-right: 5px; margin-left: 5px; margin-top: 0px; margin-bottom: 0px;"/>
|
44 |
+
<span class="link-text" style="margin-right: 5px;">Paper</span>
|
45 |
+
</a> |
|
46 |
+
<a href="https://discord.gg/pQjnXvNKHY">
|
47 |
+
<img src="https://cloud.githubusercontent.com/assets/6291467/26705903/96c2d66e-477c-11e7-9f4e-f3c0efe96c9a.png" alt="Discord Logo" style="width:20px; vertical-align: middle; display: inline-block; margin-right: 5px; margin-left: 5px; margin-top: 0px; margin-bottom: 0px;"/>
|
48 |
+
<span class="link-text">Discord</span>
|
49 |
+
</a>
|
50 |
+
</p>
|
51 |
+
|
52 |
+
<p align="center" style="margin-top: 0px;">
|
53 |
+
<span class="link-text" style=" margin-right: 0px; font-size: 1em">Sponsored by RunPod</span>
|
54 |
+
<img src="https://styles.redditmedia.com/t5_6075m3/styles/profileIcon_71syco7c5lt81.png?width=256&height=256&frame=1&auto=webp&crop=256:256,smart&s=24bd3c71dc11edc5d4f88d0cbc1da72ed7ae1969" alt="RunPod Logo" style="width:30px; vertical-align: middle; display: inline-block; margin-right: 5px; margin-left: 5px; margin-top: 0px; margin-bottom: 0px;"/>
|
55 |
+
</p>
|
56 |
+
|
57 |
+
<div style="background-color: white; padding: 0.7em; border-radius: 0.5em; color: black; display: flex; flex-direction: column; justify-content: center; text-align: center; ont-size: 0.5em;">
|
58 |
+
<a href="https://huggingface.co/openchat/openchat_3.5" style="text-decoration: none; color: black;">
|
59 |
+
<span style="font-size: 1.7em; font-family: 'Helvetica'; letter-spacing: 0.1em; font-weight: bold; color: black;">OPENCHAT</span><span style="font-size: 1.8em; font-family: 'Helvetica'; color: #3c72db; ">3.5</span>
|
60 |
+
<span style="font-size: 0.7em; font-family: 'Helvetica'; color: white; vertical-align: top; background-color:red; border-radius: 6em; padding: 0.066em 0.4em; letter-spacing: 0.1em; font-weight: bold;">1210</span>
|
61 |
+
<span style="font-size: 0.85em; font-family: 'Helvetica'; color: black;">
|
62 |
+
<br> 🏆 The Overall Best Performing Open Source 7B Model 🏆
|
63 |
+
<br> 🤖 Outperforms <span style="font-weight: bold;">ChatGPT</span> (March) and <span style="font-weight: bold;">Grok-1</span> 🤖
|
64 |
+
<br> 🚀<span style="font-size: 1em; font-family: 'Helvetica'; color: black; font-weight: bold;">15</span>-point improvement in Coding over <span style="font-size: 0.9em;
|
65 |
+
font-family: 'Helvetica'; color: black; font-weight: bold;">OpenChat-3.5🚀</span>
|
66 |
+
<br><br><span style="font-size: 1em; font-family: 'Helvetica'; color: #3c72db; font-weight: bold;">New Features</span>
|
67 |
+
<br> 💡 2 Modes: Coding + Generalist, Mathematical Reasoning 💡
|
68 |
+
<br> 🧑⚖️ Experimental support for Evaluator and Feedback capabilities 🧑⚖️
|
69 |
+
</span>
|
70 |
+
</a>
|
71 |
+
</div>
|
72 |
+
|
73 |
+
<div style="display: flex; justify-content: center; align-items: center">
|
74 |
+
<img src="https://github.com/alpayariyak/openchat/blob/master/assets/1210bench.png?raw=true" style="width: 100%; border-radius: 1em">
|
75 |
+
</div>
|
76 |
+
|
77 |
+
<div>
|
78 |
+
<h3> Table of Contents</h3>
|
79 |
+
</div>
|
80 |
+
|
81 |
+
1. [Usage](#usage)
|
82 |
+
2. [Benchmarks](#benchmarks)
|
83 |
+
3. [Limitations](#limitations)
|
84 |
+
4. [License](#license)
|
85 |
+
5. [Dataset Details](#dataset-details)
|
86 |
+
6. [Citation](#citation)
|
87 |
+
7. [Acknowledgements](#acknowledgements)
|
88 |
+
|
89 |
+
|
90 |
+
<div align="center">
|
91 |
+
<h2> Usage </h2>
|
92 |
+
</div>
|
93 |
+
|
94 |
+
To use this model, we highly recommend installing the OpenChat package by following the [installation guide](https://github.com/imoneoi/openchat#installation) in our repository and using the OpenChat OpenAI-compatible API server by running the serving command from the table below. The server is optimized for high-throughput deployment using [vLLM](https://github.com/vllm-project/vllm) and can run on a consumer GPU with 24GB RAM. To enable tensor parallelism, append `--tensor-parallel-size N` to the serving command.
|
95 |
+
|
96 |
+
Once started, the server listens at `localhost:18888` for requests and is compatible with the [OpenAI ChatCompletion API specifications](https://platform.openai.com/docs/api-reference/chat). Please refer to the example request below for reference. Additionally, you can use the [OpenChat Web UI](https://github.com/imoneoi/openchat#web-ui) for a user-friendly experience.
|
97 |
+
|
98 |
+
If you want to deploy the server as an online service, you can use `--api-keys sk-KEY1 sk-KEY2 ...` to specify allowed API keys and `--disable-log-requests --disable-log-stats --log-file openchat.log` for logging only to a file. For security purposes, we recommend using an [HTTPS gateway](https://fastapi.tiangolo.com/es/deployment/concepts/#security-https) in front of the server.
|
99 |
+
|
100 |
+
| Model | Size | Context | Weights | Serving |
|
101 |
+
| ----------------- | ---- | ------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
102 |
+
| OpenChat 3.5 1210 | 7B | 8192 | [Huggingface](https://huggingface.co/openchat/openchat_3.5_1210) | `python -m ochat.serving.openai_api_server --model openchat/openchat_3.5_1210 --engine-use-ray --worker-use-ray` |
|
103 |
+
|
104 |
+
<details>
|
105 |
+
<summary>Example request (click to expand)</summary>
|
106 |
+
|
107 |
+
💡 **Default Mode (GPT4 Correct)**: Best for coding, chat and general tasks
|
108 |
+
|
109 |
+
```bash
|
110 |
+
curl http://localhost:18888/v1/chat/completions \
|
111 |
+
-H "Content-Type: application/json" \
|
112 |
+
-d '{
|
113 |
+
"model": "openchat_3.5",
|
114 |
+
"messages": [{"role": "user", "content": "You are a large language model named OpenChat. Write a poem to describe yourself"}]
|
115 |
+
}'
|
116 |
+
```
|
117 |
+
|
118 |
+
🧮 **Mathematical Reasoning Mode**: Tailored for solving math problems
|
119 |
+
|
120 |
+
```bash
|
121 |
+
curl http://localhost:18888/v1/chat/completions \
|
122 |
+
-H "Content-Type: application/json" \
|
123 |
+
-d '{
|
124 |
+
"model": "openchat_3.5",
|
125 |
+
"condition": "Math Correct",
|
126 |
+
"messages": [{"role": "user", "content": "10.3 − 7988.8133 = "}]
|
127 |
+
}'
|
128 |
+
```
|
129 |
+
|
130 |
+
</details>
|
131 |
+
|
132 |
+
### Conversation templates
|
133 |
+
|
134 |
+
💡 **Default Mode (GPT4 Correct)**: Best for coding, chat and general tasks
|
135 |
+
|
136 |
+
```
|
137 |
+
GPT4 Correct User: Hello<|end_of_turn|>GPT4 Correct Assistant: Hi<|end_of_turn|>GPT4 Correct User: How are you today?<|end_of_turn|>GPT4 Correct Assistant:
|
138 |
+
```
|
139 |
+
|
140 |
+
🧮 **Mathematical Reasoning Mode**: Tailored for solving math problems
|
141 |
+
|
142 |
+
```
|
143 |
+
Math Correct User: 10.3 − 7988.8133=<|end_of_turn|>Math Correct Assistant:
|
144 |
+
```
|
145 |
+
|
146 |
+
⚠️ **Notice:** Remember to set `<|end_of_turn|>` as end of generation token.
|
147 |
+
|
148 |
+
The default (GPT4 Correct) template is also available as the integrated `tokenizer.chat_template`,
|
149 |
+
which can be used instead of manually specifying the template:
|
150 |
+
|
151 |
+
```python
|
152 |
+
messages = [
|
153 |
+
{"role": "user", "content": "Hello"},
|
154 |
+
{"role": "assistant", "content": "Hi"},
|
155 |
+
{"role": "user", "content": "How are you today?"}
|
156 |
+
]
|
157 |
+
tokens = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
|
158 |
+
assert tokens == [1, 420, 6316, 28781, 3198, 3123, 1247, 28747, 22557, 32000, 420, 6316, 28781, 3198, 3123, 21631, 28747, 15359, 32000, 420, 6316, 28781, 3198, 3123, 1247, 28747, 1602, 460, 368, 3154, 28804, 32000, 420, 6316, 28781, 3198, 3123, 21631, 28747]
|
159 |
+
```
|
160 |
+
|
161 |
+
<div align="center">
|
162 |
+
<h2> (Experimental) Evaluator / Feedback Capabilities </h2>
|
163 |
+
</div>
|
164 |
+
We've included evaluator capabilities in this release to advance open-source models as evaluators. You can use `Default Mode (GPT4 Correct)` with the following prompt (same as [Prometheus](https://huggingface.co/datasets/kaist-ai/Feedback-Collection)) to evaluate a response.
|
165 |
+
|
166 |
+
```
|
167 |
+
###Task Description:
|
168 |
+
An instruction (might include an Input inside it), a response to evaluate, a reference answer that gets a score of 5, and a score rubric representing a evaluation criteria are given.
|
169 |
+
1. Write a detailed feedback that assess the quality of the response strictly based on the given score rubric, not evaluating in general.
|
170 |
+
2. After writing a feedback, write a score that is an integer between 1 and 5. You should refer to the score rubric.
|
171 |
+
3. The output format should look as follows: "Feedback: (write a feedback for criteria) [RESULT] (an integer number between 1 and 5)"
|
172 |
+
4. Please do not generate any other opening, closing, and explanations.
|
173 |
+
|
174 |
+
###The instruction to evaluate:
|
175 |
+
{orig_instruction}
|
176 |
+
|
177 |
+
###Response to evaluate:
|
178 |
+
{orig_response}
|
179 |
+
|
180 |
+
###Reference Answer (Score 5):
|
181 |
+
{orig_reference_answer}
|
182 |
+
|
183 |
+
###Score Rubrics:
|
184 |
+
[{orig_criteria}]
|
185 |
+
Score 1: {orig_score1_description}
|
186 |
+
Score 2: {orig_score2_description}
|
187 |
+
Score 3: {orig_score3_description}
|
188 |
+
Score 4: {orig_score4_description}
|
189 |
+
Score 5: {orig_score5_description}
|
190 |
+
|
191 |
+
###Feedback:
|
192 |
+
```
|
193 |
+
<div align="center">
|
194 |
+
<h2> Benchmarks </h2>
|
195 |
+
</div>
|
196 |
+
|
197 |
+
| Model | # Params | Average | MT-Bench | HumanEval | BBH MC | AGIEval | TruthfulQA | MMLU | GSM8K | BBH CoT |
|
198 |
+
| ----------------- | -------- | -------- | -------- | --------- | -------- | -------- | ---------- | -------- | -------- | -------- |
|
199 |
+
| OpenChat-3.5-1210 | **7B** | **63.8** | 7.76 | **68.9** | **49.5** | **48.0** | **61.8** | 65.3 | **77.3** | 61.8 |
|
200 |
+
| OpenChat-3.5 | **7B** | 61.6 | 7.81 | 55.5 | 47.6 | 47.4 | 59.1 | 64.3 | **77.3** | 63.5 |
|
201 |
+
| ChatGPT (March)* | ? | 61.5 | **7.94** | 48.1 | 47.6 | 47.1 | 57.7 | **67.3** | 74.9 | **70.1** |
|
202 |
+
| | | | | | | | | | | |
|
203 |
+
| OpenHermes 2.5 | 7B | 59.3 | 7.54 | 48.2 | 49.4 | 46.5 | 57.5 | 63.8 | 73.5 | 59.9 |
|
204 |
+
| OpenOrca Mistral | 7B | 52.7 | 6.86 | 38.4 | 49.4 | 42.9 | 45.9 | 59.3 | 59.1 | 58.1 |
|
205 |
+
| Zephyr-β^ | 7B | 34.6 | 7.34 | 22.0 | 40.6 | 39.0 | 40.8 | 39.8 | 5.1 | 16.0 |
|
206 |
+
| Mistral | 7B | - | 6.84 | 30.5 | 39.0 | 38.0 | - | 60.1 | 52.2 | - |
|
207 |
+
|
208 |
+
<details>
|
209 |
+
<summary>Evaluation Details(click to expand)</summary>
|
210 |
+
*: ChatGPT (March) results are from [GPT-4 Technical Report](https://arxiv.org/abs/2303.08774), [Chain-of-Thought Hub](https://github.com/FranxYao/chain-of-thought-hub), and our evaluation. Please note that ChatGPT is not a fixed baseline and evolves rapidly over time.
|
211 |
+
|
212 |
+
^: Zephyr-β often fails to follow few-shot CoT instructions, likely because it was aligned with only chat data but not trained on few-shot data.
|
213 |
+
|
214 |
+
**: Mistral and Open-source SOTA results are taken from reported results in instruction-tuned model papers and official repositories.
|
215 |
+
|
216 |
+
All models are evaluated in chat mode (e.g. with the respective conversation template applied). All zero-shot benchmarks follow the same setting as in the AGIEval paper and Orca paper. CoT tasks use the same configuration as Chain-of-Thought Hub, HumanEval is evaluated with EvalPlus, and MT-bench is run using FastChat. To reproduce our results, follow the instructions in [our repository](https://github.com/imoneoi/openchat/#benchmarks).
|
217 |
+
</details>
|
218 |
+
<div>
|
219 |
+
<h3>HumanEval+</h3>
|
220 |
+
</div>
|
221 |
+
|
222 |
+
| Model | Size | HumanEval+ pass@1 |
|
223 |
+
| --------------------------- | ------ | ----------------- |
|
224 |
+
| ChatGPT (December 12, 2023) | - | 64.6 |
|
225 |
+
| WizardCoder-Python-34B-V1.0 | 34B | 64.6 |
|
226 |
+
| **OpenChat 3.5 (Dec 10)** | **7B** | **63.4** |
|
227 |
+
| OpenHermes 2.5 | 7B | 41.5 |
|
228 |
+
|
229 |
+
<div>
|
230 |
+
<h3>OpenChat-3.5-1210 vs. Grok</h3>
|
231 |
+
</div>
|
232 |
+
|
233 |
+
| | License | # Param | Average | MMLU | HumanEval | MATH | GSM8k |
|
234 |
+
| ----------------- | ----------- | ------- | -------- | ---- | --------- | -------- | -------- |
|
235 |
+
| OpenChat 3.5 1210 | Apache-2.0 | **7B** | **60.1** | 65.3 | **68.9** | **28.9** | **77.3** |
|
236 |
+
| OpenChat 3.5 | Apache-2.0 | **7B** | 56.4 | 64.3 | 55.5 | 28.6 | **77.3** |
|
237 |
+
| Grok-0 | Proprietary | 33B | 44.5 | 65.7 | 39.7 | 15.7 | 56.8 |
|
238 |
+
| Grok-1 | Proprietary | ???B | 55.8 | 73 | 63.2 | 23.9 | 62.9 |
|
239 |
+
|
240 |
+
*: Grok results are reported by [X.AI](https://x.ai/).
|
241 |
+
|
242 |
+
<div align="center">
|
243 |
+
<h2> 中文评估结果 / Chinese Evaluations </h2>
|
244 |
+
</div>
|
245 |
+
|
246 |
+
⚠️ Note that this model was not explicitly trained in Chinese (only < 0.1% of the data is in Chinese). 请注意本模型没有针对性训练中文(中文数据占比小于0.1%)。
|
247 |
+
|
248 |
+
<div>
|
249 |
+
<h3>Multi-Level Multi-Discipline Chinese Evaluation Suite (CEVAL)</h3>
|
250 |
+
<div>
|
251 |
+
|
252 |
+
| Model | Avg | STEM | Social Science | Humanities | Others |
|
253 |
+
| -------- | ----- | ----- | -------------- | ---------- | ------ |
|
254 |
+
| ChatGPT | 54.4 | 52.9 | 61.8 | 50.9 | 53.6 |
|
255 |
+
| OpenChat | 47.29 | 45.22 | 52.49 | 48.52 | 45.08 |
|
256 |
+
|
257 |
+
<div>
|
258 |
+
<h3>Massive Multitask Language Understanding in Chinese (CMMLU, 5-shot)</h3>
|
259 |
+
</div>
|
260 |
+
|
261 |
+
| Models | STEM | Humanities | SocialSciences | Other | ChinaSpecific | Avg |
|
262 |
+
| -------- | ----- | ---------- | -------------- | ----- | ------------- | ----- |
|
263 |
+
| ChatGPT | 47.81 | 55.68 | 56.5 | 62.66 | 50.69 | 55.51 |
|
264 |
+
| OpenChat | 38.7 | 45.99 | 48.32 | 50.23 | 43.27 | 45.85 |
|
265 |
+
|
266 |
+
<div align="center">
|
267 |
+
<h2> Limitations </h2>
|
268 |
+
</div>
|
269 |
+
|
270 |
+
**Foundation Model Limitations**
|
271 |
+
Despite its advanced capabilities, OpenChat is still bound by the limitations inherent in its foundation models. These limitations may impact the model's performance in areas such as:
|
272 |
+
|
273 |
+
- Complex reasoning
|
274 |
+
- Mathematical and arithmetic tasks
|
275 |
+
- Programming and coding challenges
|
276 |
+
|
277 |
+
**Hallucination of Non-existent Information**
|
278 |
+
OpenChat may sometimes generate information that does not exist or is not accurate, also known as "hallucination". Users should be aware of this possibility and verify any critical information obtained from the model.
|
279 |
+
|
280 |
+
**Safety**
|
281 |
+
OpenChat may sometimes generate harmful, hate speech, biased responses, or answer unsafe questions. It's crucial to apply additional AI safety measures in use cases that require safe and moderated responses.
|
282 |
+
|
283 |
+
<div align="center">
|
284 |
+
<h2> License </h2>
|
285 |
+
</div>
|
286 |
+
|
287 |
+
Our OpenChat 3.5 code and models are distributed under the Apache License 2.0.
|
288 |
+
|
289 |
+
<div align="center">
|
290 |
+
<h2> Dataset Details </h2>
|
291 |
+
</div>
|
292 |
+
|
293 |
+
OpenChat 3.5 was trained with C-RLFT on a collection of publicly available high-quality instruction data, with a custom processing pipeline. We detail some notable subsets included here:
|
294 |
+
|
295 |
+
- [OpenChat ShareGPT](https://huggingface.co/datasets/openchat/openchat_sharegpt4_dataset)
|
296 |
+
- [Open-Orca with FLAN answers](https://huggingface.co/datasets/imone/OpenOrca_FLAN)
|
297 |
+
- [Feedback-Collection](https://huggingface.co/datasets/kaist-ai/Feedback-Collection)
|
298 |
+
- Capybara [1](https://huggingface.co/datasets/LDJnr/Pure-Dove) [2](https://huggingface.co/datasets/LDJnr/Verified-Camel) [3](https://huggingface.co/datasets/LDJnr/LessWrong-Amplify-Instruct)
|
299 |
+
- [GOAT](https://huggingface.co/datasets/tiedong/goat)
|
300 |
+
- [Glaive](https://huggingface.co/datasets/glaiveai/glaive-code-assistant)
|
301 |
+
- [MetaMathQA](https://huggingface.co/datasets/meta-math/MetaMathQA)
|
302 |
+
- [MathInstruct](https://huggingface.co/datasets/TIGER-Lab/MathInstruct)
|
303 |
+
- [OpenAssistant](https://huggingface.co/datasets/OpenAssistant/oasst_top1_2023-08-25)
|
304 |
+
|
305 |
+
<div align="center">
|
306 |
+
<h2> Citation </h2>
|
307 |
+
</div>
|
308 |
+
|
309 |
+
```
|
310 |
+
@article{wang2023openchat,
|
311 |
+
title={OpenChat: Advancing Open-source Language Models with Mixed-Quality Data},
|
312 |
+
author={Wang, Guan and Cheng, Sijie and Zhan, Xianyuan and Li, Xiangang and Song, Sen and Liu, Yang},
|
313 |
+
journal={arXiv preprint arXiv:2309.11235},
|
314 |
+
year={2023}
|
315 |
+
}
|
316 |
+
```
|
317 |
+
|
318 |
+
<div align="center">
|
319 |
+
<h2> Acknowledgments </h2>
|
320 |
+
</div>
|
321 |
+
|
322 |
+
We extend our heartfelt gratitude to AutoMeta and caesus from Alignment Lab AI, LDJ and Teknium from Nous Research, alpin and TearGosling from Pygmalion AI for their substantial contributions to data collection and model training.
|
323 |
+
|
324 |
+
Special thanks go to Changling Liu from GPT Desk Pte. Ltd., Qiying Yu at Tsinghua University, Baochang Ma, and Hao Wan from 01.AI company for their generous provision of resources. We are also deeply grateful to Jianxiong Li and Peng Li at Tsinghua University for their insightful discussions.
|
325 |
+
|
326 |
+
Furthermore, we appreciate the developers behind the following projects for their significant contributions to our research: [Mistral](https://mistral.ai/), [Chain-of-Thought Hub](https://github.com/FranxYao/chain-of-thought-hub), [Llama 2](https://ai.meta.com/llama/), [Self-Instruct](https://arxiv.org/abs/2212.10560), [FastChat (Vicuna)](https://github.com/lm-sys/FastChat), [Alpaca](https://github.com/tatsu-lab/stanford_alpaca.git), and [StarCoder](https://github.com/bigcode-project/starcoder). Their work has been instrumental in driving our research forward.
|
gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
mod_cache_before_build.pkl
|
mod_cache_before_build.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b6599ae6afe4b9efae456b69477f70c705509a73bb335d36fdd588e7229aa28f
|
3 |
+
size 19969634
|
openchat-3.5-1210-q4f32_1-webgpu.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ded14028f12c53bad643587e8d00df8e0cc7036cfda836fb2c2484a70ee28a0e
|
3 |
+
size 2439077
|
params/added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|end_of_turn|>": 32000,
|
3 |
+
"<|pad_0|>": 32001
|
4 |
+
}
|
params/mlc-chat-config.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model_lib": "openchat-3.5-1210-q4f32_1",
|
3 |
+
"local_id": "openchat-3.5-1210-q4f32_1",
|
4 |
+
"conv_template": "mistral_default",
|
5 |
+
"temperature": 0.7,
|
6 |
+
"repetition_penalty": 1.0,
|
7 |
+
"top_p": 0.95,
|
8 |
+
"mean_gen_len": 128,
|
9 |
+
"max_gen_len": 512,
|
10 |
+
"max_window_size": 2048,
|
11 |
+
"num_shards": 1,
|
12 |
+
"shift_fill_factor": 0.3,
|
13 |
+
"tokenizer_files": [
|
14 |
+
"added_tokens.json",
|
15 |
+
"tokenizer.model"
|
16 |
+
],
|
17 |
+
"model_category": "mistral",
|
18 |
+
"model_name": "openchat-3.5-1210",
|
19 |
+
"vocab_size": 32002
|
20 |
+
}
|
params/ndarray-cache.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
params/params_shard_0.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d6e03178128e306f1dcd70baa4d6160654feb0945db506d671e16ac3d45adedd
|
3 |
+
size 65540096
|
params/params_shard_1.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c0c8fe9172b38c5e922ed0d964cb044c87f9ebaf5499986c1b6e62aa3a03a2c4
|
3 |
+
size 32113664
|
params/params_shard_10.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f984c82864d0ff1d01817b31729e9943b5562eedacc210311cb8fba088220738
|
3 |
+
size 26214400
|
params/params_shard_100.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c168f39111474862dd3361831f7ef9a897d5279c021392900095371c80eed327
|
3 |
+
size 22052864
|
params/params_shard_101.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0865254527df13ece4cac08009503dec5936d9cc0e3ac259ac92429f2544e004
|
3 |
+
size 58720256
|
params/params_shard_102.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2e0b5c95e9a2c8474b50fa24c5c3320071c8da4b20adf2388cc3006572095db8
|
3 |
+
size 26214400
|
params/params_shard_103.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb3c1319203da5341728ac405d366cc3746f9231028a0c5a6985ce94e4dd53b4
|
3 |
+
size 29360128
|
params/params_shard_104.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11e71c0e9331394e081f2f34e1af8e30b34fa7244caab498424db5b5139cd637
|
3 |
+
size 22052864
|
params/params_shard_105.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e13bf449e87e55058c089f1e907d3b482c881b923b6bc315772698ddd9ead150
|
3 |
+
size 58720256
|
params/params_shard_106.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:100ccab386e32b93debecadf909a6a73718d43c0c101f991b1880074e86f824f
|
3 |
+
size 26214400
|
params/params_shard_107.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:989edc693887f81c69f0cca60d34dfb7abbaae75a1a0fe9e9a94e4256cef2d0e
|
3 |
+
size 29360128
|
params/params_shard_108.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:028bfc281de3ee5b9a6cc039d191e648a435b36e64d2280f674ad5e7d4d24938
|
3 |
+
size 22052864
|
params/params_shard_109.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:298795c48a7a74d37d81288894c8be29fe35b842c95fd89ffc96451236bcb43b
|
3 |
+
size 58720256
|
params/params_shard_11.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2a1f6a30b44fa286a9395b5c4006d45de15383e28cf05f648820e466dfed7286
|
3 |
+
size 29360128
|
params/params_shard_110.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7b9546594ad2b745556c140c3db23e027bed4616c0677b9403818b6cd11738a3
|
3 |
+
size 26214400
|
params/params_shard_111.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7a171b0f2fcd534ca503f1ec83d52ee3f672cafc7ee9dbe1f98edb479ed5fcc5
|
3 |
+
size 29360128
|
params/params_shard_112.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2569733f97e5ad96479421990a74fedaecb5cdf1890362720b9cad7da9d50c64
|
3 |
+
size 22052864
|
params/params_shard_113.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a13f6328a7eb7e34df854d313bdd6ea8dff2a7a6711c0729150e9d5ec92adee
|
3 |
+
size 58720256
|
params/params_shard_114.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:571ebd03dfb1d87a0b786f580fb034a8a45c1c0ba31eb94c3d49d9de3815eec7
|
3 |
+
size 26214400
|
params/params_shard_115.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:985672ed8a566008d07ff115abb9daa47eb70900ce2d379fab78e28f0e1d3338
|
3 |
+
size 29360128
|
params/params_shard_116.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:16fc6301661cfa0caa4e480943b61864de2f9e57aa5390a1ce8cffb938287805
|
3 |
+
size 22052864
|
params/params_shard_117.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4158851e485c43e003b36cee6bfd208a181bf236c7f9d923a8a39feff97c84cf
|
3 |
+
size 58720256
|
params/params_shard_118.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f1e85ff968ce6ba30cc0117622f0b46db2406cb8f67c6d5a8fd2ab61d3e7902b
|
3 |
+
size 26214400
|
params/params_shard_119.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:879b2627ed836f26c859547b30cbda0ac57ddce5adf19a497c660da5d4fdf86b
|
3 |
+
size 29360128
|
params/params_shard_12.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da4fbe469ca06808871a27a2e234f7d1afc33eb74953a1d9ecf7bae79caa8551
|
3 |
+
size 22052864
|
params/params_shard_120.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:17eacab788a405dde86b7502429f9435f587516fc99802b082ec88e1368ed0a2
|
3 |
+
size 22052864
|
params/params_shard_121.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:08c471f831354d538d08d14ff354a84f75116c1fcf7573bb825aa0bfe557b12e
|
3 |
+
size 58720256
|
params/params_shard_122.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:243161f36d5bb2c0072b5d40e167860df51ba9c02b82990904467b3c52fdc957
|
3 |
+
size 26214400
|
params/params_shard_123.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:66c81ac935520f09e5f9eccbc5ffee788dda7a2592aad0b9c72bc84577524bbb
|
3 |
+
size 29360128
|
params/params_shard_124.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dddb400289562e429638c5a059df75d1f4f97f63071271b8c2a8d9bc86b35428
|
3 |
+
size 22052864
|
params/params_shard_125.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:09134b0d34894b959a44580751d50ec6b16f6695e21eb4a31ba9b05139d210ad
|
3 |
+
size 58720256
|
params/params_shard_126.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0a83cfbf6acfafce71d4107ad826920d4386d1766fc86d08bb745aa9265e904d
|
3 |
+
size 26214400
|
params/params_shard_127.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ad01318e5cbdb8c9341de98b97934be67a9fbe582931b27a728faf682454931
|
3 |
+
size 29360128
|
params/params_shard_128.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:66d923805fcdd198b612b7be92c2ad36b50214d4bf5627bd7429e30d926e7418
|
3 |
+
size 65540096
|
params/params_shard_129.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:36d53e739bf1aa39b2bf0cfd5c6fbee5000ac3098aa59019adc6bffde331005f
|
3 |
+
size 22069248
|
params/params_shard_13.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:85ad750f61d9a40d89a5cd9aae88ae2190eb4964cd4dd27d0d3773e1fc35d4cf
|
3 |
+
size 58720256
|
params/params_shard_130.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:975794a189e5fe2b7c8069930ebb11ab411c372c9a9de628fb65542045572ff4
|
3 |
+
size 18482176
|
params/params_shard_14.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0042f9a8537e23561ff279ab21ffad67854ad716d8b9ccf15c13a1193e56f6a0
|
3 |
+
size 26214400
|
params/params_shard_15.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:818aa2049568e8dca0735e1b6f6dc8a5bca0cd91049a290bcfcc35f15f1a4402
|
3 |
+
size 29360128
|
params/params_shard_16.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f29a3f47458e1d22f0955a9d4e6eaeebb79e296fa8e86167b77d80b797a1672
|
3 |
+
size 22052864
|
params/params_shard_17.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:29019f2a79a2e5a1ffe9774bab9a7522ff1d16c65a1138633fcd52f46a1b379c
|
3 |
+
size 58720256
|
params/params_shard_18.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0f0ef49df39da709d6e05a99e89f677841b11a55147c48ae0aa3b71bf1e71d1e
|
3 |
+
size 26214400
|
params/params_shard_19.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a556edc0a201cf1cd961cbcdbc2195fa77e749d04d0d40151ec9bc03341401c4
|
3 |
+
size 29360128
|