jncraton commited on
Commit
95ad3b4
1 Parent(s): 1e50e02

Upload folder using huggingface_hub

Browse files
Files changed (7) hide show
  1. README.md +317 -0
  2. config.json +6 -0
  3. model.bin +3 -0
  4. special_tokens_map.json +27 -0
  5. tokenizer.json +0 -0
  6. tokenizer_config.json +62 -0
  7. vocabulary.json +0 -0
README.md ADDED
@@ -0,0 +1,317 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: mistralai/Mistral-7B-v0.1
4
+ tags:
5
+ - openchat
6
+ - mistral
7
+ - C-RLFT
8
+ datasets:
9
+ - openchat/openchat_sharegpt4_dataset
10
+ - kaist-ai/Feedback-Collection
11
+ - imone/OpenOrca_FLAN
12
+ - LDJnr/Capybara
13
+ - tiedong/goat
14
+ - glaiveai/glaive-code-assistant
15
+ - meta-math/MetaMathQA
16
+ - OpenAssistant/oasst_top1_2023-08-25
17
+ - TIGER-Lab/MathInstruct
18
+ library_name: transformers
19
+ pipeline_tag: text-generation
20
+ ---
21
+ <div align="center">
22
+ <img src="https://raw.githubusercontent.com/imoneoi/openchat/master/assets/logo_new.png" style="width: 65%">
23
+ <h1>Advancing Open-source Language Models with Mixed-Quality Data</h1>
24
+ </div>
25
+
26
+ <p align="center" style="margin-top: 0px;">
27
+ <a href="https://openchat.team">
28
+ <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;"/>
29
+ <span class="link-text" style=" margin-right: 5px;">Online Demo</span>
30
+ </a> |
31
+ <a href="https://github.com/imoneoi/openchat">
32
+ <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;"/>
33
+ <span class="link-text" style=" margin-right: 5px;">GitHub</span>
34
+ </a> |
35
+ <a href="https://arxiv.org/pdf/2309.11235.pdf">
36
+ <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;"/>
37
+ <span class="link-text" style="margin-right: 5px;">Paper</span>
38
+ </a> |
39
+ <a href="https://discord.gg/pQjnXvNKHY">
40
+ <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;"/>
41
+ <span class="link-text">Discord</span>
42
+ </a>
43
+ </p>
44
+
45
+ <p align="center" style="margin-top: 0px;">
46
+ <span class="link-text" style=" margin-right: 0px; font-size: 0.8em">Sponsored by RunPod</span>
47
+ <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;"/>
48
+ </p>
49
+
50
+ <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; border: 0.8em solid #3c72db;">
51
+ <a href="https://huggingface.co/openchat/openchat_3.5" style="text-decoration: none; color: black;">
52
+ <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>
53
+ <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>
54
+ <span style="font-size: 0.85em; font-family: 'Helvetica'; color: black;">
55
+ <br> 🏆 The Overall Best Performing Open Source 7B Model 🏆
56
+ <br> 🤖 Outperforms <span style="font-weight: bold;">ChatGPT</span> (March) and <span style="font-weight: bold;">Grok-1</span> 🤖
57
+ <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;
58
+ font-family: 'Helvetica'; color: black; font-weight: bold;">OpenChat-3.5🚀</span>
59
+ <br><br><span style="font-size: 1em; font-family: 'Helvetica'; color: #3c72db; font-weight: bold;">New Features</span>
60
+ <br> 💡 2 Modes: Coding + Generalist, Mathematical Reasoning 💡
61
+ <br> 🧑‍⚖️ Experimental support for Evaluator and Feedback capabilities 🧑‍⚖️
62
+ </span>
63
+ </a>
64
+ </div>
65
+
66
+ <div style="display: flex; justify-content: center; align-items: center">
67
+ <img src="https://github.com/alpayariyak/openchat/blob/master/assets/1210bench.png?raw=true" style="width: 100%; border-radius: 1em">
68
+ </div>
69
+
70
+
71
+ <div>
72
+ <h3> Table of Contents</h3>
73
+ </div>
74
+
75
+ 1. [Usage](#usage)
76
+ 2. [Benchmarks](#benchmarks)
77
+ 3. [Limitations](#limitations)
78
+ 4. [License](#license)
79
+ 5. [Dataset Details](#dataset-details)
80
+ 6. [Citation](#citation)
81
+ 7. [Acknowledgements](#acknowledgements)
82
+
83
+
84
+ <div align="center">
85
+ <h2> Usage </h2>
86
+ </div>
87
+
88
+ 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.
89
+
90
+ 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.
91
+
92
+ 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.
93
+
94
+ | Model | Size | Context | Weights | Serving |
95
+ |-------------------|------|---------|------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|
96
+ | 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` |
97
+
98
+ <details>
99
+ <summary>Example request (click to expand)</summary>
100
+
101
+ 💡 **Default Mode (GPT4 Correct)**: Best for coding, chat and general tasks
102
+
103
+ ```bash
104
+ curl http://localhost:18888/v1/chat/completions \
105
+ -H "Content-Type: application/json" \
106
+ -d '{
107
+ "model": "openchat_3.5",
108
+ "messages": [{"role": "user", "content": "You are a large language model named OpenChat. Write a poem to describe yourself"}]
109
+ }'
110
+ ```
111
+
112
+ 🧮 **Mathematical Reasoning Mode**: Tailored for solving math problems
113
+
114
+ ```bash
115
+ curl http://localhost:18888/v1/chat/completions \
116
+ -H "Content-Type: application/json" \
117
+ -d '{
118
+ "model": "openchat_3.5",
119
+ "condition": "Math Correct",
120
+ "messages": [{"role": "user", "content": "10.3 − 7988.8133 = "}]
121
+ }'
122
+ ```
123
+
124
+ </details>
125
+
126
+ ### Conversation templates
127
+
128
+ 💡 **Default Mode (GPT4 Correct)**: Best for coding, chat and general tasks
129
+
130
+ ```
131
+ 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:
132
+ ```
133
+
134
+ 🧮 **Mathematical Reasoning Mode**: Tailored for solving math problems
135
+
136
+ ```
137
+ Math Correct User: 10.3 − 7988.8133=<|end_of_turn|>Math Correct Assistant:
138
+ ```
139
+
140
+ ⚠️ **Notice:** Remember to set `<|end_of_turn|>` as end of generation token.
141
+
142
+ The default (GPT4 Correct) template is also available as the integrated `tokenizer.chat_template`,
143
+ which can be used instead of manually specifying the template:
144
+
145
+ ```python
146
+ messages = [
147
+ {"role": "user", "content": "Hello"},
148
+ {"role": "assistant", "content": "Hi"},
149
+ {"role": "user", "content": "How are you today?"}
150
+ ]
151
+ tokens = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
152
+ 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]
153
+ ```
154
+
155
+ <div align="center">
156
+ <h2> (Experimental) Evaluator / Feedback Capabilities </h2>
157
+ </div>
158
+ 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.
159
+
160
+ ```
161
+ ###Task Description:
162
+ 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.
163
+ 1. Write a detailed feedback that assess the quality of the response strictly based on the given score rubric, not evaluating in general.
164
+ 2. After writing a feedback, write a score that is an integer between 1 and 5. You should refer to the score rubric.
165
+ 3. The output format should look as follows: "Feedback: (write a feedback for criteria) [RESULT] (an integer number between 1 and 5)"
166
+ 4. Please do not generate any other opening, closing, and explanations.
167
+
168
+ ###The instruction to evaluate:
169
+ {orig_instruction}
170
+
171
+ ###Response to evaluate:
172
+ {orig_response}
173
+
174
+ ###Reference Answer (Score 5):
175
+ {orig_reference_answer}
176
+
177
+ ###Score Rubrics:
178
+ [{orig_criteria}]
179
+ Score 1: {orig_score1_description}
180
+ Score 2: {orig_score2_description}
181
+ Score 3: {orig_score3_description}
182
+ Score 4: {orig_score4_description}
183
+ Score 5: {orig_score5_description}
184
+
185
+ ###Feedback:
186
+ ```
187
+ <div align="center">
188
+ <h2> Benchmarks </h2>
189
+ </div>
190
+
191
+ | Model | # Params | Average | MT-Bench | HumanEval | BBH MC | AGIEval | TruthfulQA | MMLU | GSM8K | BBH CoT |
192
+ |--------------------|----------|----------|--------------|-----------------|----------|----------|---------------|--------------|--------------|-------------|
193
+ | OpenChat-3.5-1210 | **7B** | **63.8** | 7.76 | **68.9** | **49.5** | **48.0** | **61.8** | 65.3 | **77.3** | 61.8 |
194
+ | OpenChat-3.5 | **7B** | 61.6 | 7.81 | 55.5 | 47.6 | 47.4 | 59.1 | 64.3 | **77.3** | 63.5 |
195
+ | ChatGPT (March)* | ? | 61.5 | **7.94** | 48.1 | 47.6 | 47.1 | 57.7 | **67.3** | 74.9 | **70.1** |
196
+ | | | | | | | | | | | |
197
+ | OpenHermes 2.5 | 7B | 59.3 | 7.54 | 48.2 | 49.4 | 46.5 | 57.5 | 63.8 | 73.5 | 59.9 |
198
+ | OpenOrca Mistral | 7B | 52.7 | 6.86 | 38.4 | 49.4 | 42.9 | 45.9 | 59.3 | 59.1 | 58.1 |
199
+ | Zephyr-β^ | 7B | 34.6 | 7.34 | 22.0 | 40.6 | 39.0 | 40.8 | 39.8 | 5.1 | 16.0 |
200
+ | Mistral | 7B | - | 6.84 | 30.5 | 39.0 | 38.0 | - | 60.1 | 52.2 | - |
201
+
202
+ <details>
203
+ <summary>Evaluation Details(click to expand)</summary>
204
+ *: 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.
205
+
206
+ ^: 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.
207
+
208
+ **: Mistral and Open-source SOTA results are taken from reported results in instruction-tuned model papers and official repositories.
209
+
210
+ 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).
211
+ </details>
212
+ <div>
213
+ <h3>HumanEval+</h3>
214
+ </div>
215
+
216
+ | Model | Size | HumanEval+ pass@1 |
217
+ |-----------------------------|----------|------------|
218
+ | ChatGPT (December 12, 2023) | - | 64.6 |
219
+ | WizardCoder-Python-34B-V1.0 | 34B | 64.6 |
220
+ | **OpenChat 3.5 (Dec 10)** | **7B** | **63.4** |
221
+ | OpenHermes 2.5 | 7B | 41.5 |
222
+
223
+ <div>
224
+ <h3>OpenChat-3.5-1210 vs. Grok</h3>
225
+ </div>
226
+
227
+ | | License | # Param | Average | MMLU | HumanEval | MATH | GSM8k |
228
+ |-------------------|-------------|---------|----------|------|-----------|----------|----------|
229
+ | OpenChat 3.5 1210 | Apache-2.0 | **7B** | **60.1** | 65.3 | **68.9** | **28.9** | **77.3** |
230
+ | OpenChat 3.5 | Apache-2.0 | **7B** | 56.4 | 64.3 | 55.5 | 28.6 | **77.3** |
231
+ | Grok-0 | Proprietary | 33B | 44.5 | 65.7 | 39.7 | 15.7 | 56.8 |
232
+ | Grok-1 | Proprietary | ???B | 55.8 | 73 | 63.2 | 23.9 | 62.9 |
233
+
234
+ *: Grok results are reported by [X.AI](https://x.ai/).
235
+
236
+ <div align="center">
237
+ <h2> 中文评估结果 / Chinese Evaluations </h2>
238
+ </div>
239
+
240
+ ⚠️ Note that this model was not explicitly trained in Chinese (only < 0.1% of the data is in Chinese). 请注意本模型没有针对性训练中文(中文数据占比小于0.1%)。
241
+
242
+ <div>
243
+ <h3>Multi-Level Multi-Discipline Chinese Evaluation Suite (CEVAL)</h3>
244
+ <div>
245
+
246
+ | Model | Avg | STEM | Social Science | Humanities | Others |
247
+ |----------|-------|-------|----------------|------------|--------|
248
+ | ChatGPT | 54.4 | 52.9 | 61.8 | 50.9 | 53.6 |
249
+ | OpenChat | 47.29 | 45.22 | 52.49 | 48.52 | 45.08 |
250
+
251
+ <div>
252
+ <h3>Massive Multitask Language Understanding in Chinese (CMMLU, 5-shot)</h3>
253
+ </div>
254
+
255
+ | Models | STEM | Humanities | SocialSciences | Other | ChinaSpecific | Avg |
256
+ |----------|-------|------------|----------------|-------|---------------|-------|
257
+ | ChatGPT | 47.81 | 55.68 | 56.5 | 62.66 | 50.69 | 55.51 |
258
+ | OpenChat | 38.7 | 45.99 | 48.32 | 50.23 | 43.27 | 45.85 |
259
+
260
+ <div align="center">
261
+ <h2> Limitations </h2>
262
+ </div>
263
+
264
+ **Foundation Model Limitations**
265
+ 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:
266
+
267
+ - Complex reasoning
268
+ - Mathematical and arithmetic tasks
269
+ - Programming and coding challenges
270
+
271
+ **Hallucination of Non-existent Information**
272
+ 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.
273
+
274
+ **Safety**
275
+ 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.
276
+
277
+ <div align="center">
278
+ <h2> License </h2>
279
+ </div>
280
+
281
+ Our OpenChat 3.5 code and models are distributed under the Apache License 2.0.
282
+
283
+ <div align="center">
284
+ <h2> Dataset Details </h2>
285
+ </div>
286
+
287
+ 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:
288
+
289
+ - [OpenChat ShareGPT](https://huggingface.co/datasets/openchat/openchat_sharegpt4_dataset)
290
+ - [Open-Orca with FLAN answers](https://huggingface.co/datasets/imone/OpenOrca_FLAN)
291
+ - [Feedback-Collection](https://huggingface.co/datasets/kaist-ai/Feedback-Collection)
292
+ - [Capybara](https://huggingface.co/datasets/LDJnr/Capybara) (de-contaminated against MT-bench)
293
+ - [GOAT](https://huggingface.co/datasets/tiedong/goat)
294
+ - [Glaive](https://huggingface.co/datasets/glaiveai/glaive-code-assistant)
295
+ - [MetaMathQA](https://huggingface.co/datasets/meta-math/MetaMathQA)
296
+ - [MathInstruct](https://huggingface.co/datasets/TIGER-Lab/MathInstruct)
297
+ - [OpenAssistant](https://huggingface.co/datasets/OpenAssistant/oasst_top1_2023-08-25)
298
+
299
+ <div align="center">
300
+ <h2> Citation </h2>
301
+ </div>
302
+
303
+ ```
304
+ @article{wang2023openchat,
305
+ title={OpenChat: Advancing Open-source Language Models with Mixed-Quality Data},
306
+ author={Wang, Guan and Cheng, Sijie and Zhan, Xianyuan and Li, Xiangang and Song, Sen and Liu, Yang},
307
+ journal={arXiv preprint arXiv:2309.11235},
308
+ year={2023}
309
+ }
310
+ ```
311
+
312
+ <div align="center">
313
+ <h2> 💌 Main Contributor </h2>
314
+ </div>
315
+
316
+ * Wang Guan [imonenext@gmail.com], Cheng Sijie [csj23@mails.tsinghua.edu.cn], Alpay Ariyak [aariyak@wpi.edu]
317
+ * We look forward to hearing you and collaborating on this exciting project!
config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": "<|end_of_turn|>",
4
+ "layer_norm_epsilon": 1e-05,
5
+ "unk_token": "<unk>"
6
+ }
model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f89baeca2cb49fc54bbb9ac09fc4b32d3e3cfd39c2a500fba22ed8791f8f3da
3
+ size 7247807976
special_tokens_map.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|end_of_turn|>",
4
+ "<|pad_0|>"
5
+ ],
6
+ "bos_token": {
7
+ "content": "<s>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "eos_token": {
14
+ "content": "<|end_of_turn|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "unk_token": {
21
+ "content": "<unk>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ }
27
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "32000": {
30
+ "content": "<|end_of_turn|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32001": {
38
+ "content": "<|pad_0|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ }
45
+ },
46
+ "additional_special_tokens": [
47
+ "<|end_of_turn|>",
48
+ "<|pad_0|>"
49
+ ],
50
+ "bos_token": "<s>",
51
+ "chat_template": "{{ bos_token }}{% for message in messages %}{{ 'GPT4 Correct ' + message['role'].title() + ': ' + message['content'] + '<|end_of_turn|>'}}{% endfor %}{% if add_generation_prompt %}{{ 'GPT4 Correct Assistant:' }}{% endif %}",
52
+ "clean_up_tokenization_spaces": false,
53
+ "eos_token": "<|end_of_turn|>",
54
+ "legacy": true,
55
+ "model_max_length": 1000000000000000019884624838656,
56
+ "pad_token": null,
57
+ "sp_model_kwargs": {},
58
+ "spaces_between_special_tokens": false,
59
+ "tokenizer_class": "LlamaTokenizer",
60
+ "unk_token": "<unk>",
61
+ "use_default_system_prompt": true
62
+ }
vocabulary.json ADDED
The diff for this file is too large to render. See raw diff