Kearm commited on
Commit
8315a33
1 Parent(s): dbdcda0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +107 -1
README.md CHANGED
@@ -24,4 +24,110 @@ Special thanks to [Tensorwave](https://tensorwave.com/) for providing the comput
24
 
25
  # Example Outputs
26
 
27
- TBD
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  # Example Outputs
26
 
27
+ Betrayal by my own model:
28
+
29
+ 卢志成;
30
+ 江畔,楼台前。
31
+ 峻峰之间,迎接一儿。
32
+ 翩翩少年,英姿飒爽。
33
+ 年少有为,莫负韶华。
34
+ 吾心澄澈,才见真容。
35
+ 志在峰巅,求而不得。
36
+ 永不曾屈,从未气馁。
37
+ 年过半百,犹存壮心。
38
+ 乘风破浪,肆意翱翔。
39
+ 尽心尽职,心系苍生。
40
+ 吾心中无愧,天地无忧。
41
+
42
+ When prompted by my mother to write a poem about me from my Chinese name I will apparently always be ambitious but will not ever reach true success even when I am 50 💀
43
+
44
+ # Orignal Model Card Below
45
+
46
+ # Qwen2-7B
47
+
48
+ ## Introduction
49
+
50
+ Qwen2 is the new series of Qwen large language models. For Qwen2, we release a number of base language models and instruction-tuned language models ranging from 0.5 to 72 billion parameters, including a Mixture-of-Experts model. This repo contains the 7B Qwen2 base language model.
51
+
52
+ Compared with the state-of-the-art opensource language models, including the previous released Qwen1.5, Qwen2 has generally surpassed most opensource models and demonstrated competitiveness against proprietary models across a series of benchmarks targeting for language understanding, language generation, multilingual capability, coding, mathematics, reasoning, etc.
53
+
54
+ For more details, please refer to our [blog](https://qwenlm.github.io/blog/qwen2/), [GitHub](https://github.com/QwenLM/Qwen2), and [Documentation](https://qwen.readthedocs.io/en/latest/).
55
+ <br>
56
+
57
+
58
+ ## Model Details
59
+ Qwen2 is a language model series including decoder language models of different model sizes. For each size, we release the base language model and the aligned chat model. It is based on the Transformer architecture with SwiGLU activation, attention QKV bias, group query attention, etc. Additionally, we have an improved tokenizer adaptive to multiple natural languages and codes.
60
+
61
+ ## Requirements
62
+ The code of Qwen2 has been in the latest Hugging face transformers and we advise you to install `transformers>=4.37.0`, or you might encounter the following error:
63
+ ```
64
+ KeyError: 'qwen2'
65
+ ```
66
+
67
+
68
+ ## Usage
69
+
70
+ We do not advise you to use base language models for text generation. Instead, you can apply post-training, e.g., SFT, RLHF, continued pretraining, etc., on this model.
71
+
72
+
73
+ ### Performance
74
+
75
+ The evaluation of base models mainly focuses on the model performance of natural language understanding, general question answering, coding, mathematics, scientific knowledge, reasoning, multilingual capability, etc.
76
+
77
+ The datasets for evaluation include:
78
+
79
+ **English Tasks**: MMLU (5-shot), MMLU-Pro (5-shot), GPQA (5shot), Theorem QA (5-shot), BBH (3-shot), HellaSwag (10-shot), Winogrande (5-shot), TruthfulQA (0-shot), ARC-C (25-shot)
80
+
81
+ **Coding Tasks**: EvalPlus (0-shot) (HumanEval, MBPP, HumanEval+, MBPP+), MultiPL-E (0-shot) (Python, C++, JAVA, PHP, TypeScript, C#, Bash, JavaScript)
82
+
83
+ **Math Tasks**: GSM8K (4-shot), MATH (4-shot)
84
+
85
+ **Chinese Tasks**: C-Eval(5-shot), CMMLU (5-shot)
86
+
87
+ **Multilingual Tasks**: Multi-Exam (M3Exam 5-shot, IndoMMLU 3-shot, ruMMLU 5-shot, mMMLU 5-shot), Multi-Understanding (BELEBELE 5-shot, XCOPA 5-shot, XWinograd 5-shot, XStoryCloze 0-shot, PAWS-X 5-shot), Multi-Mathematics (MGSM 8-shot), Multi-Translation (Flores-101 5-shot)
88
+
89
+
90
+
91
+ #### Qwen2-7B performance
92
+ | Datasets | Mistral-7B | Gemma-7B | Llama-3-8B | Qwen1.5-7B | Qwen2-7B |
93
+ | :--------| :---------: | :------------: | :------------: | :------------: | :------------: |
94
+ |# Params | 7.2B | 8.5B | 8.0B | 7.7B | 7.6B |
95
+ |# Non-emb Params | 7.0B | 7.8B | 7.0B | 6.5B | 6.5B |
96
+ | ***English*** | | | | | |
97
+ |MMLU | 64.2 | 64.6 | 66.6 | 61.0 | **70.3** |
98
+ |MMLU-Pro | 30.9 | 33.7 | 35.4 | 29.9 | **40.0** |
99
+ |GPQA | 24.7 | 25.7 | 25.8 | 26.7 | **31.8** |
100
+ |Theorem QA | 19.2 | 21.5 | 22.1 | 14.2 | **31.1** |
101
+ |BBH | 56.1 | 55.1 | 57.7 | 40.2 | **62.6** |
102
+ |HellaSwag | **83.2** | 82.2 | 82.1 | 78.5 | 80.7 |
103
+ |Winogrande | 78.4 | **79.0** | 77.4 | 71.3 | 77.0 |
104
+ |ARC-C | 60.0 | **61.1** | 59.3 | 54.2 | 60.6 |
105
+ |TruthfulQA | 42.2 | 44.8 | 44.0 | 51.1 | **54.2** |
106
+ | ***Coding*** | | | | | |
107
+ |HumanEval | 29.3 | 37.2 | 33.5 | 36.0 | **51.2** |
108
+ |MBPP | 51.1 | 50.6 | 53.9 | 51.6 | **65.9** |
109
+ |EvalPlus | 36.4 | 39.6 | 40.3 | 40.0 | **54.2** |
110
+ |MultiPL-E | 29.4 | 29.7 | 22.6 | 28.1 | **46.3** |
111
+ | ***Mathematics*** | | | | | |
112
+ |GSM8K | 52.2 | 46.4 | 56.0 | 62.5 | **79.9** |
113
+ |MATH | 13.1 | 24.3 | 20.5 | 20.3 | **44.2** |
114
+ | ***Chinese*** | | | | | |
115
+ |C-Eval | 47.4 | 43.6 | 49.5 | 74.1 | **83.2** |
116
+ |CMMLU | - | - | 50.8 | 73.1 | **83.9** |
117
+ | ***Multilingual*** | | | | | |
118
+ |Multi-Exam | 47.1 | 42.7 | 52.3 | 47.7 | **59.2** |
119
+ |Multi-Understanding | 63.3 | 58.3 | 68.6 | 67.6 | **72.0** |
120
+ |Multi-Mathematics | 26.3 | 39.1 | 36.3 | 37.3 | **57.5** |
121
+ |Multi-Translation | 23.3 | 31.2 | **31.9** | 28.4 | 31.5 |
122
+
123
+
124
+ ## Citation
125
+
126
+ If you find our work helpful, feel free to give us a cite.
127
+
128
+ ```
129
+ @article{qwen2,
130
+ title={Qwen2 Technical Report},
131
+ year={2024}
132
+ }
133
+ ```