RichardErkhov commited on
Commit
0af0e7f
·
verified ·
1 Parent(s): 47e9dcd

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +177 -0
README.md ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ gemma2-9b-cpt-sea-lionv3-instruct - GGUF
11
+ - Model creator: https://huggingface.co/aisingapore/
12
+ - Original model: https://huggingface.co/aisingapore/gemma2-9b-cpt-sea-lionv3-instruct/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q2_K.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q2_K.gguf) | Q2_K | 3.54GB |
18
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q3_K_S.gguf) | Q3_K_S | 4.04GB |
19
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q3_K.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q3_K.gguf) | Q3_K | 4.43GB |
20
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q3_K_M.gguf) | Q3_K_M | 4.43GB |
21
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q3_K_L.gguf) | Q3_K_L | 4.78GB |
22
+ | [gemma2-9b-cpt-sea-lionv3-instruct.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.IQ4_XS.gguf) | IQ4_XS | 4.86GB |
23
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q4_0.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q4_0.gguf) | Q4_0 | 5.07GB |
24
+ | [gemma2-9b-cpt-sea-lionv3-instruct.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.IQ4_NL.gguf) | IQ4_NL | 5.1GB |
25
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q4_K_S.gguf) | Q4_K_S | 5.1GB |
26
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q4_K.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q4_K.gguf) | Q4_K | 5.37GB |
27
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q4_K_M.gguf) | Q4_K_M | 5.37GB |
28
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q4_1.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q4_1.gguf) | Q4_1 | 5.55GB |
29
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q5_0.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q5_0.gguf) | Q5_0 | 6.04GB |
30
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q5_K_S.gguf) | Q5_K_S | 6.04GB |
31
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q5_K.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q5_K.gguf) | Q5_K | 6.19GB |
32
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q5_K_M.gguf) | Q5_K_M | 6.19GB |
33
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q5_1.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q5_1.gguf) | Q5_1 | 6.52GB |
34
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q6_K.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q6_K.gguf) | Q6_K | 7.07GB |
35
+ | [gemma2-9b-cpt-sea-lionv3-instruct.Q8_0.gguf](https://huggingface.co/RichardErkhov/aisingapore_-_gemma2-9b-cpt-sea-lionv3-instruct-gguf/blob/main/gemma2-9b-cpt-sea-lionv3-instruct.Q8_0.gguf) | Q8_0 | 9.15GB |
36
+
37
+
38
+
39
+
40
+ Original model description:
41
+ ---
42
+ library_name: transformers
43
+ pipeline_tag: text-generation
44
+ base_model:
45
+ - aisingapore/gemma2-9b-cpt-sea-lionv3-base
46
+ language:
47
+ - en
48
+ - zh
49
+ - vi
50
+ - id
51
+ - th
52
+ - fil
53
+ - ta
54
+ - ms
55
+ - km
56
+ - lo
57
+ - my
58
+ - jv
59
+ - su
60
+ license: gemma
61
+ ---
62
+ # Gemma2 9B CPT SEA-LIONv3 Instruct
63
+
64
+ SEA-LION is a collection of Large Language Models (LLMs) which have been pretrained and instruct-tuned for the Southeast Asia (SEA) region.
65
+
66
+ Gemma2 9B CPT SEA-LIONv3 Instruct is a multilingual model which has been fine-tuned with around **500,000 English instruction-completion pairs** alongside a larger pool of around **1,000,000 instruction-completion pairs** from other ASEAN languages, such as Indonesian, Thai and Vietnamese.
67
+
68
+ SEA-LION stands for _Southeast Asian Languages In One Network_.
69
+
70
+ - **Developed by:** Products Pillar, AI Singapore
71
+ - **Funded by:** Singapore NRF
72
+ - **Model type:** Decoder
73
+ - **Languages:** English, Chinese, Vietnamese, Indonesian, Thai, Filipino, Tamil, Malay, Khmer, Lao, Burmese, Javanese, Sundanese
74
+ - **License:** [Gemma Community License](https://ai.google.dev/gemma/terms)
75
+
76
+ ## Model Details
77
+
78
+ ### Model Description
79
+ We performed instruction tuning in English and also in ASEAN languages such as Indonesian, Thai and Vietnamese on our [continued pre-trained Gemma2 9B CPT SEA-LIONv3](https://huggingface.co/aisingapore/gemma2-9b-cpt-sea-lionv3-base), a decoder model using the Gemma2 architecture, to create Gemma2 9B CPT SEA-LIONv3 Instruct.
80
+
81
+ For tokenisation, the model employs the default tokenizer used in Gemma-2-9B. The model has a context length of 8192.
82
+
83
+ ### Benchmark Performance
84
+ We evaluated Gemma2 9B CPT SEA-LIONv3 Instruct on both general language capabilities and instruction-following capabilities.
85
+
86
+ #### General Language Capabilities
87
+ For the evaluation of general language capabilities, we employed the [SEA HELM (also known as BHASA) evaluation benchmark](https://arxiv.org/abs/2309.06085v2) across a variety of tasks.
88
+ 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).
89
+
90
+ 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.
91
+
92
+ The evaluation was done **zero-shot** with native prompts on a sample of 100-1000 instances for each dataset.
93
+
94
+ #### Instruction-following Capabilities
95
+ Since Gemma2 9B CPT SEA-LIONv3 Instruct is an instruction-following model, we also evaluated it on instruction-following capabilities with two datasets, [IFEval](https://arxiv.org/abs/2311.07911) and [MT-Bench](https://arxiv.org/abs/2306.05685).
96
+
97
+ As these two datasets were originally in English, the linguists and native speakers in the team worked together to filter, localize and translate the datasets into the respective target languages to ensure that the examples remained reasonable, meaningful and natural.
98
+
99
+ **IFEval**
100
+
101
+ IFEval evaluates a model's ability to adhere to constraints provided in the prompt, for example beginning a response with a specific word/phrase or answering with a certain number of sections. Additionally, accuracy is normalized by the proportion of responses in the correct language (if the model performs the task correctly but responds in the wrong language, it is judged to have failed the task).
102
+
103
+
104
+ **MT-Bench**
105
+
106
+ MT-Bench evaluates a model's ability to engage in multi-turn (2 turns) conversations and respond in ways that align with human needs. We use `gpt-4-1106-preview` as the judge model and compare against `gpt-3.5-turbo-0125` as the baseline model. The metric used is the weighted win rate against the baseline model (i.e. average win rate across each category: Math, Reasoning, STEM, Humanities, Roleplay, Writing, Extraction). A tie is given a score of 0.5.
107
+
108
+
109
+ For more details on Gemma2 9B CPT SEA-LIONv3 Instruct benchmark performance, please refer to the SEA HELM leaderboard, https://leaderboard.sea-lion.ai/
110
+
111
+
112
+ ### Usage
113
+ Gemma2 9B CPT SEA-LIONv3 Instruct can be run using the 🤗 Transformers library
114
+ ```python
115
+ # Please use transformers==4.45.2
116
+
117
+ import transformers
118
+ import torch
119
+
120
+ model_id = "aisingapore/gemma2-9b-cpt-sea-lionv3-instruct"
121
+
122
+ pipeline = transformers.pipeline(
123
+ "text-generation",
124
+ model=model_id,
125
+ model_kwargs={"torch_dtype": torch.bfloat16},
126
+ device_map="auto",
127
+ )
128
+ messages = [
129
+ {"role": "user", "content": "Apa sentimen dari kalimat berikut ini?\nKalimat: Buku ini sangat membosankan.\nJawaban: "},
130
+ ]
131
+
132
+ outputs = pipeline(
133
+ messages,
134
+ max_new_tokens=256,
135
+ )
136
+ print(outputs[0]["generated_text"][-1])
137
+ ```
138
+
139
+ ### Caveats
140
+ 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.
141
+
142
+ ## Limitations
143
+ ### Safety
144
+
145
+ Current SEA-LION 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.
146
+
147
+ ## Technical Specifications
148
+ ### Fine-Tuning Details
149
+ Gemma2 9B CPT SEA-LIONv3 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 15 hours, with alignment taking 2 hours, both on 8x H100-80GB GPUs.
150
+
151
+ ## Data
152
+ Gemma2 9B CPT SEA-LIONv3 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.
153
+
154
+ ## Call for Contributions
155
+ We encourage researchers, developers, and language enthusiasts to actively contribute to the enhancement and expansion of SEA-LION. 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 Southeast Asian languages. Join us in shaping the future of SEA-LION by sharing your expertise and insights to make these models more accessible, accurate, and versatile. Please check out our GitHub for further information on the call for contributions.
156
+
157
+ ## The Team
158
+
159
+ Chan Adwin, Choa Esther, Cheng Nicholas, Huang Yuli, Lau Wayne, Lee Chwan Ren, Leong Wai Yi, Leong Wei Qi, Limkonchotiwat Peerat, Liu Bing Jie Darius, Montalan Jann Railey, Ng Boon Cheong Raymond, Ngui Jian Gang, Nguyen Thanh Ngan, Ong Brandon, Ong Tat-Wee David, Ong Zhi Hao, Rengarajan Hamsawardhini, Siow Bryan, Susanto Yosephine, Tai Ngee Chia, Tan Choon Meng, Teo Eng Sipp Leslie, Teo Wei Yi, Tjhi William, Teng Walter, Yeo Yeow Tong, Yong Xianbin
160
+
161
+ ## Acknowledgements
162
+
163
+ [AI Singapore](​​https://aisingapore.org/) is a national programme supported by the National Research Foundation, Singapore and hosted by the National University of Singapore. 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.
164
+
165
+ ## Contact
166
+
167
+ For more info, please contact us using this [SEA-LION Inquiry Form](https://forms.gle/sLCUVb95wmGf43hi6)
168
+
169
+ [Link to SEA-LION's GitHub repository](https://github.com/aisingapore/sealion)
170
+
171
+ ## Disclaimer
172
+
173
+ This is the repository for the commercial instruction-tuned model.
174
+ The model has _not_ been aligned for safety.
175
+ Developers and users should perform their own safety fine-tuning and related security measures.
176
+ In no event shall the authors be held liable for any claims, damages, or other liabilities arising from the use of the released weights and codes.
177
+