TheBloke commited on
Commit
9803e42
·
1 Parent(s): 1995df0

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +451 -0
README.md ADDED
@@ -0,0 +1,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: 01-ai/Yi-6B
3
+ inference: false
4
+ license: other
5
+ license_link: LICENSE
6
+ license_name: yi-license
7
+ model_creator: 01-ai
8
+ model_name: Yi 6B
9
+ model_type: yi
10
+ pipeline_tag: text-generation
11
+ prompt_template: '{prompt}
12
+
13
+ '
14
+ quantized_by: TheBloke
15
+ widget:
16
+ - output:
17
+ text: " an eerie sense that something is just not right\u2026\nBetween the two\
18
+ \ worlds lies The Forgotten Kingdom - home to creatures long since thought extinct\
19
+ \ and ancient magic so strong it defies belief! Only here can you find what\
20
+ \ has been lost for centuries: An Elixir Of Life which will restore youth and\
21
+ \ vitality if only those who seek its power are brave enough to face up against\
22
+ \ all manner of dangers lurking in this mysterious land! But beware; some say\
23
+ \ there may even exist powerful entities beyond our comprehension whose intentions\
24
+ \ towards humanity remain unclear at best ---- they might want nothing more\
25
+ \ than destruction itself rather then anything else from their quest after immortality\
26
+ \ (and maybe someone should tell them about modern medicine)? In any event though\
27
+ \ \u2013 one thing remains true regardless : whether or not success comes easy\
28
+ \ depends entirely upon how much effort we put into conquering whatever challenges\
29
+ \ lie ahead along with having faith deep down inside ourselves too ;) So let\u2019\
30
+ s get started now shall We?"
31
+ text: There's a place where time stands still. A place of breath taking wonder,
32
+ but also
33
+ ---
34
+ <!-- markdownlint-disable MD041 -->
35
+
36
+ <!-- header start -->
37
+ <!-- 200823 -->
38
+ <div style="width: auto; margin-left: auto; margin-right: auto">
39
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
40
+ </div>
41
+ <div style="display: flex; justify-content: space-between; width: 100%;">
42
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
43
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
44
+ </div>
45
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
46
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
47
+ </div>
48
+ </div>
49
+ <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
50
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
51
+ <!-- header end -->
52
+
53
+ # Yi 6B - AWQ
54
+ - Model creator: [01-ai](https://huggingface.co/01-ai)
55
+ - Original model: [Yi 6B](https://huggingface.co/01-ai/Yi-6B)
56
+
57
+ <!-- description start -->
58
+ ## Description
59
+
60
+ This repo contains AWQ model files for [01-ai's Yi 6B](https://huggingface.co/01-ai/Yi-6B).
61
+
62
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
63
+
64
+
65
+ ### About AWQ
66
+
67
+ AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference with equivalent or better quality compared to the most commonly used GPTQ settings.
68
+
69
+ It is supported by:
70
+
71
+ - [Text Generation Webui](https://github.com/oobabooga/text-generation-webui) - using Loader: AutoAWQ
72
+ - [vLLM](https://github.com/vllm-project/vllm) - Llama and Mistral models only
73
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
74
+ - [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later, from any code or client that supports Transformers
75
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) - for use from Python code
76
+
77
+ <!-- description end -->
78
+ <!-- repositories-available start -->
79
+ ## Repositories available
80
+
81
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Yi-6B-AWQ)
82
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Yi-6B-GPTQ)
83
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Yi-6B-GGUF)
84
+ * [01-ai's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/01-ai/Yi-6B)
85
+ <!-- repositories-available end -->
86
+
87
+ <!-- prompt-template start -->
88
+ ## Prompt template: None
89
+
90
+ ```
91
+ {prompt}
92
+
93
+ ```
94
+
95
+ <!-- prompt-template end -->
96
+
97
+
98
+ <!-- README_AWQ.md-provided-files start -->
99
+ ## Provided files, and AWQ parameters
100
+
101
+ I currently release 128g GEMM models only. The addition of group_size 32 models, and GEMV kernel models, is being actively considered.
102
+
103
+ Models are released as sharded safetensors files.
104
+
105
+ | Branch | Bits | GS | AWQ Dataset | Seq Len | Size |
106
+ | ------ | ---- | -- | ----------- | ------- | ---- |
107
+ | [main](https://huggingface.co/TheBloke/Yi-6B-AWQ/tree/main) | 4 | 128 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 3.93 GB
108
+
109
+ <!-- README_AWQ.md-provided-files end -->
110
+
111
+ <!-- README_AWQ.md-text-generation-webui start -->
112
+ ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
113
+
114
+ Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
115
+
116
+ It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
117
+
118
+ 1. Click the **Model tab**.
119
+ 2. Under **Download custom model or LoRA**, enter `TheBloke/Yi-6B-AWQ`.
120
+ 3. Click **Download**.
121
+ 4. The model will start downloading. Once it's finished it will say "Done".
122
+ 5. In the top left, click the refresh icon next to **Model**.
123
+ 6. In the **Model** dropdown, choose the model you just downloaded: `Yi-6B-AWQ`
124
+ 7. Select **Loader: AutoAWQ**.
125
+ 8. Click Load, and the model will load and is now ready for use.
126
+ 9. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
127
+ 10. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
128
+ <!-- README_AWQ.md-text-generation-webui end -->
129
+
130
+ <!-- README_AWQ.md-use-from-vllm start -->
131
+ ## Multi-user inference server: vLLM
132
+
133
+ Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/).
134
+
135
+ - Please ensure you are using vLLM version 0.2 or later.
136
+ - When using vLLM as a server, pass the `--quantization awq` parameter.
137
+
138
+ For example:
139
+
140
+ ```shell
141
+ python3 -m vllm.entrypoints.api_server --model TheBloke/Yi-6B-AWQ --quantization awq --dtype auto
142
+ ```
143
+
144
+ - When using vLLM from Python code, again set `quantization=awq`.
145
+
146
+ For example:
147
+
148
+ ```python
149
+ from vllm import LLM, SamplingParams
150
+
151
+ prompts = [
152
+ "Tell me about AI",
153
+ "Write a story about llamas",
154
+ "What is 291 - 150?",
155
+ "How much wood would a woodchuck chuck if a woodchuck could chuck wood?",
156
+ ]
157
+ prompt_template=f'''{prompt}
158
+ '''
159
+
160
+ prompts = [prompt_template.format(prompt=prompt) for prompt in prompts]
161
+
162
+ sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
163
+
164
+ llm = LLM(model="TheBloke/Yi-6B-AWQ", quantization="awq", dtype="auto")
165
+
166
+ outputs = llm.generate(prompts, sampling_params)
167
+
168
+ # Print the outputs.
169
+ for output in outputs:
170
+ prompt = output.prompt
171
+ generated_text = output.outputs[0].text
172
+ print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
173
+ ```
174
+ <!-- README_AWQ.md-use-from-vllm start -->
175
+
176
+ <!-- README_AWQ.md-use-from-tgi start -->
177
+ ## Multi-user inference server: Hugging Face Text Generation Inference (TGI)
178
+
179
+ Use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
180
+
181
+ Example Docker parameters:
182
+
183
+ ```shell
184
+ --model-id TheBloke/Yi-6B-AWQ --port 3000 --quantize awq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
185
+ ```
186
+
187
+ Example Python code for interfacing with TGI (requires [huggingface-hub](https://github.com/huggingface/huggingface_hub) 0.17.0 or later):
188
+
189
+ ```shell
190
+ pip3 install huggingface-hub
191
+ ```
192
+
193
+ ```python
194
+ from huggingface_hub import InferenceClient
195
+
196
+ endpoint_url = "https://your-endpoint-url-here"
197
+
198
+ prompt = "Tell me about AI"
199
+ prompt_template=f'''{prompt}
200
+ '''
201
+
202
+ client = InferenceClient(endpoint_url)
203
+ response = client.text_generation(prompt,
204
+ max_new_tokens=128,
205
+ do_sample=True,
206
+ temperature=0.7,
207
+ top_p=0.95,
208
+ top_k=40,
209
+ repetition_penalty=1.1)
210
+
211
+ print(f"Model output: ", response)
212
+ ```
213
+ <!-- README_AWQ.md-use-from-tgi end -->
214
+
215
+ <!-- README_AWQ.md-use-from-python start -->
216
+ ## Inference from Python code using Transformers
217
+
218
+ ### Install the necessary packages
219
+
220
+ - Requires: [Transformers](https://huggingface.co/docs/transformers) 4.35.0 or later.
221
+ - Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.1.6 or later.
222
+
223
+ ```shell
224
+ pip3 install --upgrade "autoawq>=0.1.6" "transformers>=4.35.0"
225
+ ```
226
+
227
+ Note that if you are using PyTorch 2.0.1, the above AutoAWQ command will automatically upgrade you to PyTorch 2.1.0.
228
+
229
+ If you are using CUDA 11.8 and wish to continue using PyTorch 2.0.1, instead run this command:
230
+
231
+ ```shell
232
+ pip3 install https://github.com/casper-hansen/AutoAWQ/releases/download/v0.1.6/autoawq-0.1.6+cu118-cp310-cp310-linux_x86_64.whl
233
+ ```
234
+
235
+ If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead:
236
+
237
+ ```shell
238
+ pip3 uninstall -y autoawq
239
+ git clone https://github.com/casper-hansen/AutoAWQ
240
+ cd AutoAWQ
241
+ pip3 install .
242
+ ```
243
+
244
+ ### Transformers example code (requires Transformers 4.35.0 and later)
245
+
246
+ ```python
247
+ from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
248
+
249
+ model_name_or_path = "TheBloke/Yi-6B-AWQ"
250
+
251
+ tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
252
+ model = AutoModelForCausalLM.from_pretrained(
253
+ model_name_or_path,
254
+ low_cpu_mem_usage=True,
255
+ device_map="cuda:0"
256
+ )
257
+
258
+ # Using the text streamer to stream output one token at a time
259
+ streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
260
+
261
+ prompt = "Tell me about AI"
262
+ prompt_template=f'''{prompt}
263
+ '''
264
+
265
+ # Convert prompt to tokens
266
+ tokens = tokenizer(
267
+ prompt_template,
268
+ return_tensors='pt'
269
+ ).input_ids.cuda()
270
+
271
+ generation_params = {
272
+ "do_sample": True,
273
+ "temperature": 0.7,
274
+ "top_p": 0.95,
275
+ "top_k": 40,
276
+ "max_new_tokens": 512,
277
+ "repetition_penalty": 1.1
278
+ }
279
+
280
+ # Generate streamed output, visible one token at a time
281
+ generation_output = model.generate(
282
+ tokens,
283
+ streamer=streamer,
284
+ **generation_params
285
+ )
286
+
287
+ # Generation without a streamer, which will include the prompt in the output
288
+ generation_output = model.generate(
289
+ tokens,
290
+ **generation_params
291
+ )
292
+
293
+ # Get the tokens from the output, decode them, print them
294
+ token_output = generation_output[0]
295
+ text_output = tokenizer.decode(token_output)
296
+ print("model.generate output: ", text_output)
297
+
298
+ # Inference is also possible via Transformers' pipeline
299
+ from transformers import pipeline
300
+
301
+ pipe = pipeline(
302
+ "text-generation",
303
+ model=model,
304
+ tokenizer=tokenizer,
305
+ **generation_params
306
+ )
307
+
308
+ pipe_output = pipe(prompt_template)[0]['generated_text']
309
+ print("pipeline output: ", pipe_output)
310
+
311
+ ```
312
+ <!-- README_AWQ.md-use-from-python end -->
313
+
314
+ <!-- README_AWQ.md-compatibility start -->
315
+ ## Compatibility
316
+
317
+ The files provided are tested to work with:
318
+
319
+ - [text-generation-webui](https://github.com/oobabooga/text-generation-webui) using `Loader: AutoAWQ`.
320
+ - [vLLM](https://github.com/vllm-project/vllm) version 0.2.0 and later.
321
+ - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) version 1.1.0 and later.
322
+ - [Transformers](https://huggingface.co/docs/transformers) version 4.35.0 and later.
323
+ - [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) version 0.1.1 and later.
324
+
325
+ <!-- README_AWQ.md-compatibility end -->
326
+
327
+ <!-- footer start -->
328
+ <!-- 200823 -->
329
+ ## Discord
330
+
331
+ For further support, and discussions on these models and AI in general, join us at:
332
+
333
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
334
+
335
+ ## Thanks, and how to contribute
336
+
337
+ Thanks to the [chirper.ai](https://chirper.ai) team!
338
+
339
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
340
+
341
+ I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
342
+
343
+ If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
344
+
345
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
346
+
347
+ * Patreon: https://patreon.com/TheBlokeAI
348
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
349
+
350
+ **Special thanks to**: Aemon Algiz.
351
+
352
+ **Patreon special mentions**: Brandon Frisco, LangChain4j, Spiking Neurons AB, transmissions 11, Joseph William Delisle, Nitin Borwankar, Willem Michiel, Michael Dempsey, vamX, Jeffrey Morgan, zynix, jjj, Omer Bin Jawed, Sean Connelly, jinyuan sun, Jeromy Smith, Shadi, Pawan Osman, Chadd, Elijah Stavena, Illia Dulskyi, Sebastain Graf, Stephen Murray, terasurfer, Edmond Seymore, Celu Ramasamy, Mandus, Alex, biorpg, Ajan Kanaga, Clay Pascal, Raven Klaugh, 阿明, K, ya boyyy, usrbinkat, Alicia Loh, John Villwock, ReadyPlayerEmma, Chris Smitley, Cap'n Zoog, fincy, GodLy, S_X, sidney chen, Cory Kujawski, OG, Mano Prime, AzureBlack, Pieter, Kalila, Spencer Kim, Tom X Nguyen, Stanislav Ovsiannikov, Michael Levine, Andrey, Trailburnt, Vadim, Enrico Ros, Talal Aujan, Brandon Phillips, Jack West, Eugene Pentland, Michael Davis, Will Dee, webtim, Jonathan Leane, Alps Aficionado, Rooh Singh, Tiffany J. Kim, theTransient, Luke @flexchar, Elle, Caitlyn Gatomon, Ari Malik, subjectnull, Johann-Peter Hartmann, Trenton Dambrowitz, Imad Khwaja, Asp the Wyvern, Emad Mostaque, Rainer Wilmers, Alexandros Triantafyllidis, Nicholas, Pedro Madruga, SuperWojo, Harry Royden McLaughlin, James Bentley, Olakabola, David Ziegler, Ai Maven, Jeff Scroggin, Nikolai Manek, Deo Leter, Matthew Berman, Fen Risland, Ken Nordquist, Manuel Alberto Morcote, Luke Pendergrass, TL, Fred von Graf, Randy H, Dan Guido, NimbleBox.ai, Vitor Caleffi, Gabriel Tamborski, knownsqashed, Lone Striker, Erik Bjäreholt, John Detwiler, Leonard Tan, Iucharbius
353
+
354
+
355
+ Thank you to all my generous patrons and donaters!
356
+
357
+ And thank you again to a16z for their generous grant.
358
+
359
+ <!-- footer end -->
360
+
361
+ # Original model card: 01-ai's Yi 6B
362
+
363
+ <div align="center">
364
+
365
+ <img src="./Yi.svg" width="200px">
366
+
367
+ </div>
368
+
369
+ ## Introduction
370
+
371
+ The **Yi** series models are large language models trained from scratch by
372
+ developers at [01.AI](https://01.ai/). The first public release contains two
373
+ bilingual(English/Chinese) base models with the parameter sizes of 6B([`Yi-6B`](https://huggingface.co/01-ai/Yi-6B))
374
+ and 34B([`Yi-34B`](https://huggingface.co/01-ai/Yi-34B)). Both of them are trained
375
+ with 4K sequence length and can be extended to 32K during inference time.
376
+ The [`Yi-6B-200K`](https://huggingface.co/01-ai/Yi-6B-200K)
377
+ and [`Yi-34B-200K`](https://huggingface.co/01-ai/Yi-34B-200K) are base model with
378
+ 200K context length.
379
+
380
+ ## News
381
+
382
+ - 🎯 **2023/11/06**: The base model of [`Yi-6B-200K`](https://huggingface.co/01-ai/Yi-6B-200K)
383
+ and [`Yi-34B-200K`](https://huggingface.co/01-ai/Yi-34B-200K) with 200K context length.
384
+ - 🎯 **2023/11/02**: The base model of [`Yi-6B`](https://huggingface.co/01-ai/Yi-6B) and
385
+ [`Yi-34B`](https://huggingface.co/01-ai/Yi-34B).
386
+
387
+
388
+ ## Model Performance
389
+
390
+ | Model | MMLU | CMMLU | C-Eval | GAOKAO | BBH | Common-sense Reasoning | Reading Comprehension | Math & Code |
391
+ | :------------ | :------: | :------: | :------: | :------: | :------: | :--------------------: | :-------------------: | :---------: |
392
+ | | 5-shot | 5-shot | 5-shot | 0-shot | 3-shot@1 | - | - | - |
393
+ | LLaMA2-34B | 62.6 | - | - | - | 44.1 | 69.9 | 68.0 | 26.0 |
394
+ | LLaMA2-70B | 68.9 | 53.3 | - | 49.8 | 51.2 | 71.9 | 69.4 | 36.8 |
395
+ | Baichuan2-13B | 59.2 | 62.0 | 58.1 | 54.3 | 48.8 | 64.3 | 62.4 | 23.0 |
396
+ | Qwen-14B | 66.3 | 71.0 | 72.1 | 62.5 | 53.4 | 73.3 | 72.5 | **39.8** |
397
+ | Skywork-13B | 62.1 | 61.8 | 60.6 | 68.1 | 41.7 | 72.4 | 61.4 | 24.9 |
398
+ | InternLM-20B | 62.1 | 59.0 | 58.8 | 45.5 | 52.5 | 78.3 | - | 30.4 |
399
+ | Aquila-34B | 67.8 | 71.4 | 63.1 | - | - | - | - | - |
400
+ | Falcon-180B | 70.4 | 58.0 | 57.8 | 59.0 | 54.0 | 77.3 | 68.8 | 34.0 |
401
+ | Yi-6B | 63.2 | 75.5 | 72.0 | 72.2 | 42.8 | 72.3 | 68.7 | 19.8 |
402
+ | Yi-6B-200K | 64.0 | 75.3 | 73.5 | 73.9 | 42.0 | 72.0 | 69.1 | 19.0 |
403
+ | **Yi-34B** | **76.3** | **83.7** | 81.4 | 82.8 | **54.3** | **80.1** | 76.4 | 37.1 |
404
+ | Yi-34B-200K | 76.1 | 83.6 | **81.9** | **83.4** | 52.7 | 79.7 | **76.6** | 36.3 |
405
+
406
+ While benchmarking open-source models, we have observed a disparity between the
407
+ results generated by our pipeline and those reported in public sources (e.g.
408
+ OpenCompass). Upon conducting a more in-depth investigation of this difference,
409
+ we have discovered that various models may employ different prompts,
410
+ post-processing strategies, and sampling techniques, potentially resulting in
411
+ significant variations in the outcomes. Our prompt and post-processing strategy
412
+ remains consistent with the original benchmark, and greedy decoding is employed
413
+ during evaluation without any post-processing for the generated content. For
414
+ scores that were not reported by the original authors (including scores reported
415
+ with different settings), we try to get results with our pipeline.
416
+
417
+ To evaluate the model's capability extensively, we adopted the methodology
418
+ outlined in Llama2. Specifically, we included PIQA, SIQA, HellaSwag, WinoGrande,
419
+ ARC, OBQA, and CSQA to assess common sense reasoning. SquAD, QuAC, and BoolQ
420
+ were incorporated to evaluate reading comprehension. CSQA was exclusively tested
421
+ using a 7-shot setup, while all other tests were conducted with a 0-shot
422
+ configuration. Additionally, we introduced GSM8K (8-shot@1), MATH (4-shot@1),
423
+ HumanEval (0-shot@1), and MBPP (3-shot@1) under the category "Math & Code". Due
424
+ to technical constraints, we did not test Falcon-180 on QuAC and OBQA; the score
425
+ is derived by averaging the scores on the remaining tasks. Since the scores for
426
+ these two tasks are generally lower than the average, we believe that
427
+ Falcon-180B's performance was not underestimated.
428
+
429
+ ## Usage
430
+
431
+ Please visit our [github repository](https://github.com/01-ai/Yi) for general
432
+ guidance on how to use this model.
433
+
434
+ ## Disclaimer
435
+
436
+ Although we use data compliance checking algorithms during the training process
437
+ to ensure the compliance of the trained model to the best of our ability, due to
438
+ the complexity of the data and the diversity of language model usage scenarios,
439
+ we cannot guarantee that the model will generate correct and reasonable output
440
+ in all scenarios. Please be aware that there is still a risk of the model
441
+ producing problematic outputs. We will not be responsible for any risks and
442
+ issues resulting from misuse, misguidance, illegal usage, and related
443
+ misinformation, as well as any associated data security concerns.
444
+
445
+ ## License
446
+
447
+ The Yi series models are fully open for academic research and free commercial
448
+ usage with permission via applications. All usage must adhere to the [Model
449
+ License Agreement 2.0](https://huggingface.co/01-ai/Yi-6B/blob/main/LICENSE). To
450
+ apply for the official commercial license, please contact us
451