Update README.md
Browse files
README.md
CHANGED
@@ -22,9 +22,9 @@ pipeline_tag: text-generation
|
|
22 |
|
23 |
<h4 align="center">
|
24 |
<p>
|
25 |
-
<b
|
26 |
-
<a href="http://git.ainirobot.com/llm/Orion/blob/master/
|
27 |
-
🤗 <a href="https://huggingface.co/OrionStarAI" target="_blank">HuggingFace
|
28 |
<p>
|
29 |
</h4>
|
30 |
|
@@ -32,58 +32,57 @@ pipeline_tag: text-generation
|
|
32 |
|
33 |
|
34 |
|
35 |
-
#
|
36 |
|
37 |
-
- [📖
|
38 |
-
- [🔗
|
39 |
-
- [🔖
|
40 |
-
- [📊
|
41 |
-
- [📜
|
42 |
-
- [🥇
|
43 |
|
44 |
-
# 1.
|
45 |
|
46 |
-
- Orion-14B-
|
47 |
|
48 |
-
- Orion-14B
|
49 |
-
-
|
50 |
-
-
|
51 |
-
-
|
52 |
-
-
|
53 |
-
-
|
54 |
-
<div align="center">
|
55 |
-
<img src="./assets/imgs/
|
56 |
</div>
|
57 |
|
58 |
-
-
|
59 |
-
- **Orion-14B-Base:**
|
60 |
-
- **Orion-14B-Chat:**
|
61 |
-
- **Orion-14B-LongChat:**
|
62 |
-
- **Orion-14B-Chat-RAG:**
|
63 |
-
- **Orion-14B-Chat-Plugin:**
|
64 |
-
- **Orion-14B-Base-Int4:**
|
65 |
-
- **Orion-14B-Chat-Int4:**
|
66 |
-
|
67 |
-
# 2.
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
72 |
-
|
73 |
-
| ⚾
|
74 |
-
| 😛
|
75 |
-
| 📃
|
76 |
-
| 🔎
|
77 |
-
| 🔌
|
78 |
-
| 💼
|
79 |
-
| 📦
|
80 |
-
|
81 |
-
# 3.
|
82 |
-
|
83 |
-
## 3.1.
|
84 |
-
|
85 |
-
|
86 |
-
| 模型名称 | C-Eval | CMMLU | MMLU | AGIEval | Gaokao | BBH |
|
87 |
|--------------------|----------|----------|----------|----------|----------|----------|
|
88 |
| LLaMA2-13B | 41.4 | 38.4 | 55.0 | 30.9 | 18.2 | 45.6 |
|
89 |
| Skywork-13B | 59.1 | 61.4 | 62.7 | 43.6 | 56.1 | 48.3 |
|
@@ -92,8 +91,8 @@ pipeline_tag: text-generation
|
|
92 |
| InternLM-20B | 58.8 | 59.0 | 62.1 | 44.6 | 45.5 | 52.5 |
|
93 |
| **Orion-14B-Base** | **72.9** | **70.6** | **69.9** | **54.7** | 62.1 | **56.5** |
|
94 |
|
95 |
-
### 3.1.2.
|
96 |
-
|
|
97 |
|--------------------|----------|----------|----------|----------|----------|----------|
|
98 |
| LLaMA 2-13B | 63.0 | 58.9 | 77.5 | 79.8 | 76.5 | 66.3 |
|
99 |
| Skywork-13B | 87.6 | 84.1 | 73.7 | 78.3 | 71.8 | 66.3 |
|
@@ -102,8 +101,8 @@ pipeline_tag: text-generation
|
|
102 |
| InternLM-20B | 86.4 | 83.3 | 78.1 | **80.3** | 71.8 | 68.3 |
|
103 |
| **Orion-14B-Base** | **93.3** | **91.3** | 78.5 | 79.5 | **78.9** | **70.2** |
|
104 |
|
105 |
-
### 3.1.3. OpenCompass
|
106 |
-
|
|
107 |
|------------------|----------|----------|----------|----------|----------|----------|
|
108 |
| LLaMA 2-13B | 47.3 | 45.2 | 47.0 | 58.3 | 50.9 | 43.6 |
|
109 |
| Skywork-13B | 53.6 | 61.1 | 51.3 | 52.7 | 64.5 | 45.2 |
|
@@ -112,8 +111,8 @@ pipeline_tag: text-generation
|
|
112 |
| InternLM-20B | 59.4 | 62.5 | 55.0 | **60.1** | 67.3 | 54.9 |
|
113 |
|**Orion-14B-Base**| **64.4** | **71.4** | **55.0** | 60.0 | **71.9** | **61.6** |
|
114 |
|
115 |
-
### 3.1.4.
|
116 |
-
|
|
117 |
|--------------------|----------|----------|----------|----------|----------|----------|----------|----------|----------|
|
118 |
| PLaMo-13B | 52.3 | 56.7 | 42.8 | 95.8 | 70.6 | 71.0 | 8.70 | 70.5 | 2.40 |
|
119 |
| WebLab-10B | 50.7 | 66.6 | 53.7 | 82.1 | 62.9 | 56.2 | 10.0 | 72.0 | 2.40 |
|
@@ -125,8 +124,8 @@ pipeline_tag: text-generation
|
|
125 |
| Yi-34B | 67.1 | 83.8 | 61.2 | 95.2 | **86.1** | 78.5 | **27.2** | 69.2 | 35.2 |
|
126 |
| **Orion-14B-Base** | **69.1** | **88.2** | **75.8** | 94.1 | 75.7 | **85.1** | 17.3 | **78.8** | **38.0** |
|
127 |
|
128 |
-
### 3.1.5.
|
129 |
-
|
|
130 |
|------------------|------------------------------|------------------------------|------------------------------|------------------------------|------------------------------|
|
131 |
| KoGPT | 53.0 70.1 | 55.9 58.3 | 73.5 72.9 | 45.1 59.8 | 37.5 89.4 |
|
132 |
| Polyglot-ko-13B | 69.6 73.7 |**59.5** **63.1**|**79.4** **81.1**| 48.2 60.4 | 91.2 90.2 |
|
@@ -134,10 +133,10 @@ pipeline_tag: text-generation
|
|
134 |
| Baichuan 2-13B | 52.1 58.7 | 39.2 39.6 | 60.6 60.6 | 58.4 61.5 | 50.3 72.9 |
|
135 |
| QWEN-14B | 53.8 73.7 | 45.3 46.8 | 64.9 68.9 | 33.4 83.5 | 71.5 95.7 |
|
136 |
| Yi-34B | 54.2 72.1 | 44.6 44.7 | 58.0 60.6 | 65.9 90.2 | 48.3 92.9 |
|
137 |
-
|**Orion-14B-
|
138 |
|
139 |
-
### 3.1.6.
|
140 |
-
|
|
141 |
|--------------------|------------|----------|----------|----------|----------|
|
142 |
| PLaMo-13B | En,Jp | 52.3 | * | * | * |
|
143 |
| Weblab-10B | En,Jp | 50.7 | * | * | * |
|
@@ -149,32 +148,34 @@ pipeline_tag: text-generation
|
|
149 |
| Qwen-14B | Multi | 65.8 | 73.7 | 64.5 | 65.4 |
|
150 |
| Llama2-13B | Multi | 46.3 | 63.7 | 41.4 | 55.3 |
|
151 |
| Yi-34B | Multi | 67.1 | 72.2 | 58.7 | **68.8** |
|
152 |
-
| **Orion-14B-
|
|
|
153 |
|
154 |
-
## 3.2.
|
155 |
-
### 3.2.1.
|
156 |
-
|
|
157 |
|----------------------|----------|----------|----------|
|
158 |
| Baichuan2-13B-Chat | 7.05 | 6.47 | 6.76 |
|
159 |
| Qwen-14B-Chat | 7.30 | 6.62 | 6.96 |
|
160 |
| Llama2-13B-Chat | 7.10 | 6.20 | 6.65 |
|
161 |
| InternLM-20B-Chat | 7.03 | 5.93 | 6.48 |
|
162 |
| **Orion-14B-Chat** | **7.68** | **7.07** | **7.37** |
|
163 |
-
|
164 |
-
|
165 |
-
### 3.2.2.
|
166 |
-
|
|
167 |
-
|
168 |
-
| Baichuan2-13B-Chat |
|
169 |
-
| Qwen-14B-Chat
|
170 |
-
| Llama2-13B-Chat |
|
171 |
-
| InternLM-20B-Chat |
|
172 |
-
| **Orion-14B-Chat** |
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
|
|
178 |
|--------------------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|
|
179 |
| GPT-3.5-Turbo-16k | **23.60** | **52.30** | **61.20** | 28.70 | 23.40 | **16.00** | 68.00 | **91.40** | 29.20 | 53.60 |
|
180 |
| LongChat-v1.5-7B-32k | 16.90 | 41.40 | 29.10 | 19.50 | 22.70 | 9.90 | 63.50 | 82.30 | 23.20 | 55.30 |
|
@@ -182,40 +183,41 @@ pipeline_tag: text-generation
|
|
182 |
| Yi-6B-200K | 14.11 | 36.74 | 22.68 | 14.01 | 20.44 | 8.08 | 72.00 | 86.61 | 38.00 | **63.29** |
|
183 |
| Orion-14B-LongChat | 19.47 | 48.11 | 55.84 | **37.02** | **24.87** | 15.44 | **77.00** | 89.12 | **45.50** | 54.31 |
|
184 |
|
185 |
-
|
186 |
-
|
187 |
-
|
|
|
188 |
|---------------------|------|------|------|------|------|------|
|
189 |
| Baichuan2-13B-Chat | 85 | 76 | 1 | 0 | 69 | 51 |
|
190 |
| Qwen-14B-Chat | 79 | 77 | 75 | 47 | 68 | 72 |
|
191 |
| Qwen-72B-Chat(Int4) | 87 | 89 | 90 | 32 | 67 | 76 |
|
192 |
| GPT-4 | 91 | 94 | 96 | 95 | 75 | 86 |
|
193 |
| Orion-14B-Chat-RAG | 86 | 87 | 91 | 97 | 73 | 71 |
|
194 |
-
\*
|
195 |
|
196 |
-
## 3.5.
|
197 |
-
### 3.5.1.
|
198 |
-
|
|
199 |
|-----------------------|--------|-----------|--------|
|
200 |
| Baichuan2-13B-Chat | 25 | 0 | 0 |
|
201 |
| Qwen-14B-Chat | 55 | 0 | 50 |
|
202 |
| GPT-4 | **95** | 52.38 | 70 |
|
203 |
-
| Orion-14B-Chat-Plugin |
|
204 |
-
|
205 |
-
## 3.6. 量化模型Orion-14B-Base-Int4评估
|
206 |
-
### 3.6.1. 量化前后整体对比
|
207 |
-
|模型名称|模型大小(GB)|推理速度(令牌数/秒)|C-Eval |CMMLU |MMLU |RACE | HellaSwag|
|
208 |
-
|-------------------------|------|-----|------|------|------|------|------|
|
209 |
-
| OrionStar-14B-Base | 28.0 | 135 | 72.8 | 70.6 | 70.0 | 93.3 | 78.5 |
|
210 |
-
| OrionStar-14B-Base-Int4 | 8.3 | 178 | 71.8 | 69.8 | 69.2 | 93.1 | 78.0 |
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
|
213 |
-
# 4.
|
214 |
|
215 |
-
|
216 |
-
|
|
|
217 |
|
218 |
-
## 4.1. Python
|
219 |
|
220 |
```python
|
221 |
import torch
|
@@ -227,106 +229,107 @@ model = AutoModelForCausalLM.from_pretrained("OrionStarAI/Orion-14B", device_map
|
|
227 |
torch_dtype=torch.bfloat16, trust_remote_code=True)
|
228 |
|
229 |
model.generation_config = GenerationConfig.from_pretrained("OrionStarAI/Orion-14B")
|
230 |
-
messages = [{"role": "user", "content": "
|
231 |
-
response = model.chat(tokenizer, messages, streaming=
|
232 |
print(response)
|
233 |
|
234 |
```
|
235 |
|
236 |
-
|
237 |
-
|
238 |
|
239 |
-
## 4.2.
|
240 |
|
241 |
```shell
|
242 |
CUDA_VISIBLE_DEVICES=0 python cli_demo.py
|
243 |
```
|
244 |
|
245 |
-
|
246 |
|
247 |
-
## 4.3.
|
248 |
|
249 |
```shell
|
|
|
250 |
# base model
|
251 |
-
CUDA_VISIBLE_DEVICES=0 python demo/text_generation_base.py --model OrionStarAI/Orion-14B --tokenizer OrionStarAI/Orion-14B --prompt
|
252 |
|
253 |
# chat model
|
254 |
-
CUDA_VISIBLE_DEVICES=0 python demo/text_generation.py --model OrionStarAI/Orion-14B-Chat --tokenizer OrionStarAI/Orion-14B-Chat --prompt
|
255 |
|
256 |
```
|
257 |
|
258 |
-
## 4.4
|
259 |
|
260 |
-
### 4.4.1.
|
261 |
|
262 |
`````
|
263 |
-
|
264 |
-
Orion-14B
|
265 |
-
|
266 |
-
Orion-14B
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
杰克按照书上所写的步骤进行操作,成功地解开了格里姆身上的诅咒。巨人感激不已,他答应帮助杰克实现他的愿望。
|
281 |
-
|
282 |
-
从此以后,杰克和格里姆成为了好朋友,他们一起经历了许多惊险刺激的冒险,并用他们的勇气和智慧战胜了各种困难。
|
283 |
-
|
284 |
-
这个故事告诉我们,只要有勇气和决心,我们就能克服一切困难,实现自己的梦想。
|
285 |
`````
|
286 |
|
287 |
-
### 4.4.2.
|
288 |
|
289 |
`````
|
290 |
-
|
291 |
Orion-14B:こんにちは、私の名前はChatMaxで、OrionStarによって開発されたAIアシスタントです。私はユーザーに正確で、客観的で、有用な回答を提供し、彼らが問題を解決し、情報を取得するのを助けることができます。
|
292 |
-
|
293 |
Orion-14B:안녕하세요, 제 이름은 ChatMax입니다. OrionStar에서 개발한 AI 어시스턴트입니다. 저는 사용자들에게 정확하고 객관적이며 유용한 답변을 제공하여 문제를 해결하고 정보를 얻는 데 도���을 줄 수 있습니다.
|
294 |
`````
|
295 |
|
296 |
|
297 |
-
# 5.
|
298 |
-
|
299 |
-
## 5.1. 声明
|
300 |
|
301 |
-
|
302 |
-
Orion-14B 模型用于未经适当安全审查和备案的互联网服务。
|
303 |
|
304 |
-
|
305 |
-
|
306 |
-
|
|
|
|
|
|
|
|
|
|
|
307 |
|
308 |
-
## 5.2.
|
309 |
|
310 |
-
|
311 |
-
-
|
312 |
-
-
|
313 |
|
314 |
-
# 6. 企业介绍
|
315 |
|
316 |
-
|
317 |
|
318 |
-
|
319 |
-
|
320 |
-
|
|
|
321 |
|
322 |
-
|
|
|
|
|
|
|
|
|
323 |
|
324 |
-
|
325 |
-
Engineering 、Agent开发的全链条能力和经验积累;拥有完整的端到端模型训练能力,包括系统化的数据处理流程和数百张GPU的并行模型训练能力,现已在大政务、云服务、出海电商、快消等多个行业场景落地。
|
326 |
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
|
331 |
<div align="center">
|
332 |
<img src="./assets/imgs/wechat_group.jpg" alt="wechat" width="40%" />
|
|
|
22 |
|
23 |
<h4 align="center">
|
24 |
<p>
|
25 |
+
<b>🌐English</b> |
|
26 |
+
<a href="http://git.ainirobot.com/llm/Orion/blob/master/README.MD">🇨🇳中文</a><br><br>
|
27 |
+
🤗 <a href="https://huggingface.co/OrionStarAI" target="_blank">HuggingFace Mainpage</a> | 🤖 <a href="https://modelscope.cn/organization/OrionStarAI" target="_blank">ModelScope Mainpage</a><br>🎬 <a href="https://huggingface.co/spaces/OrionStarAI/Orion-14B-App-Demo" target="_blank">HuggingFace Demo</a> | 🎫 <a href="https://modelscope.cn/studios/OrionStarAI/Orion-14B-App-Demo/summary" target="_blank">ModelScope Demo</a><br>📖 <a href="https://github.com/OrionStarAI/Orion/blob/master/doc/Orion14B_v3.pdf" target="_blank">Tech Report</a>
|
28 |
<p>
|
29 |
</h4>
|
30 |
|
|
|
32 |
|
33 |
|
34 |
|
35 |
+
# Table of Contents
|
36 |
|
37 |
+
- [📖 Model Introduction](#model-introduction)
|
38 |
+
- [🔗 Model Download](#model-download)
|
39 |
+
- [🔖 Model Benchmark](#model-benchmark)
|
40 |
+
- [📊 Model Inference](#model-inference)
|
41 |
+
- [📜 Declarations & License](#declarations-license)
|
42 |
+
- [🥇 Company Introduction](#company-introduction)
|
43 |
|
44 |
+
# 1. Model Introduction
|
45 |
|
46 |
+
- Orion-14B series models are open-source multilingual large language models trained from scratch by OrionStarAI. The base model is trained on 2.5T multilingual corpus, including Chinese, English, Japanese, Korean, etc, and it exhibits superior performance in these languages. For details, please refer to [tech report](https://github.com/OrionStarAI/Orion/blob/master/doc/Orion14B_v3.pdf).
|
47 |
|
48 |
+
- The Orion-14B series models exhibit the following features:
|
49 |
+
- Among models with 20B-parameter scale level, Orion-14B-Base model shows outstanding performance in comprehensive evaluations.
|
50 |
+
- Strong multilingual capabilities, significantly outperforming in Japanese and Korean testsets.
|
51 |
+
- The fine-tuned models demonstrate strong adaptability, excelling in human-annotated blind tests.
|
52 |
+
- The long-chat version supports extremely long texts, extending up to 200K tokens.
|
53 |
+
- The quantized versions reduce model size by 70%, improve inference speed by 30%, with performance loss less than 1%.
|
54 |
+
<div align="center">
|
55 |
+
<img src="./assets/imgs/model_cap_en.png" alt="model_cap_en" width="50%" />
|
56 |
</div>
|
57 |
|
58 |
+
- Orion-14B series models including:
|
59 |
+
- **Orion-14B-Base:** A multilingual large language foundational model with 14 billion parameters, pretrained on a diverse dataset of 2.5 trillion tokens.
|
60 |
+
- **Orion-14B-Chat:** A chat-model fine-tuned on a high-quality corpus aims to provide an excellence interactive experience for users in the large model community.
|
61 |
+
- **Orion-14B-LongChat:** This model is optimized for long context lengths more than 200k tokens and demonstrates performance comparable to proprietary models on long context evaluation sets.
|
62 |
+
- **Orion-14B-Chat-RAG:** A chat-model fine-tuned on a custom retrieval augmented generation dataset, achieving superior performance in retrieval augmented generation tasks.
|
63 |
+
- **Orion-14B-Chat-Plugin:** A chat-model specifically tailored for plugin and function calling tasks, ideal for agent-related scenarios where the LLM acts as a plugin and function call system.
|
64 |
+
- **Orion-14B-Base-Int4:** A quantized base model utilizing 4-bit integer weights. It significantly reduces the model size by 70% and increases the inference speed by 30% while incurring a minimal performance loss of only 1%.
|
65 |
+
- **Orion-14B-Chat-Int4:** A quantized chat model utilizing 4-bit integer weights.
|
66 |
+
|
67 |
+
# 2. Model Download
|
68 |
+
|
69 |
+
Model release and download links are provided in the table below:
|
70 |
+
|
71 |
+
| Model Name | HuggingFace Download Links | ModelScope Download Links |
|
72 |
+
|-------------------------|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
|
73 |
+
| ⚾Orion-14B-Base | [Orion-14B-Base](https://huggingface.co/OrionStarAI/Orion-14B-Base) | [Orion-14B-Base](https://modelscope.cn/models/OrionStarAI/Orion-14B-Base/summary) |
|
74 |
+
| 😛Orion-14B-Chat | [Orion-14B-Chat](https://huggingface.co/OrionStarAI/Orion-14B-Chat) | [Orion-14B-Chat](https://modelscope.cn/models/OrionStarAI/Orion-14B-Chat/summary) |
|
75 |
+
| 📃Orion-14B-LongChat | [Orion-14B-LongChat](https://huggingface.co/OrionStarAI/Orion-14B-LongChat) | [Orion-14B-LongChat](https://modelscope.cn/models/OrionStarAI/Orion-14B-LongChat/summary) |
|
76 |
+
| 🔎Orion-14B-Chat-RAG | [Orion-14B-Chat-RAG](https://huggingface.co/OrionStarAI/Orion-14B-Chat-RAG) | [Orion-14B-Chat-RAG](https://modelscope.cn/models/OrionStarAI/Orion-14B-Chat-RAG/summary) |
|
77 |
+
| 🔌Orion-14B-Chat-Plugin | [Orion-14B-Chat-Plugin](https://huggingface.co/OrionStarAI/Orion-14B-Chat-Plugin) | [Orion-14B-Chat-Plugin](https://modelscope.cn/models/OrionStarAI/Orion-14B-Chat-Plugin/summary) |
|
78 |
+
| 💼Orion-14B-Base-Int4 | [Orion-14B-Base-Int4](https://huggingface.co/OrionStarAI/Orion-14B-Base-Int4) | [Orion-14B-Base-Int4](https://modelscope.cn/models/OrionStarAI/Orion-14B-Base-Int4/summary) |
|
79 |
+
| 📦Orion-14B-Chat-Int4 | [Orion-14B-Chat-Int4](https://huggingface.co/OrionStarAI/Orion-14B-Chat-Int4) | [Orion-14B-Chat-Int4](https://modelscope.cn/models/OrionStarAI/Orion-14B-Chat-Int4/summary) |
|
80 |
+
|
81 |
+
# 3. Model Benchmarks
|
82 |
+
|
83 |
+
## 3.1. Base Model Orion-14B-Base Benchmarks
|
84 |
+
### 3.1.1. LLM evaluation results on examination and professional knowledge
|
85 |
+
| Model | C-Eval | CMMLU | MMLU | AGIEval | Gaokao | BBH |
|
|
|
86 |
|--------------------|----------|----------|----------|----------|----------|----------|
|
87 |
| LLaMA2-13B | 41.4 | 38.4 | 55.0 | 30.9 | 18.2 | 45.6 |
|
88 |
| Skywork-13B | 59.1 | 61.4 | 62.7 | 43.6 | 56.1 | 48.3 |
|
|
|
91 |
| InternLM-20B | 58.8 | 59.0 | 62.1 | 44.6 | 45.5 | 52.5 |
|
92 |
| **Orion-14B-Base** | **72.9** | **70.6** | **69.9** | **54.7** | 62.1 | **56.5** |
|
93 |
|
94 |
+
### 3.1.2. LLM evaluation results on language understanding and common knowledge
|
95 |
+
| Model |RACE-middle|RACE-high |HellaSwag | PIQA | Lambada | WSC |
|
96 |
|--------------------|----------|----------|----------|----------|----------|----------|
|
97 |
| LLaMA 2-13B | 63.0 | 58.9 | 77.5 | 79.8 | 76.5 | 66.3 |
|
98 |
| Skywork-13B | 87.6 | 84.1 | 73.7 | 78.3 | 71.8 | 66.3 |
|
|
|
101 |
| InternLM-20B | 86.4 | 83.3 | 78.1 | **80.3** | 71.8 | 68.3 |
|
102 |
| **Orion-14B-Base** | **93.3** | **91.3** | 78.5 | 79.5 | **78.9** | **70.2** |
|
103 |
|
104 |
+
### 3.1.3. LLM evaluation results of OpenCompass testsets
|
105 |
+
| Model | Average | Examination | Language | Knowledge | Understanding | Reasoning |
|
106 |
|------------------|----------|----------|----------|----------|----------|----------|
|
107 |
| LLaMA 2-13B | 47.3 | 45.2 | 47.0 | 58.3 | 50.9 | 43.6 |
|
108 |
| Skywork-13B | 53.6 | 61.1 | 51.3 | 52.7 | 64.5 | 45.2 |
|
|
|
111 |
| InternLM-20B | 59.4 | 62.5 | 55.0 | **60.1** | 67.3 | 54.9 |
|
112 |
|**Orion-14B-Base**| **64.4** | **71.4** | **55.0** | 60.0 | **71.9** | **61.6** |
|
113 |
|
114 |
+
### 3.1.4. Comparison of LLM performances on Japanese testsets
|
115 |
+
| Model |**Average**| JCQA | JNLI | MARC | JSQD | JQK | XLS | XWN | MGSM |
|
116 |
|--------------------|----------|----------|----------|----------|----------|----------|----------|----------|----------|
|
117 |
| PLaMo-13B | 52.3 | 56.7 | 42.8 | 95.8 | 70.6 | 71.0 | 8.70 | 70.5 | 2.40 |
|
118 |
| WebLab-10B | 50.7 | 66.6 | 53.7 | 82.1 | 62.9 | 56.2 | 10.0 | 72.0 | 2.40 |
|
|
|
124 |
| Yi-34B | 67.1 | 83.8 | 61.2 | 95.2 | **86.1** | 78.5 | **27.2** | 69.2 | 35.2 |
|
125 |
| **Orion-14B-Base** | **69.1** | **88.2** | **75.8** | 94.1 | 75.7 | **85.1** | 17.3 | **78.8** | **38.0** |
|
126 |
|
127 |
+
### 3.1.5. Comparison of LLM performances on Korean testsets. n = 0 and n = 5 stand for n-shot prompts used in the evaluation
|
128 |
+
|Model | **Average**<br>n=0 n=5 | HellaSwag<br>n=0 n=5 | COPA<br> n=0 n=5 | BooIQ<br>n=0 n=5 | SentiNeg<br>n=0 n=5|
|
129 |
|------------------|------------------------------|------------------------------|------------------------------|------------------------------|------------------------------|
|
130 |
| KoGPT | 53.0 70.1 | 55.9 58.3 | 73.5 72.9 | 45.1 59.8 | 37.5 89.4 |
|
131 |
| Polyglot-ko-13B | 69.6 73.7 |**59.5** **63.1**|**79.4** **81.1**| 48.2 60.4 | 91.2 90.2 |
|
|
|
133 |
| Baichuan 2-13B | 52.1 58.7 | 39.2 39.6 | 60.6 60.6 | 58.4 61.5 | 50.3 72.9 |
|
134 |
| QWEN-14B | 53.8 73.7 | 45.3 46.8 | 64.9 68.9 | 33.4 83.5 | 71.5 95.7 |
|
135 |
| Yi-34B | 54.2 72.1 | 44.6 44.7 | 58.0 60.6 | 65.9 90.2 | 48.3 92.9 |
|
136 |
+
|**Orion-14B-Chat**|**74.5** **79.6**| 47.0 49.6 | 77.7 79.4 |**81.6** **90.7**|**92.4** **98.7**|
|
137 |
|
138 |
+
### 3.1.6. Multilingual evaluation
|
139 |
+
| Model | Train Lang | Japanese | Korean | Chinese | English |
|
140 |
|--------------------|------------|----------|----------|----------|----------|
|
141 |
| PLaMo-13B | En,Jp | 52.3 | * | * | * |
|
142 |
| Weblab-10B | En,Jp | 50.7 | * | * | * |
|
|
|
148 |
| Qwen-14B | Multi | 65.8 | 73.7 | 64.5 | 65.4 |
|
149 |
| Llama2-13B | Multi | 46.3 | 63.7 | 41.4 | 55.3 |
|
150 |
| Yi-34B | Multi | 67.1 | 72.2 | 58.7 | **68.8** |
|
151 |
+
| **Orion-14B-Chat** | Multi | **69.1** | **79.5** | **67.9** | 67.3 |
|
152 |
+
|
153 |
|
154 |
+
## 3.2. Chat Model Orion-14B-Chat Benchmarks
|
155 |
+
### 3.2.1. Chat model subjective evaluation of MTBench
|
156 |
+
| Model | First-Turn | Second-Turn | **Average** |
|
157 |
|----------------------|----------|----------|----------|
|
158 |
| Baichuan2-13B-Chat | 7.05 | 6.47 | 6.76 |
|
159 |
| Qwen-14B-Chat | 7.30 | 6.62 | 6.96 |
|
160 |
| Llama2-13B-Chat | 7.10 | 6.20 | 6.65 |
|
161 |
| InternLM-20B-Chat | 7.03 | 5.93 | 6.48 |
|
162 |
| **Orion-14B-Chat** | **7.68** | **7.07** | **7.37** |
|
163 |
+
\* use vllm for inference
|
164 |
+
|
165 |
+
### 3.2.2. Chat model subjective evaluation of AlignBench
|
166 |
+
| Model | Math. | Logi. | Basic. | Chi. | Comp. | Writ. | Role. | Prof. |**Avg.**|
|
167 |
+
|--------------------|--------|--------|--------|--------|--------|--------|--------|--------|--------|
|
168 |
+
| Baichuan2-13B-Chat | 3.76 | 4.07 | 6.22 | 6.05 | 7.11 | 6.97 | 6.75 | 6.43 | 5.25 |
|
169 |
+
| Qwen-14B-Chat |**4.91**|**4.71**|**6.90**| 6.36 | 6.74 | 6.64 | 6.59 | 6.56 |**5.72**|
|
170 |
+
| Llama2-13B-Chat | 3.05 | 3.79 | 5.43 | 4.40 | 6.76 | 6.63 | 6.99 | 5.65 | 4.70 |
|
171 |
+
| InternLM-20B-Chat | 3.39 | 3.92 | 5.96 | 5.50 |**7.18**| 6.19 | 6.49 | 6.22 | 4.96 |
|
172 |
+
| **Orion-14B-Chat** | 4.00 | 4.24 | 6.18 |**6.57**| 7.16 |**7.36**|**7.16**|**6.99**| 5.51 |
|
173 |
+
|
174 |
+
\* use vllm for inference
|
175 |
+
|
176 |
+
## 3.3. LongChat Model Orion-14B-LongChat Benchmarks
|
177 |
+
### 3.3.1. LongChat evaluation of LongBench
|
178 |
+
| Model | NarrativeQA|MultiFieldQA-en|MultiFieldQA-zh| DuReader | QMSum | VCSUM | TREC | TriviaQA | LSHT |RepoBench-P|
|
179 |
|--------------------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|
|
180 |
| GPT-3.5-Turbo-16k | **23.60** | **52.30** | **61.20** | 28.70 | 23.40 | **16.00** | 68.00 | **91.40** | 29.20 | 53.60 |
|
181 |
| LongChat-v1.5-7B-32k | 16.90 | 41.40 | 29.10 | 19.50 | 22.70 | 9.90 | 63.50 | 82.30 | 23.20 | 55.30 |
|
|
|
183 |
| Yi-6B-200K | 14.11 | 36.74 | 22.68 | 14.01 | 20.44 | 8.08 | 72.00 | 86.61 | 38.00 | **63.29** |
|
184 |
| Orion-14B-LongChat | 19.47 | 48.11 | 55.84 | **37.02** | **24.87** | 15.44 | **77.00** | 89.12 | **45.50** | 54.31 |
|
185 |
|
186 |
+
|
187 |
+
## 3.4. Chat RAG Model Benchmarks
|
188 |
+
### 3.4.1. LLM evaluation results of self-built RAG testsets
|
189 |
+
|Model|Effectiveness of Response(Keyword)|*Effectiveness of Response(subjective evaluation)|Quoting Ability|Fallback Ability|*AutoQA|*Data Extraction|
|
190 |
|---------------------|------|------|------|------|------|------|
|
191 |
| Baichuan2-13B-Chat | 85 | 76 | 1 | 0 | 69 | 51 |
|
192 |
| Qwen-14B-Chat | 79 | 77 | 75 | 47 | 68 | 72 |
|
193 |
| Qwen-72B-Chat(Int4) | 87 | 89 | 90 | 32 | 67 | 76 |
|
194 |
| GPT-4 | 91 | 94 | 96 | 95 | 75 | 86 |
|
195 |
| Orion-14B-Chat-RAG | 86 | 87 | 91 | 97 | 73 | 71 |
|
196 |
+
\* means manual assessment
|
197 |
|
198 |
+
## 3.5. Chat Plugin Model Orion-14B-Chat-Plugin Benchmarks
|
199 |
+
### 3.5.1. LLM evaluation results of self-built plugin testsets
|
200 |
+
|Model |Intent Recognition with Full Params |Intent Recognition with Missing Params |Non-Plugin Invocation Recognition |
|
201 |
|-----------------------|--------|-----------|--------|
|
202 |
| Baichuan2-13B-Chat | 25 | 0 | 0 |
|
203 |
| Qwen-14B-Chat | 55 | 0 | 50 |
|
204 |
| GPT-4 | **95** | 52.38 | 70 |
|
205 |
+
| Orion-14B-Chat-Plugin | 92.5 | **60.32** | **90** |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
+
## 3.6. Quantized Model Orion-14B-Base-Int4 Benchmarks
|
208 |
+
### 3.6.1. Comparison of before and after quantization
|
209 |
+
|Model |Size(GB)|Inference Speed(tokens/s)|C-Eval|CMMLU|MMLU|RACE|HellaSwag|
|
210 |
+
|-------------------------|-------|-----|------|------|------|------|------|
|
211 |
+
| OrionStar-14B-Base | 28.0 | 135 | 72.8 | 70.6 | 70.0 | 93.3 | 78.5 |
|
212 |
+
| OrionStar-14B-Base-Int4 | 8.3 | 178 | 71.8 | 69.8 | 69.2 | 93.1 | 78.0 |
|
213 |
|
214 |
+
# 4. Model Inference
|
215 |
|
216 |
+
Model weights, source code, and configuration needed for inference are published on Hugging Face, and the download link
|
217 |
+
is available in the table at the beginning of this document. We demonstrate various inference methods here, and the
|
218 |
+
program will automatically download the necessary resources from Hugging Face.
|
219 |
|
220 |
+
## 4.1. Python Code
|
221 |
|
222 |
```python
|
223 |
import torch
|
|
|
229 |
torch_dtype=torch.bfloat16, trust_remote_code=True)
|
230 |
|
231 |
model.generation_config = GenerationConfig.from_pretrained("OrionStarAI/Orion-14B")
|
232 |
+
messages = [{"role": "user", "content": "Hello, what is your name? "}]
|
233 |
+
response = model.chat(tokenizer, messages, streaming=False)
|
234 |
print(response)
|
235 |
|
236 |
```
|
237 |
|
238 |
+
In the above Python code, the model is loaded with `device_map='auto'` to utilize all available GPUs. To specify the
|
239 |
+
device, you can use something like `export CUDA_VISIBLE_DEVICES=0,1` (using GPUs 0 and 1).
|
240 |
|
241 |
+
## 4.2. Command Line Tool
|
242 |
|
243 |
```shell
|
244 |
CUDA_VISIBLE_DEVICES=0 python cli_demo.py
|
245 |
```
|
246 |
|
247 |
+
This command-line tool is designed for chat scenarios, and thus, it does not support calling the base model.
|
248 |
|
249 |
+
## 4.3. Direct Script Inference
|
250 |
|
251 |
```shell
|
252 |
+
|
253 |
# base model
|
254 |
+
CUDA_VISIBLE_DEVICES=0 python demo/text_generation_base.py --model OrionStarAI/Orion-14B --tokenizer OrionStarAI/Orion-14B --prompt hello
|
255 |
|
256 |
# chat model
|
257 |
+
CUDA_VISIBLE_DEVICES=0 python demo/text_generation.py --model OrionStarAI/Orion-14B-Chat --tokenizer OrionStarAI/Orion-14B-Chat --prompt hi
|
258 |
|
259 |
```
|
260 |
|
261 |
+
## 4.4 Example Output
|
262 |
|
263 |
+
### 4.4.1. Casual Chat
|
264 |
|
265 |
`````
|
266 |
+
User: Hello
|
267 |
+
Orion-14B: Hello! How can I help you today? If you have any questions or need assistance, feel free to ask.
|
268 |
+
User: What functions do you have?
|
269 |
+
Orion-14B: As an AI language model, I have a wide range of functions and capabilities, including but not limited to:
|
270 |
+
Answering general knowledge questions: I can provide information on various topics such as history, science, geography, and more.
|
271 |
+
Providing definitions and explanations: I can explain complex concepts and provide definitions for words and phrases.
|
272 |
+
Assisting with tasks: I can help with simple tasks like setting reminders, converting units of measurement, and even ordering food from restaurants.
|
273 |
+
Generating text: I can write short stories, essays, articles, and other types of content based on prompts given to me.
|
274 |
+
Translating languages: I can translate text from one language to another.
|
275 |
+
Chatting: I can engage in conversation with users and respond to their queries in a conversational manner.
|
276 |
+
Summarizing long texts: I can summarize longer texts like articles, books, and research papers.
|
277 |
+
Generating random numbers and names: I can generate random numbers within a specified range and also suggest names based on certain criteria.
|
278 |
+
Playing games: I can play simple games like Hangman, Trivia, and more.
|
279 |
+
Providing recommendations: I can recommend movies, music, books, and other forms of entertainment based on user preferences.
|
280 |
+
These are just some of the many functions that I am capable of performing. If you have a specific task in mind, feel free to ask me about it.
|
281 |
+
User: Tell me a joke.
|
282 |
+
Orion-14B: Sure, here's a classic one-liner: Why don't scientists trust atoms? Because they make up everything.
|
|
|
|
|
|
|
|
|
|
|
283 |
`````
|
284 |
|
285 |
+
### 4.4.2. Japanese & Korean Chat
|
286 |
|
287 |
`````
|
288 |
+
User:自己を紹介してください
|
289 |
Orion-14B:こんにちは、私の名前はChatMaxで、OrionStarによって開発されたAIアシスタントです。私はユーザーに正確で、客観的で、有用な回答を提供し、彼らが問題を解決し、情報を取得するのを助けることができます。
|
290 |
+
User:자기소개를 해주세요.
|
291 |
Orion-14B:안녕하세요, 제 이름은 ChatMax입니다. OrionStar에서 개발한 AI 어시스턴트입니다. 저는 사용자들에게 정확하고 객관적이며 유용한 답변을 제공하여 문제를 해결하고 정보를 얻는 데 도���을 줄 수 있습니다.
|
292 |
`````
|
293 |
|
294 |
|
295 |
+
# 5. Declarations, License
|
|
|
|
|
296 |
|
297 |
+
## 5.1. Declarations
|
|
|
298 |
|
299 |
+
We strongly urge all users not to use the Orion-14B model for any activities that may harm national or social security or violate the law.
|
300 |
+
Additionally, we request users not to use the Orion-14B model for internet services without proper security review and filing.
|
301 |
+
We hope all users abide by this principle to ensure that technological development takes place in a regulated and legal environment.
|
302 |
+
We have done our best to ensure the compliance of the data used in the model training process. However, despite our
|
303 |
+
significant efforts, unforeseen issues may still arise due to the complexity of the model and data. Therefore, if any
|
304 |
+
problems arise due to the use of the Orion-14B open-source model, including but not limited to data security
|
305 |
+
issues, public opinion risks, or any risks and issues arising from the model being misled, abused, disseminated, or
|
306 |
+
improperly utilized, we will not assume any responsibility.
|
307 |
|
308 |
+
## 5.2. License
|
309 |
|
310 |
+
Community use of the Orion-14B series models
|
311 |
+
- For code, please comply with [Apache License Version 2.0](./LICENSE)<br>
|
312 |
+
- For model, please comply with [【Orion-14B Series】 Models Community License Agreement](./ModelsCommunityLicenseAgreement)
|
313 |
|
|
|
314 |
|
315 |
+
# 6. Company Introduction
|
316 |
|
317 |
+
OrionStar is a leading global service robot solutions company, founded in September 2016. OrionStar is dedicated to
|
318 |
+
using artificial intelligence technology to create the next generation of revolutionary robots, allowing people to break
|
319 |
+
free from repetitive physical labor and making human work and life more intelligent and enjoyable. Through technology,
|
320 |
+
OrionStar aims to make society and the world a better place.
|
321 |
|
322 |
+
OrionStar possesses fully self-developed end-to-end artificial intelligence technologies, such as voice interaction and
|
323 |
+
visual navigation. It integrates product development capabilities and technological application capabilities. Based on
|
324 |
+
the Orion robotic arm platform, it has launched products such as OrionStar AI Robot Greeting, AI Robot Greeting Mini,
|
325 |
+
Lucki, Coffee Master, and established the open platform OrionOS for Orion robots. Following the philosophy of "Born for
|
326 |
+
Truly Useful Robots", OrionStar empowers more people through AI technology.
|
327 |
|
328 |
+
**The core strengths of OrionStar lies in possessing end-to-end AI application capabilities,** including big data preprocessing, large model pretraining, fine-tuning, prompt engineering, agent, etc. With comprehensive end-to-end model training capabilities, including systematic data processing workflows and the parallel model training capability of hundreds of GPUs, it has been successfully applied in various industry scenarios such as government affairs, cloud services, international e-commerce, and fast-moving consumer goods.
|
|
|
329 |
|
330 |
+
Companies with demands for deploying large-scale model applications are welcome to contact us.
|
331 |
+
**Enquiry Hotline: 400-898-7779**<br>
|
332 |
+
**E-mail: [email protected]**
|
333 |
|
334 |
<div align="center">
|
335 |
<img src="./assets/imgs/wechat_group.jpg" alt="wechat" width="40%" />
|