aashish1904 commited on
Commit
c147d3e
·
verified ·
1 Parent(s): ccdae0d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +216 -0
README.md ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ language:
5
+ - en
6
+ - ja
7
+ library_name: transformers
8
+ pipeline_tag: text-generation
9
+ license: llama3.1
10
+ model_type: llama
11
+
12
+ ---
13
+
14
+ [![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
15
+
16
+
17
+ # QuantFactory/Llama-3.1-Swallow-8B-v0.1-GGUF
18
+ This is quantized version of [tokyotech-llm/Llama-3.1-Swallow-8B-v0.1](https://huggingface.co/tokyotech-llm/Llama-3.1-Swallow-8B-v0.1) created using llama.cpp
19
+
20
+ # Original Model Card
21
+
22
+
23
+ # Llama 3.1 Swallow - Built with Llama
24
+
25
+ Llama 3.1 Swallow is a series of large language models (8B, 70B) that were built by continual pre-training on the [Meta Llama 3.1](https://huggingface.co/collections/meta-llama/llama-31-669fc079a0c406a149a5738f) models.
26
+ Llama 3.1 Swallow enhanced the Japanese language capabilities of the original Llama 3.1 while retaining the English language capabilities.
27
+ We use approximately 200 billion tokens that were sampled from a large Japanese web corpus (Swallow Corpus Version 2), Japanese and English Wikipedia articles, and mathematical and
28
+ coding contents, etc for continual pre-training.
29
+ The instruction-tuned models (Instruct) were built by supervised fine-tuning (SFT) on the synthetic data specially built for Japanese (see the Training Datasets section for details).
30
+ See the Swallow Model Index section to find other model variants.
31
+
32
+ # Release History
33
+
34
+ - **October 08, 2024**: Released [Llama-3.1-Swallow-8B-v0.1](https://huggingface.co/tokyotech-llm/Llama-3.1-Swallow-8B-v0.1), [Llama-3.1-Swallow-8B-Instruct-v0.1](https://huggingface.co/tokyotech-llm/Llama-3.1-Swallow-8B-Instruct-v0.1), [Llama-3.1-Swallow-70B-v0.1](https://huggingface.co/tokyotech-llm/Llama-3.1-Swallow-70B-v0.1), and [Llama-3.1-Swallow-70B-Instruct-v0.1](https://huggingface.co/tokyotech-llm/Llama-3.1-Swallow-70B-Instruct-v0.1).
35
+
36
+ ## Swallow Model Index
37
+
38
+ |Model|Llama-3.1-Swallow|Llama-3.1-Swallow-Instruct|
39
+ |---|---|---|
40
+ |8B| [Link](https://huggingface.co/tokyotech-llm/Llama-3.1-Swallow-8B-v0.1) | [Link](https://huggingface.co/tokyotech-llm/Llama-3.1-Swallow-8B-Instruct-v0.1) |
41
+ |70B| [Link](https://huggingface.co/tokyotech-llm/Llama-3.1-Swallow-70B-v0.1) | [Link](https://huggingface.co/tokyotech-llm/Llama-3.1-Swallow-70B-Instruct-v0.1) |
42
+
43
+ ![logo](./logo.png)
44
+
45
+ The website [https://swallow-llm.github.io/](https://swallow-llm.github.io/) provides large language models developed by the Swallow team.
46
+
47
+ ## Model Details
48
+
49
+ * **Model type**: Please refer to [Llama 3.1 MODEL_CARD](https://github.com/meta-llama/llama3/blob/main/MODEL_CARD.md) for details on the model architecture.
50
+ * **Language(s)**: Japanese English
51
+ * **Library**: [Megatron-LM](https://github.com/NVIDIA/Megatron-LM)
52
+ * **Tokenizer**: Please refer to [Llama 3.1 blog](https://ai.meta.com/blog/meta-llama-3-1) for details on the tokenizer.
53
+ * **Contact**: swallow[at]nlp.c.titech.ac.jp
54
+
55
+ ## Model Performance
56
+
57
+ ### Japanese tasks
58
+
59
+ |Model|JCom.|JEMHopQA|NIILC|JSQuAD|XL-Sum|MGSM|WMT20-en-ja|WMT20-ja-en|JMMLU|JHumanEval|Ja Avg|
60
+ |---|---|---|---|---|---|---|---|---|---|---|---|
61
+ | |4-shot|4-shot|4-shot|4-shot|1-shot|4-shot|4-shot|4-shot|5-shot|0-shot| |
62
+ | |EM acc|Char-F1|Char-F1|Char-F1|ROUGE-2|EM acc|BLEU|BLEU|EM acc|pass@1| |
63
+ | Qwen2-7B | 0.8776 | 0.4627 | 0.3766 | 0.8984 | 0.1716 | 0.5480 | 0.2080 | 0.1949 | 0.5871 | **0.4183** | 0.4743 |
64
+ | Qwen2.5-7B | **0.9240** | 0.4581 | 0.4259 | **0.9071** | **0.2162** | **0.6200** | 0.2295 | 0.1989 | **0.6337** | 0.2665 | 0.4880 |
65
+ | Sarashina2-7B | 0.7417 | 0.5089 | **0.6353** | 0.8683 | 0.1420 | 0.0800 | 0.2727 | 0.2015 | 0.3835 | 0.0000 | 0.3834 |
66
+ | Llama 3 8B | 0.8356 | 0.4454 | 0.4002 | 0.8881 | 0.1757 | 0.3320 | 0.2199 | 0.2087 | 0.4558 | 0.3311 | 0.4292 |
67
+ | Llama 3.1 8B | 0.8436 | 0.4461 | 0.4050 | 0.8962 | 0.1794 | 0.3560 | 0.2209 | 0.2077 | 0.4767 | 0.3274 | 0.4359 |
68
+ | Llama 3 Youko 8B | 0.8660 | 0.4902 | 0.5155 | 0.8947 | 0.2127 | 0.2840 | 0.2740 | 0.2180 | 0.4493 | 0.2183 | 0.4423 |
69
+ | Llama 3 Swallow 8B | 0.8945 | 0.4848 | 0.5640 | 0.8947 | 0.1981 | 0.4240 | 0.2758 | 0.2223 | 0.4699 | 0.2890 | 0.4717 |
70
+ | Llama 3.1 Swallow 8B | 0.9124 | **0.5092** | 0.6011 | 0.8991 | 0.2020 | 0.4600 | **0.2909** | **0.2313** | 0.5182 | 0.2811 | **0.4905** |
71
+
72
+ ### English tasks
73
+
74
+ |Model|OpenBookQA|TriviaQA|HellaSWAG|SQuAD2.0|XWINO|MMLU|GSM8K|BBH|HumanEval|En Avg|
75
+ |---|---|---|---|---|---|---|---|---|---|---|
76
+ | |4-shot|4-shot|4-shot|4-shot|4-shot|5-shot|4-shot|3-shot|0-shot| |
77
+ | |Acc|EM acc|Acc|EM acc|Acc|Acc|EM acc|CoT EM Acc|pass@1| |
78
+ | Qwen2-7B | 0.3740 | 0.6105 | 0.6006 | 0.3623 | 0.8916 | 0.7045 | 0.7748 | 0.5325 | **0.4622** | 0.5903 |
79
+ | Qwen2.5-7B | **0.3940** | 0.6011 | 0.5999 | **0.3743** | 0.8890 | **0.7424** | **0.8324** | 0.5620 | 0.4213 | **0.6018** |
80
+ | Sarashina2-7B | 0.3420 | 0.4784 | 0.5327 | 0.2911 | 0.8903 | 0.4267 | 0.1008 | 0.3746 | 0.0000 | 0.3818 |
81
+ | Llama 3 8B | 0.3760 | **0.7109** | **0.6124** | 0.3356 | 0.9032 | 0.6509 | 0.4936 | **0.6211** | 0.3793 | 0.5648 |
82
+ | Llama 3.1 8B | 0.3780 | 0.7017 | 0.6094 | 0.3330 | **0.9045** | 0.6525 | 0.5057 | 0.6176 | 0.3695 | 0.5636 |
83
+ | Llama 3 Youko 8B | 0.3500 | 0.6252 | 0.5885 | 0.3247 | 0.8959 | 0.5993 | 0.3571 | 0.5704 | 0.2793 | 0.5100 |
84
+ | Llama 3 Swallow 8B | 0.3520 | 0.6563 | 0.5901 | 0.3507 | 0.9006 | 0.6152 | 0.4875 | 0.5936 | 0.3323 | 0.5420 |
85
+ | Llama 3.1 Swallow 8B | 0.3800 | 0.6711 | 0.6057 | 0.3468 | 0.9032 | 0.6237 | 0.5110 | 0.6153 | 0.3622 | 0.5577 |
86
+
87
+ ## Evaluation Benchmarks
88
+
89
+ ### Japanese evaluation benchmarks
90
+
91
+ We used llm-jp-eval(v1.3.0), JP Language Model Evaluation Harness(commit #9b42d41) and Code Generation LM Evaluation Harness(commit #0261c52). The details are as follows:
92
+
93
+ - Multiple-choice question answering (JCommonsenseQA [Kurihara et al., 2022])
94
+ - Open-ended question answering (JEMHopQA [Ishii et al., 2024])
95
+ - Open-ended question answering (NIILC [関根, 2003])
96
+ - Machine reading comprehension (JSQuAD [Kurihara et al., 2022])
97
+ - Automatic summarization (XL-Sum [Hasan et al., 2021])
98
+ - Machine translation (WMT2020 ja-en [Barrault et al., 2020])
99
+ - Machine translation (WMT2020 en-ja [Barrault et al., 2020])
100
+ - Mathematical reasoning (MGSM [Shi et al., 2023])
101
+ - Academic exams (JMMLU [尹ら, 2024])
102
+ - Code generation (JHumanEval [佐藤ら, 2024])
103
+
104
+ ### English evaluation benchmarks
105
+
106
+ We used the Language Model Evaluation Harness(v.0.4.2) and Code Generation LM Evaluation Harness(commit #0261c52). The details are as follows:
107
+
108
+ - Multiple-choice question answering (OpenBookQA [Mihaylov et al., 2018])
109
+ - Open-ended question answering (TriviaQA [Joshi et al., 2017])
110
+ - Machine reading comprehension (SQuAD2 [Rajpurkar et al., 2018])
111
+ - Commonsense reasoning (XWINO [Tikhonov and Ryabinin, 2021])
112
+ - Natural language inference (HellaSwag [Zellers et al., 2019])
113
+ - Mathematical reasoning (GSM8K [Cobbe et al., 2021])
114
+ - Reasoning (BBH (BIG-Bench-Hard) [Suzgun et al., 2023])
115
+ - Academic exams (MMLU [Hendrycks et al., 2021])
116
+ - Code generation (HumanEval [Chen et al., 2021])
117
+
118
+ ## Training Datasets
119
+
120
+ ### Continual Pre-Training
121
+ The following datasets were used for continual pre-training.
122
+
123
+ - [Cosmopedia](https://huggingface.co/datasets/HuggingFaceTB/cosmopedia)
124
+ - [Dclm-baseline-1.0](https://huggingface.co/datasets/mlfoundations/dclm-baseline-1.0)
125
+ - [English Wikipedia](https://dumps.wikimedia.org/other/cirrussearch)
126
+ - [Japanese Wikipedia](https://dumps.wikimedia.org/other/cirrussearch)
127
+ - [Laboro ParaCorpus](https://github.com/laboroai/Laboro-ParaCorpus)
128
+ - [Swallow Corpus Version 2](https://arxiv.org/abs/2404.17733)
129
+ - [The-stack-v2](https://huggingface.co/datasets/bigcode/the-stack-v2-train-smol-ids)
130
+
131
+ ## Risks and Limitations
132
+
133
+ The models released here are still in the early stages of our research and development and have not been tuned to ensure outputs align with human intent and safety considerations.
134
+
135
+ ## Acknowledgements
136
+
137
+ We thank Meta Research for releasing Llama 3.1 under a generous open license.
138
+
139
+ We received various supports including:
140
+
141
+ + AIST project: "Research and Development of Foundation Models for Generative AI in the Physical Domain"
142
+ + NEDO project: "Development of Artificial Intelligence Application Technology to Support Judgment in Design Risk Assessment Work Based on the Perspective of Skilled Persons" (JPNP18002) of "Development of Integration Technology as the Core of Next Generation Artificial Intelligence and Robotics"
143
+ + MEXT project: "Formation of R&D center to ensure transparency and reliability of generative AI models"
144
+ + AIST program: [Large Generative AI Development Support Program](https://abci.ai/en/link/lfm_support_program.html)
145
+
146
+ ## License
147
+
148
+ [META LLAMA 3.1 COMMUNITY LICENSE](https://www.llama.com/llama3_1/license/)
149
+
150
+ ## Authors
151
+
152
+ Here are the team members:
153
+ - From [Tokyo Institute of Technology Okazaki Laboratory](https://www.nlp.c.titech.ac.jp/index.en.html), the following members:
154
+ - [Naoaki Okazaki](https://www.chokkan.org/index.ja.html)
155
+ - [Sakae Mizuki](https://s-mizuki-nlp.github.io/)
156
+ - [Youmi Ma](https://www.nlp.c.titech.ac.jp/member/youmi.en.html)
157
+ - [Koki Maeda](https://sites.google.com/view/silviase)
158
+ - [Kakeru Hattori](https://aya-se.vercel.app/)
159
+ - [Masanari Ohi](https://sites.google.com/view/masanariohi)
160
+ - [Taihei Shiotani](https://github.com/inatoihs)
161
+ - [Koshiro Saito](https://sites.google.com/view/koshiro-saito)
162
+ - From [Tokyo Institute of Technology YOKOTA Laboratory](https://www.rio.gsic.titech.ac.jp/en/index.html), the following members:
163
+ - [Rio Yokota](https://twitter.com/rioyokota)
164
+ - [Kazuki Fujii](https://twitter.com/okoge_kaz)
165
+ - [Taishi Nakamura](https://twitter.com/Setuna7777_2)
166
+ - [Takumi Okamoto](https://www.linkedin.com/in/takumi-okamoto)
167
+ - [Ishida Shigeki](https://www.wantedly.com/id/reborn27)
168
+ - From [Artificial Intelligence Research Center, AIST, Japan](https://www.airc.aist.go.jp/en/teams/), the following members:
169
+ - [Hiroya Takamura](https://sites.google.com/view/hjtakamura)
170
+
171
+ ## How to cite
172
+
173
+ If you find our work helpful, please feel free to cite these papers.
174
+
175
+ ```
176
+ @inproceedings{Fujii:COLM2024,
177
+ title={Continual Pre-Training for Cross-Lingual LLM Adaptation:
178
+ Enhancing Japanese Language Capabilities},
179
+ author={Kazuki Fujii and Taishi Nakamura and Mengsay Loem and Hiroki
180
+ Iida and Masanari Ohi and Kakeru Hattori and Hirai Shota and Sakae
181
+ Mizuki and Rio Yokota and Naoaki Okazaki},
182
+ booktitle="Proceedings of the First Conference on Language Modeling",
183
+ series={COLM},
184
+ pages="(to appear)",
185
+ year="2024",
186
+ month=oct,
187
+ address={University of Pennsylvania, USA},
188
+ }
189
+
190
+ @inproceedings{Okazaki:COLM2024,
191
+ title={Building a Large Japanese Web Corpus for Large Language Models},
192
+ author={Naoaki Okazaki and Kakeru Hattori and Hirai Shota and Hiroki
193
+ Iida and Masanari Ohi and Kazuki Fujii and Taishi Nakamura and Mengsay
194
+ Loem and Rio Yokota and Sakae Mizuki},
195
+ booktitle="Proceedings of the First Conference on Language Modeling",
196
+ series={COLM},
197
+ pages="(to appear)",
198
+ year="2024",
199
+ month=oct,
200
+ address={University of Pennsylvania, USA},
201
+ }
202
+ ```
203
+
204
+ ### References
205
+
206
+ ```tex
207
+ @misc{dubey2024llama3herdmodels,
208
+ title={The Llama 3 Herd of Models},
209
+ author={Abhimanyu Dubey and Abhinav Jauhri and Abhinav Pandey and Abhishek Kadian and Ahmad Al-Dahle and Aiesha Letman and Akhil Mathur and Alan Schelten and Amy Yang and Angela Fan et al.},
210
+ year={2024},
211
+ eprint={2407.21783},
212
+ archivePrefix={arXiv},
213
+ primaryClass={cs.AI},
214
+ url={https://arxiv.org/abs/2407.21783},
215
+ }
216
+ ```