Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model:
|
3 |
+
- aisingapore/gemma2-9b-cpt-sea-lionv3-base
|
4 |
+
language:
|
5 |
+
- en
|
6 |
+
- id
|
7 |
+
- jv
|
8 |
+
- su
|
9 |
+
license: gemma
|
10 |
+
---
|
11 |
+
# Gemma2 9B CPT Sahabat AI v1.0
|
12 |
+
|
13 |
+
Sahabat AI v1.0 is a collection of Large Language Models (LLMs) which has been pretrained and instruct-tuned for Indonesian languages.
|
14 |
+
This is the card for the Gemma2 9B CPT Sahabat AI v1.0 base model which has undergone continued pre-training from the base [sea-lionv3-base](https://huggingface.co/aisingapore/gemma2-9b-cpt-sea-lionv3-base) model.
|
15 |
+
|
16 |
+
Sahabat is Indonesian for "Close Friends"
|
17 |
+
|
18 |
+
|
19 |
+
## Model Details
|
20 |
+
|
21 |
+
### Model Description
|
22 |
+
|
23 |
+
The continued pre-training data for Gemma2 9B CPT Sahabat AI v1.0 base model encompasses approximately 125B tokens.
|
24 |
+
|
25 |
+
- **Developed by:** PT GoTo Gojek Tokopedia Tbk, AI Singapore
|
26 |
+
- **Funded by:** PT GoTo Gojek Tokopedia Tbk<!-- -, Singapore NRF -->
|
27 |
+
- **Model type:** Decoder
|
28 |
+
- **Languages:** English, Indonesian, Javanese, Sundanese
|
29 |
+
- **License:** [Gemma Community License](https://ai.google.dev/gemma/terms)
|
30 |
+
|
31 |
+
For tokenisation, the model employs the default tokenizer used in Gemma-2-9B. The model has a context length of 8192.
|
32 |
+
|
33 |
+
### Benchmark Performance
|
34 |
+
We evaluated Gemma2 9B CPT Sahabat AI v1.0 base model on general language capabilities.
|
35 |
+
|
36 |
+
#### General Language Capabilities
|
37 |
+
For the evaluation of general language capabilities, we employed the
|
38 |
+
- [SEA HELM (also known as BHASA) evaluation benchmark](https://arxiv.org/abs/2309.06085v2) across a variety of tasks.
|
39 |
+
- These tasks include Question Answering (QA), Sentiment Analysis (Sentiment), Toxicity Detection (Toxicity), Translation in both directions (Eng>Lang & Lang>Eng), Abstractive Summarization (Summ), Causal Reasoning (Causal) and Natural Language Inference (NLI).
|
40 |
+
- We also added support for Javanese and Sundanese for the BHASA tasks whenever applicable
|
41 |
+
- [IndoMMLU](https://arxiv.org/pdf/2310.04928)
|
42 |
+
- These tasks include examination questions on Humanities, Indonesian language, Local languages and cultures, Social science and STEM across primary, middle, and high school levels.
|
43 |
+
- and the well known [English MMLU](https://arxiv.org/pdf/2009.03300)
|
44 |
+
|
45 |
+
Note: SEA HELM is implemented using prompts to elicit answers in a strict format. For all tasks, the model is expected to provide an answer tag from which the answer is automatically extracted. For tasks where options are provided, the answer should comprise one of the pre-defined options. The scores for each task is normalised to account for baseline performance due to random chance.
|
46 |
+
|
47 |
+
The evaluation was done **five-shot** with native prompts on a sample of 100-1000 instances for each dataset.
|
48 |
+
|
49 |
+
|
50 |
+
## Training Details
|
51 |
+
|
52 |
+
### Data
|
53 |
+
|
54 |
+
Gemma2 9B CPT Sahabat AI v1.0 base model was continued pre-trained on 50B tokens of the following data:
|
55 |
+
|
56 |
+
| Data Source | Unique Tokens (B) | Multiplier | Total Tokens (B) | Percentage (%)|
|
57 |
+
|---------------------------------------|:-----------------:|:----------:|:----------------:|:-------------:|
|
58 |
+
| Dolma Refined Web | 9.5 | 1 | 9.5 | 17.36 |
|
59 |
+
| Dolma arXiv | 0.6 | 1 | 0.6 | 1.10 |
|
60 |
+
| Dolma Star Coder | 5.5 | 1 | 5.5 | 10.05 |
|
61 |
+
| Dolma Semantic Scholar | 1.2 | 1 | 1.2 | 2.19 |
|
62 |
+
| Dolma Reddit | 1.7 | 1 | 1.7 | 3.11 |
|
63 |
+
| Dolma C4 | 1.5 | 1 | 1.4 | 2.56 |
|
64 |
+
| Wiki* + News* - Indonesian | 1.3 | 4 | 5.2 | 9.50 |
|
65 |
+
| SEA-LION Pile - Indonesian | 27.0 | 1 | 27.0 | 49.34 |
|
66 |
+
| SEA-LION Pile - Javanese | 0.5 | 1.5 | 0.75 | 1.37 |
|
67 |
+
| CC 100 - Javanese | 0.05 | 1.5 | 0.075 | 0.14 |
|
68 |
+
| HPLT - Javanese | 0.3 | 1.5 | 0.45 | 0.82 |
|
69 |
+
| SEA-LION Pile - Sundanese | 0.2 | 3.6 | 0.75 | 1.37 |
|
70 |
+
| CC 100 - Sundanese | 0.02 | 3.6 | 0.075 | 0.14 |
|
71 |
+
| HPLT - Sundanese | 0.16 | 3.6 | 0.45 | 0.82 |
|
72 |
+
| Others (Javanese, Sundanese) | 0.034 | 2.2 | 0.076 | 0.14 |
|
73 |
+
|
74 |
+
Note:
|
75 |
+
- All token counts are counted using Gemma2 tokenizer
|
76 |
+
- Wiki* sources includes Wikipedia, Wiki Books, Wiki Source, Wiki Voyage and Fandom Wiki
|
77 |
+
- News* sources includes VOA, Global Voices, MediaCorp
|
78 |
+
|
79 |
+
### Infrastructure
|
80 |
+
|
81 |
+
Gemma2 9B CPT Sahabat AI v1.0 was trained using [MosaicML Composer](https://github.com/mosaicml/composer)
|
82 |
+
on the following hardware:
|
83 |
+
|
84 |
+
| Training Details | Gemma2 9B CPT Sahabat AI v1.0|
|
85 |
+
|----------------------|:----------------------------:|
|
86 |
+
| Nvidia H100 80GB GPU | 32 |
|
87 |
+
| Training Duration | 7 days |
|
88 |
+
|
89 |
+
|
90 |
+
### Configuration
|
91 |
+
|
92 |
+
| HyperParameter | Gemma2 9B CPT Sahabat AI v1.0|
|
93 |
+
|-------------------|:----------------------------:|
|
94 |
+
| Precision | bfloat16 |
|
95 |
+
| Optimizer | decoupled_adamw |
|
96 |
+
| Scheduler | weight_stable_decay |
|
97 |
+
| Learning Rate | 1.0e-5 |
|
98 |
+
| Global Batch Size | 256 |
|
99 |
+
| Micro Batch Size | 1 |
|
100 |
+
|
101 |
+
|
102 |
+
## The Team (by ascending alphabetical order)
|
103 |
+
|
104 |
+
### AI Singapore
|
105 |
+
Chan Adwin<br>
|
106 |
+
Chau Shiau Ching<br>
|
107 |
+
Cheng Nicholas<br>
|
108 |
+
Choa Esther<br>
|
109 |
+
Huang Yuli<br>
|
110 |
+
Lau Wayne<br>
|
111 |
+
Lee Chwan Ren<br>
|
112 |
+
Leong Wai Yi<br>
|
113 |
+
Leong Wei Qi<br>
|
114 |
+
Limkonchotiwat Peerat<br>
|
115 |
+
Liu Bing Jie Darius<br>
|
116 |
+
Montalan Jann Railey<br>
|
117 |
+
Ng Boon Cheong Raymond<br>
|
118 |
+
Ngui Jian Gang<br>
|
119 |
+
Nguyen Thanh Ngan<br>
|
120 |
+
Ong Brandon<br>
|
121 |
+
Ong Tat-Wee David<br>
|
122 |
+
Ong Zhi Hao<br>
|
123 |
+
Rengarajan Hamsawardhini<br>
|
124 |
+
Siow Bryan<br>
|
125 |
+
Susanto Yosephine<br>
|
126 |
+
Tai Ngee Chia<br>
|
127 |
+
Tan Choon Meng<br>
|
128 |
+
Teng Walter<br>
|
129 |
+
Teo Eng Sipp Leslie<br>
|
130 |
+
Teo Wei Yi<br>
|
131 |
+
Tjhi William<br>
|
132 |
+
Yeo Yeow Tong<br>
|
133 |
+
Yong Xianbin<br>
|
134 |
+
|
135 |
+
### PT GoTo Gojek Tokopedia Tbk
|
136 |
+
Anissa Dininta<br>
|
137 |
+
Choiri Hendra Hadhil<br>
|
138 |
+
Goel Priyank<br>
|
139 |
+
Saini Ajay Kumar<br>
|
140 |
+
Shalev Ofir<br>
|
141 |
+
Tan Daryl<br>
|
142 |
+
Tep Kilian Rithi<br>
|
143 |
+
Tiwari Anupam<br>
|
144 |
+
Widjojo Daniel<br>
|
145 |
+
|
146 |
+
<!--
|
147 |
+
## Acknowledgements
|
148 |
+
|
149 |
+
AI Singapore is a national programme supported by the National Research Foundation, Singapore and hosted by the National University of Singapore.
|
150 |
+
Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not reflect the views of National Research Foundation, Singapore. -->
|
151 |
+
|
152 |
+
|
153 |
+
## Contact
|
154 |
+
|
155 |
+
For more info, please contact us using this [Sahabat Inquiry Form](https://docs.google.com/forms/d/1_us969eQtEooYOn4XkvGkdP5VHOyCbO6L_sd9kTMnaA/edit)
|
156 |
+
|
157 |
+
|
158 |
+
## Disclaimer
|
159 |
+
|
160 |
+
This is the repository for the base model.
|
161 |
+
The model has _not_ been aligned for safety.
|
162 |
+
Developers and users should perform their own safety fine-tuning and related security measures.
|
163 |
+
In no event shall the authors be held liable for any claim, damages, or other liability arising from the use of the released weights and codes.
|
164 |
+
|
165 |
+
|
166 |
+
## References
|
167 |
+
### IndoMMLU Reference
|
168 |
+
|
169 |
+
```bibtex
|
170 |
+
@inproceedings{koto-etal-2023-indommlu,
|
171 |
+
title = "Large Language Models Only Pass Primary School Exams in {I}ndonesia: A Comprehensive Test on {I}ndo{MMLU}",
|
172 |
+
author = "Fajri Koto and Nurul Aisyah and Haonan Li and Timothy Baldwin",
|
173 |
+
booktitle = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (EMNLP)",
|
174 |
+
month = December,
|
175 |
+
year = "2023",
|
176 |
+
address = "Singapore",
|
177 |
+
publisher = "Association for Computational Linguistics",
|
178 |
+
}
|
179 |
+
}
|
180 |
+
```
|