Safetensors
llama
orchid13 commited on
Commit
1788037
1 Parent(s): 4e71140

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +171 -0
README.md ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - GoToCompany/llama3-8b-cpt-sahabatai-v1-base
4
+ language:
5
+ - en
6
+ - id
7
+ - jv
8
+ - su
9
+ license: llama3
10
+ ---
11
+ # Llama3 8B CPT Sahabat AI v1 Instruct
12
+
13
+ Sahabat AI is a collection of Large Language Models (LLMs) which has been pretrained and instruct-tuned for Indonesian languages.
14
+
15
+ Llama3 8B CPT Sahabat AI v1 Instruct is an Indonesian-focused model which has been fine-tuned with around **448,000 Indonesian instruction-completion pairs** alongside an Indonesian-dialect pool consisting of **96,000 instruction-completion pairs in Javanese** and **98,000 instruction-completion pairs in Sundanese**, as well as **129,000 instruction-completion pairs in English**.
16
+
17
+ Sahabat is Indonesian for "Close Friends"
18
+
19
+ - **Developed by:** PT GoTo Gojek Tokopedia Tbk, AI Singapore
20
+ - **Funded by:** PT GoTo Gojek Tokopedia Tbk, AI Singapore
21
+ - **Model type:** Decoder
22
+ - **Languages:** English, Indonesian, Javanese, Sundanese
23
+ - **License:** [Llama3 Community License](https://huggingface.co/meta-llama/Meta-Llama-3-8B/blob/main/LICENSE)
24
+
25
+ ## Model Details
26
+
27
+ ### Model Description
28
+ We performed instruction tuning in Indonesian, Javanese, Sundanese as well as English on our [continued pre-trained Llama3 8B CPT Sahabat AI v1 base](https://huggingface.co/GoToCompany/llama3-8b-cpt-sahabatai-v1-base), a decoder model using the Llama3 architecture, to create Llama3 8B CPT Sahabat AI v1 Instruct.
29
+
30
+ For tokenisation, the model employs the default tokenizer used in Llama-3-8B. The model has a context length of 8192.
31
+
32
+ ### Benchmark Performance
33
+ We evaluated Llama3 8B CPT Sahabat AI v1 Instruct on general language capabilities.
34
+
35
+ #### General Language Capabilities
36
+ For the evaluation of general language capabilities, we employed the
37
+ - [SEA HELM (also known as BHASA) evaluation benchmark](https://arxiv.org/abs/2309.06085v2) across a variety of tasks.
38
+ - 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).
39
+ - We also added support for Javanese and Sundanese for the BHASA tasks whenever applicable
40
+ - [IndoMMLU](https://arxiv.org/pdf/2310.04928)
41
+ - These tasks include examination questions on Humanities, Indonesian language, Local languages and cultures, Social science and STEM across primary, middle, and high school levels.
42
+ - and the well known [English MMLU](https://arxiv.org/pdf/2009.03300)
43
+
44
+ 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.
45
+
46
+ The evaluation was done **zero-shot** with native prompts on a sample of 100-1000 instances for each dataset.
47
+
48
+
49
+ ### Usage
50
+ Llama3 8B CPT Sahabat AI v1 Instruct can be run using the 🤗 Transformers library
51
+ ```python
52
+ # Please use transformers==4.45.2
53
+
54
+ import transformers
55
+ import torch
56
+
57
+ model_id = # PLACEHOLDER
58
+
59
+ pipeline = transformers.pipeline(
60
+ "text-generation",
61
+ model=model_id,
62
+ model_kwargs={"torch_dtype": torch.bfloat16},
63
+ device_map="auto",
64
+ )
65
+ messages = [
66
+ {"role": "user", "content": "Apa sentimen dari kalimat berikut ini?\nKalimat: Buku ini sangat membosankan.\nJawaban: "},
67
+ ]
68
+
69
+ outputs = pipeline(
70
+ messages,
71
+ max_new_tokens=256,
72
+ )
73
+ print(outputs[0]["generated_text"][-1])
74
+ ```
75
+
76
+ ### Caveats
77
+ It is important for users to be aware that our model exhibits certain limitations that warrant consideration. Like many LLMs, the model can hallucinate and occasionally generates irrelevant content, introducing fictional elements that are not grounded in the provided context. Users should also exercise caution in interpreting and validating the model's responses due to the potential inconsistencies in its reasoning.
78
+
79
+ ## Limitations
80
+ ### Safety
81
+
82
+ Current Sahabat models, including this commercially permissive release, have not been aligned for safety. Developers and users should perform their own safety fine-tuning and related security measures. 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.
83
+
84
+ ## Technical Specifications
85
+ ### Fine-Tuning Details
86
+ Llama3 8B CPT Sahabat AI v1 Instruct was built using a combination of a full parameter fine-tune, on-policy alignment, and model merges of the best performing checkpoints. The training process for fine-tuning was approximately 4 hours, with alignment taking 2 hours, both on 8x H100-80GB GPUs.
87
+
88
+ ## Data
89
+ Llama3 8B CPT Sahabat AI v1 Instruct was trained on a wide range of synthetic instructions, alongside publicly available instructions hand-curated by the team with the assistance of native speakers. In addition, special care was taken to ensure that the datasets used had commercially permissive licenses through verification with the original data source.
90
+
91
+ ## Call for Contributions
92
+ We encourage researchers, developers, and language enthusiasts to actively contribute to the enhancement and expansion of Sahabat. Contributions can involve identifying and reporting bugs, sharing pre-training, instruction, and preference data, improving documentation usability, proposing and implementing new model evaluation tasks and metrics, or training versions of the model in additional Indonesian languages. Join us in shaping the future of Sahabat by sharing your expertise and insights to make these models more accessible, accurate, and versatile.
93
+
94
+ ## The Team (by ascending alphabetical order)
95
+
96
+ ### AI Singapore
97
+ Chan Adwin<br>
98
+ Chau Shiau Ching<br>
99
+ Cheng Nicholas<br>
100
+ Choa Esther<br>
101
+ Huang Yuli<br>
102
+ Lau Wayne<br>
103
+ Lee Chwan Ren<br>
104
+ Leong Wai Yi<br>
105
+ Leong Wei Qi<br>
106
+ Limkonchotiwat Peerat<br>
107
+ Liu Bing Jie Darius<br>
108
+ Montalan Jann Railey<br>
109
+ Ng Boon Cheong Raymond<br>
110
+ Ngui Jian Gang<br>
111
+ Nguyen Thanh Ngan<br>
112
+ Ong Brandon<br>
113
+ Ong Tat-Wee David<br>
114
+ Ong Zhi Hao<br>
115
+ Rengarajan Hamsawardhini<br>
116
+ Siow Bryan<br>
117
+ Susanto Yosephine<br>
118
+ Tai Ngee Chia<br>
119
+ Tan Choon Meng<br>
120
+ Teng Walter<br>
121
+ Teo Eng Sipp Leslie<br>
122
+ Teo Wei Yi<br>
123
+ Tjhi William<br>
124
+ Yeo Yeow Tong<br>
125
+ Yong Xianbin<br>
126
+
127
+ ### PT GoTo Gojek Tokopedia Tbk
128
+ Anissa Dininta<br>
129
+ Choiri Hendra Hadhil<br>
130
+ Goel Priyank<br>
131
+ Saini Ajay Kumar<br>
132
+ Shalev Ofir<br>
133
+ Tan Daryl<br>
134
+ Tep Kilian Rithi<br>
135
+ Tiwari Anupam<br>
136
+ Widjojo Daniel<br>
137
+
138
+ <!--## Acknowledgements
139
+
140
+ [AI Singapore](​​https://aisingapore.org/) is a national programme supported by the National Research Foundation, Singapore and hosted by the National University of Singapore.
141
+
142
+ Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not reflect the views of the National Research Foundation or the National University of Singapore. -->
143
+
144
+
145
+ ## Contact
146
+
147
+ For more info, please contact us using this [Sahabat Inquiry Form](https://docs.google.com/forms/d/1_us969eQtEooYOn4XkvGkdP5VHOyCbO6L_sd9kTMnaA/edit)
148
+
149
+ ## Disclaimer
150
+
151
+ This is the repository for the base model.
152
+ The model has _not_ been aligned for safety.
153
+ Developers and users should perform their own safety fine-tuning and related security measures.
154
+ 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.
155
+
156
+
157
+ ## References
158
+ ### IndoMMLU Reference
159
+
160
+ ```bibtex
161
+ @inproceedings{koto-etal-2023-indommlu,
162
+ title = "Large Language Models Only Pass Primary School Exams in {I}ndonesia: A Comprehensive Test on {I}ndo{MMLU}",
163
+ author = "Fajri Koto and Nurul Aisyah and Haonan Li and Timothy Baldwin",
164
+ booktitle = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing (EMNLP)",
165
+ month = December,
166
+ year = "2023",
167
+ address = "Singapore",
168
+ publisher = "Association for Computational Linguistics",
169
+ }
170
+ }
171
+ ```