ren-lee commited on
Commit
e2dd082
·
verified ·
1 Parent(s): d90b0dc

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +156 -0
README.md ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - aisingapore/llama3.1-8b-cpt-sea-lionv3-base
4
+ language:
5
+ - en
6
+ - zh
7
+ - vi
8
+ - id
9
+ - th
10
+ - fil
11
+ - ta
12
+ - ms
13
+ - km
14
+ - lo
15
+ - my
16
+ - jv
17
+ - su
18
+ library_name: transformers
19
+ license: llama3.1
20
+ pipeline_tag: text-generation
21
+ ---
22
+ # Llama3.1 8B CPT SEA-Lionv3 Instruct
23
+
24
+ SEA-LION ([https://sea-lion.ai/](https://sea-lion.ai/)) is a collection of Large Language Models (LLMs) which has been pretrained and instruct-tuned for the Southeast Asia (SEA) region.
25
+
26
+ Llama3.1 8B CPT SEA-Lionv3 Instruct is a multilingual model which has been fine-tuned with around **9,000,000 English instruction-completion pairs** alongside a smaller pool of around **6,000,000 instruction-completion pairs** from other ASEAN languages, such as Indonesian, Thai and Vietnamese.
27
+ These instructions have been carefully curated and rewritten to ensure the model was trained on truly open, commercially permissive and high quality datasets.
28
+
29
+ Llama3.1 8B CPT SEA-Lionv3 Instruct has undergone additional supervised fine-tuning and alignment compared to the now deprecated Llama3 8B CPT SEA-Lionv2.1 Instruct. These improvements have increased the model's capabilities in chat interactions and its ability to follow instructions accurately.
30
+
31
+ SEA-LION stands for _Southeast Asian Languages In One Network_.
32
+
33
+ - **Developed by:** Products Pillar, AI Singapore
34
+ - **Funded by:** Singapore NRF
35
+ - **Model type:** Decoder
36
+ - **Languages:** English, Chinese, Vietnamese, Indonesian, Thai, Filipino, Tamil, Malay, Khmer, Lao, Burmese, Javanese, Sundanese
37
+ - **License:** [Llama3.1 Community License](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B/blob/main/LICENSE)
38
+
39
+ ## Description
40
+
41
+ This repo contains `GGUF` format model files for [aisingapore/llama3.1-8b-cpt-sea-lionv3-instruct](https://huggingface.co/aisingapore/llama3.1-8b-cpt-sea-lionv3-instruct).
42
+
43
+ #### Model Weights Included in this repository:
44
+ - [llama3.1-8b-cpt-sea-lionv3-instruct-Q2_K](https://huggingface.co/aisingapore/llama3.1-8b-cpt-sea-lionv3-instruct-gguf/blob/main/llama3.1-8B-cpt-sea-lionv3-instruct-Q2_K.gguf)
45
+ - [llama3.1-8b-cpt-sea-lionv3-instruct-Q3_K_M](https://huggingface.co/aisingapore/llama3.1-8b-cpt-sea-lionv3-instruct-gguf/blob/main/llama3.1-8B-cpt-sea-lionv3-instruct-Q3_K_M.gguf)
46
+ - [llama3.1-8b-cpt-sea-lionv3-instruct-Q4_0](https://huggingface.co/aisingapore/llama3.1-8b-cpt-sea-lionv3-instruct-gguf/blob/main/llama3.1-8B-cpt-sea-lionv3-instruct-Q4_0.gguf)
47
+ - [llama3.1-8b-cpt-sea-lionv3-instruct-Q4_K_M](https://huggingface.co/aisingapore/llama3.1-8b-cpt-sea-lionv3-instruct-gguf/blob/main/llama3.1-8B-cpt-sea-lionv3-instruct-Q4_K_M.gguf)
48
+ - [llama3.1-8b-cpt-sea-lionv3-instruct-Q5_0](https://huggingface.co/aisingapore/llama3.1-8b-cpt-sea-lionv3-instruct-gguf/blob/main/llama3.1-8B-cpt-sea-lionv3-instruct-Q5_0.gguf)
49
+ - [llama3.1-8b-cpt-sea-lionv3-instruct-Q5_K_M](https://huggingface.co/aisingapore/llama3.1-8b-cpt-sea-lionv3-instruct-gguf/blob/main/llama3.1-8B-cpt-sea-lionv3-instruct-Q5_K_M.gguf)
50
+ - [llama3.1-8b-cpt-sea-lionv3-instruct-Q6_K](https://huggingface.co/aisingapore/llama3.1-8b-cpt-sea-lionv3-instruct-gguf/blob/main/llama3.1-8B-cpt-sea-lionv3-instruct-Q6_K.gguf)
51
+ - [llama3.1-8b-cpt-sea-lionv3-instruct-Q8_0](https://huggingface.co/aisingapore/llama3.1-8b-cpt-sea-lionv3-instruct-gguf/blob/main/llama3.1-8B-cpt-sea-lionv3-instruct-Q8_0.gguf)
52
+
53
+ ### Usage
54
+ Llama 3.1 8B CPT SEA-Lionv3 Instruct GGUF files have been tested with [llama.cpp](https://github.com/ggerganov/llama.cpp).
55
+
56
+ #### Prompt Template:
57
+ ```
58
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
59
+
60
+ {{system_prompt}}<|eot_id|>
61
+ <|start_header_id|>user<|end_header_id|>
62
+
63
+ {{prompt}}<|eot_id|>
64
+ <|start_header_id|>assistant<|end_header_id|>
65
+ ```
66
+
67
+ #### Recommended `llama.cpp` command:
68
+ To execute the following commands, ensure you are in the `llama.cpp` root directory and that your models are located in the `models` folder:
69
+ ```sh
70
+ # Running one-time input prompt
71
+ ./llama-cli -m models/llama3.1-8b-cpt-sea-lionv3-instruct-gguf/llama3.1-8b-cpt-sea-lionv3-instruct-Q4_K_M.gguf -ngl -1 --temp 0 -n 128 -p "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nYou are a helpful assistant who answers succinctly.<|eot_id|>\n<|start_header_id|>user<|end_header_id|>\n\nWhat is a sea lion?<|eot_id|>\n<|start_header_id|>assistant<|end_header_id|>\n\n"
72
+ ```
73
+ ```sh
74
+ # Running in conversation mode
75
+ ./llama-cli -m models/llama3.1-8b-cpt-sea-lionv3-instruct-gguf/llama3.1-8b-cpt-sea-lionv3-instruct-Q4_K_M.gguf -ngl -1 --temp 0 -n 128 -p "You are a helpful assistant who answers succinctly." --color -cnv --chat-template llama3
76
+ ```
77
+ Please refer to [the llama.cpp documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/main/README.md) for adjusting the parameters.
78
+
79
+ #### To convert & quantize your own SEA-LION model:
80
+ Given that you are in the `llama.cpp` root directory:
81
+ ```sh
82
+ python convert-hf-to-gguf.py {{model path}}
83
+ ./quantize ggml-model-f16.gguf {{Quant Type}}
84
+ ```
85
+
86
+ For more detailed instructions on conversion and quantization, please refer to [llama.cpp documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/quantize/README.md).
87
+
88
+ ### Caveats
89
+ 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.
90
+
91
+ ## Limitations
92
+ ### Safety
93
+
94
+ 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.
95
+
96
+ ## Technical Specifications
97
+ ### Fine-Tuning Details
98
+ The Llama3.1 8B CPT SEA-Lionv3 Instruct was fine-tuned using 8x H100-80GB using parameter efficient fine tuning in the form of LoRA.
99
+
100
+ ## Data
101
+ Llama3.1 8B CPT SEA-Lionv3 Instruct was trained on a wide range of instructions that were manually and stringently verified by our team. A large portion of the effort was dedicated to ensuring that each instruction-completion pair that the model sees is of high quality and any errors were corrected and rewritten by native speakers or else dropped from our mix.
102
+
103
+ In addition, special care was taken to ensure that the datasets used had commercially permissive licenses through verification with the original data source.
104
+
105
+ Link to dataset: _coming soon_
106
+
107
+ ## Call for Contributions
108
+ 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.
109
+
110
+ ## The Team
111
+
112
+ Choa Esther<br>
113
+ Cheng Nicholas<br>
114
+ Huang Yuli<br>
115
+ Lau Wayne<br>
116
+ Lee Chwan Ren<br>
117
+ Leong Wai Yi<br>
118
+ Leong Wei Qi<br>
119
+ Li Yier<br>
120
+ Liu Bing Jie Darius<br>
121
+ Lovenia Holy<br>
122
+ Montalan Jann Railey<br>
123
+ Ng Boon Cheong Raymond<br>
124
+ Ngui Jian Gang<br>
125
+ Nguyen Thanh Ngan<br>
126
+ Ong Brandon<br>
127
+ Ong Tat-Wee David<br>
128
+ Ong Zhi Hao<br>
129
+ Rengarajan Hamsawardhini<br>
130
+ Siow Bryan<br>
131
+ Susanto Yosephine<br>
132
+ Tai Ngee Chia<br>
133
+ Tan Choon Meng<br>
134
+ Teo Eng Sipp Leslie<br>
135
+ Teo Wei Yi<br>
136
+ Tjhi William<br>
137
+ Teng Walter<br>
138
+ Yeo Yeow Tong<br>
139
+ Yong Xianbin<br>
140
+
141
+ ## Acknowledgements
142
+
143
+ [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.
144
+
145
+ ## Contact
146
+
147
+ For more info, please contact us using this [SEA-LION Inquiry Form](https://forms.gle/sLCUVb95wmGf43hi6)
148
+
149
+ [Link to SEA-LION's GitHub repository](https://github.com/aisingapore/sealion)
150
+
151
+ ## Disclaimer
152
+
153
+ This is the repository for the commercial instruction-tuned model.
154
+ The model has _not_ been aligned for safety.
155
+ Developers and users should perform their own safety fine-tuning and related security measures.
156
+ 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.