Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,88 @@
|
|
1 |
---
|
|
|
|
|
|
|
2 |
license: llama2
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
base_model:
|
3 |
+
- elyza/ELYZA-japanese-Llama-2-7b-fast
|
4 |
+
- elyza/ELYZA-japanese-Llama-2-7b-fast-instruct
|
5 |
license: llama2
|
6 |
+
language:
|
7 |
+
- ja
|
8 |
+
tags:
|
9 |
+
- mergekit
|
10 |
+
- merge
|
11 |
+
- MoE
|
12 |
---
|
13 |
+
# ELYZA-japanese-Llama-2-fast-MoE-2x7B-v0.1
|
14 |
+
[**English description here**](#description)
|
15 |
+
|
16 |
+
|
17 |
+
## 概要
|
18 |
+
Llama-2ベースの学習済み日本語モデルである[elyza/ELYZA-japanese-Llama-2-7b-fast](https://huggingface.co/elyza/ELYZA-japanese-Llama-2-7b-fast)と、そのinstruction tuningモデルである[elyza/ELYZA-japanese-Llama-2-7b-fast-instruct](https://huggingface.co/elyza/ELYZA-japanese-Llama-2-7b-fast-instruct)
|
19 |
+
を、[mergekit](https://github.com/cg123/mergekit)を使ってMoEを行い作成したモデルです。
|
20 |
+
|
21 |
+
[GGUF版はこちら](https://huggingface.co/Aratako/ELYZA-japanese-Llama-2-fast-MoE-2x7B-v0.1-GGUF)
|
22 |
+
|
23 |
+
以下2モデルを利用しています。
|
24 |
+
- [elyza/ELYZA-japanese-Llama-2-7b-fast](https://huggingface.co/elyza/ELYZA-japanese-Llama-2-7b-fast)
|
25 |
+
- [elyza/ELYZA-japanese-Llama-2-7b-fast-instruct](https://huggingface.co/elyza/ELYZA-japanese-Llama-2-7b-fast-instruct)
|
26 |
+
|
27 |
+
## ライセンス
|
28 |
+
元モデルの通り、Llama2ライセンスを継承します。
|
29 |
+
|
30 |
+
Llama 2 is licensed under the LLAMA 2 Community License, Copyright (c) Meta Platforms, Inc. All Rights Reserved.
|
31 |
+
|
32 |
+
## ベンチマーク
|
33 |
+
ベースとしたELYZA-japanese-Llama-2-7b-fast-instructと本モデルの[japanese-mt-bench](https://github.com/Stability-AI/FastChat/tree/jp-stable/fastchat/llm_judge)の結果は以下の通りです。
|
34 |
+
(シングルターン)
|
35 |
+
|Model|Size|Coding|Extraction|Humanities|Math|Reasoning|Roleplay|STEM|Writing|avg_score|
|
36 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
37 |
+
| ELYZA-japanese-Llama-2-7b-fast-instruct | 7B | 2.8 | **5.2** | 7.1 | **2.0** | **3.6** | 6.0 | **5.9** | 6.4 | 4.8750 |
|
38 |
+
| This model | 2x7B | **3.5** | 5.1 | **7.5** | 1.9 | 3.5 | **6.3** | **5.9** | **7.6** | **5.1625** |
|
39 |
+
![レーダーチャート](./japanese_mt_bench.png)
|
40 |
+
**ベンチマークに使用したプロンプト**
|
41 |
+
```
|
42 |
+
"""<s>[INST] <<SYS>>
|
43 |
+
あなたは誠実で優秀な日本人のアシスタントです。
|
44 |
+
<</SYS>>
|
45 |
+
{instruction} [/INST]"""
|
46 |
+
```
|
47 |
+
## Description
|
48 |
+
This model is created using MoE (Mixture of Experts) through mergekit based on [elyza/ELYZA-japanese-Llama-2-7b-fast](https://huggingface.co/elyza/ELYZA-japanese-Llama-2-7b-fast) and [elyza/ELYZA-japanese-Llama-2-7b-fast-instruct](https://huggingface.co/elyza/ELYZA-japanese-Llama-2-7b-fast-instruct).
|
49 |
+
|
50 |
+
[Click here for the GGUF version](https://huggingface.co/Aratako/ELYZA-japanese-Llama-2-fast-MoE-2x7B-v0.1-GGUF)
|
51 |
+
|
52 |
+
It utilizes the following two models:
|
53 |
+
- [elyza/ELYZA-japanese-Llama-2-7b-fast](https://huggingface.co/elyza/ELYZA-japanese-Llama-2-7b-fast)
|
54 |
+
- [elyza/ELYZA-japanese-Llama-2-7b-fast-instruct](https://huggingface.co/elyza/ELYZA-japanese-Llama-2-7b-fast-instruct)
|
55 |
+
## License
|
56 |
+
This model inherit the Llama2 license.
|
57 |
+
Llama 2 is licensed under the LLAMA 2 Community License, Copyright (c) Meta Platforms, Inc. All Rights Reserved.
|
58 |
+
## Benchmark
|
59 |
+
The results of this model and the base ELYZA-japanese-Llama-2-7b-instruct on japanese-mt-bench are as follows.
|
60 |
+
(Single turn)
|
61 |
+
|Model|Size|Coding|Extraction|Humanities|Math|Reasoning|Roleplay|STEM|Writing|avg_score|
|
62 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
63 |
+
| ELYZA-japanese-Llama-2-7b-fast-instruct | 7B | 2.8 | **5.2** | 7.1 | **2.0** | **3.6** | 6.0 | **5.9** | 6.4 | 4.8750 |
|
64 |
+
| This model | 2x7B | **3.5** | 5.1 | **7.5** | 1.9 | 3.5 | **6.3** | **5.9** | **7.6** | **5.1625** |
|
65 |
+
|
66 |
+
![レーダーチャート](./japanese_mt_bench.png)
|
67 |
+
|
68 |
+
**Prompt used for benchmark**
|
69 |
+
```
|
70 |
+
"""<s>[INST] <<SYS>>
|
71 |
+
あなたは誠実で優秀な日本人のアシスタントです。
|
72 |
+
<</SYS>>
|
73 |
+
{instruction} [/INST]"""
|
74 |
+
```
|
75 |
+
|
76 |
+
## Merge config
|
77 |
+
[mergekit_config.yml](./mergekit_moe_config.yml)
|
78 |
+
```yaml
|
79 |
+
base_model: ./ELYZA-japanese-Llama-2-7b-fast-instruct
|
80 |
+
gate_mode: random
|
81 |
+
dtype: bfloat16
|
82 |
+
experts:
|
83 |
+
- source_model: ./ELYZA-japanese-Llama-2-7b-fast-instruct
|
84 |
+
positive_prompts: []
|
85 |
+
- source_model: ./ELYZA-japanese-Llama-2-7b-fast
|
86 |
+
positive_prompts: []
|
87 |
+
tokenizer_source: model:./ELYZA-japanese-Llama-2-7b-fast-instruct
|
88 |
+
```
|