Update README.md
Browse files
README.md
CHANGED
@@ -33,16 +33,23 @@ extra_gated_fields:
|
|
33 |
</p>
|
34 |
|
35 |
|
36 |
-
## <span id="Introduction"
|
37 |
-
|
38 |
-
Nanbeige2-8B-Chat是南北阁实验室最新研发的80亿参数模型,在预训练中使用4.5T Tokens高质量语料。
|
39 |
-
在对齐阶段,我们首先使用了100万条样本进行SFT训练,然后用40万高质量且难度较高的样本进行课程学习,再通过人类反馈DPO,得到Nanbeige2-8B-Chat。Nanbeige2-8B-Chat在各个权威测评数据集上都取得了较优的效果。
|
40 |
-
|
41 |
|
42 |
The Nanbeige2-8B-Chat is the latest 8B model developed by the Nanbeige Lab, which utilized 4.5T tokens of high-quality training data during the training phase.
|
43 |
During the alignment phase, we initially trained our model using 1 million samples through Supervised Fine-Tuning (SFT). We then engaged in curriculum learning with 400,000 high-quality samples that presented a greater level of difficulty. Subsequently, we incorporated human feedback through the Dynamic Policy Optimization (DPO), culminating in the development of Nanbeige2-8B-Chat. Nanbeige2-8B-Chat has achieved superior performance across various authoritative benchmark datasets.
|
44 |
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
```
|
48 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
@@ -71,14 +78,10 @@ resp = tokenizer.decode(output_ids[0][len(input_ids[0]):], skip_special_tokens=T
|
|
71 |
print(resp)
|
72 |
```
|
73 |
|
74 |
-
## <span id="Limitations"
|
75 |
-
|
76 |
-
虽然我们在训练过程中非常注重模型的安全性,力求确保其输出符合伦理和法律要求的文本,但由于模型大小和概率生成范式的限制,无法完全避免产生各种不符合预期的输出情况。这些输出可能包含偏见、歧视等有害内容,请勿传播这些内容。我们不承担因传播不良信息而导致的任何后果。
|
77 |
|
78 |
While we place great emphasis on the safety of the model during the training process, striving to ensure that its outputs align with ethical and legal requirements, it may not completely avoid generating unexpected outputs due to the model's size and probabilistic nature. These outputs may include harmful content such as bias or discrimination. Please don't propagate such content. We do not assume any responsibility for the consequences resulting from the dissemination of inappropriate information.
|
79 |
|
80 |
-
## <span id="License"
|
81 |
-
|
82 |
-
使用 Nanbeige 模型时,您必须遵守 Apache 2.0 许可证和[《南北阁大语言模型许可协议》](https://huggingface.co/Nanbeige/Nanbeige-16B-Base-32k/resolve/main/南北阁大语言模型许可协议.pdf)。如果您打算将 Nanbeige 模型或其衍生产品用于商业目的,请通过以下联系邮箱 [email protected] 提交申请材料,以满足《南北阁大语言模型许可协议》的要求。经过审核后,我们将授予您非排他性、全球范围内、不可转让、不可再许可、可撤销的商业版权许可。
|
83 |
|
84 |
When using the Nanbeige models, you must comply with the Apache 2.0 License and the [License Agreement for Large Language Models Nanbeige](https://huggingface.co/Nanbeige/Nanbeige-16B-Base-32k/resolve/main/License_Agreement_for_Large_Language_Models_Nanbeige.pdf). If you intend to use the Nanbeige Models or its derivatives for commercial purposes, please submit application materials to meet the requirements of the Nanbeige Models Community License Agreement by contacting [email protected]. After review, We will grant you a non-exclusive, worldwide, non-transferable, non-sublicensable and revocable commercial copyright license.
|
|
|
33 |
</p>
|
34 |
|
35 |
|
36 |
+
## <span id="Introduction">Introduction</span>
|
|
|
|
|
|
|
|
|
37 |
|
38 |
The Nanbeige2-8B-Chat is the latest 8B model developed by the Nanbeige Lab, which utilized 4.5T tokens of high-quality training data during the training phase.
|
39 |
During the alignment phase, we initially trained our model using 1 million samples through Supervised Fine-Tuning (SFT). We then engaged in curriculum learning with 400,000 high-quality samples that presented a greater level of difficulty. Subsequently, we incorporated human feedback through the Dynamic Policy Optimization (DPO), culminating in the development of Nanbeige2-8B-Chat. Nanbeige2-8B-Chat has achieved superior performance across various authoritative benchmark datasets.
|
40 |
|
41 |
+
|
42 |
+
## <span id="Evaluation">Evaluation</span>
|
43 |
+
|
44 |
+
We have evaluated Nanbeige2-8B-Chat's general question-answering capabilities and human preference alignments on several popular benchmark datasets. The model has achieved notable results in single-turn English QA ([AlpacaEval 2.0](https://tatsu-lab.github.io/alpaca_eval/)), single-turn Chinese QA ([AlignBench](https://github.com/THUDM/AlignBench)), and multi-turn English QA ([MT-Bench](https://arxiv.org/abs/2306.05685)).
|
45 |
+
|
46 |
+
| AlpacaEval 2.0 | AlignBench | MT-Bench |
|
47 |
+
| -------------- | ---------- | -------- |
|
48 |
+
| 25.2%/39.4% | 7.03 | 7.82 |
|
49 |
+
|
50 |
+
Additionally, we have published the performance of our model on [FlagEval](https://flageval.baai.ac.cn/#/trending)(SFT model leaderboard) and [OpenCompass Leaderboard](https://rank.opencompass.org.cn/leaderboard-llm). It is highly competitive among models with less than 10B
|
51 |
+
|
52 |
+
## <span id="Inference">Inference</span>
|
53 |
|
54 |
```
|
55 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
78 |
print(resp)
|
79 |
```
|
80 |
|
81 |
+
## <span id="Limitations">Limitations</span>
|
|
|
|
|
82 |
|
83 |
While we place great emphasis on the safety of the model during the training process, striving to ensure that its outputs align with ethical and legal requirements, it may not completely avoid generating unexpected outputs due to the model's size and probabilistic nature. These outputs may include harmful content such as bias or discrimination. Please don't propagate such content. We do not assume any responsibility for the consequences resulting from the dissemination of inappropriate information.
|
84 |
|
85 |
+
## <span id="License">License</span>
|
|
|
|
|
86 |
|
87 |
When using the Nanbeige models, you must comply with the Apache 2.0 License and the [License Agreement for Large Language Models Nanbeige](https://huggingface.co/Nanbeige/Nanbeige-16B-Base-32k/resolve/main/License_Agreement_for_Large_Language_Models_Nanbeige.pdf). If you intend to use the Nanbeige Models or its derivatives for commercial purposes, please submit application materials to meet the requirements of the Nanbeige Models Community License Agreement by contacting [email protected]. After review, We will grant you a non-exclusive, worldwide, non-transferable, non-sublicensable and revocable commercial copyright license.
|