File size: 10,167 Bytes
2f83a17 2799f09 2f83a17 37837d6 2f83a17 fc4830a 2f83a17 d12aece b99fd0c 2f83a17 fc4830a 2799f09 fc4830a b282b19 2f83a17 4b56082 2f83a17 4b56082 2799f09 2f83a17 2799f09 2f83a17 d12aece 4b56082 d12aece e19fc42 fc4830a e6014de fc4830a e6014de fc4830a 2f83a17 09bca8b 1b9a809 09bca8b 2f83a17 ff88b9e 09bca8b 1958488 2f83a17 fc4830a 2f83a17 b72eedd 2f83a17 fc4830a 2f83a17 fc4830a 2f83a17 fc4830a 2f83a17 fc4830a 2f83a17 fc4830a 2f83a17 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
---
language:
- en
- zh
- vi
- id
- th
- fil
- ta
- ms
- km
- lo
- my
license: llama3.1
library_name: transformers
pipeline_tag: text-generation
base_model: meta-llama/Llama-3.1-8B-Instruct
---
# Llama3.1 8B CPT SEA-LIONv3
SEA-LION is a collection of Large Language Models (LLMs) which has been pretrained and instruct-tuned for the Southeast Asia (SEA) region.
Llama3.1 8B CPT SEA-LIONv3 Base is a multilingual model which has undergone continued pre-training on approximately **200B** tokens across 11 SEA languages: Burmese, Chinese, English, Filipino, Indonesia, Khmer, Lao, Malay, Tamil, Thai and Vietnamese.
SEA-LION stands for <i>Southeast Asian Languages In One Network</i>.
- **Developed by:** Products Pillar, AI Singapore
- **Funded by:** Singapore NRF
- **Model type:** Decoder
- **Languages supported:** Burmese, Chinese, English, Filipino, Indonesia, Khmer, Lao, Malay, Tamil, Thai, Vietnamese
- **License:** [Llama 3.1 Community License](https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE)
## Model Details
### Model Description
We performed continued pre-training in English and SEA languages on [Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct), a decoder model using the Llama 3.1 architecture, to create Llama3.1 8B CPT SEA-LIONv3 Base.
For tokenisation, the model employs the default tokenizer used in Llama 3.1 8B Instruct.
### Benchmark Performance
We evaluated Llama3.1 8B CPT SEA-LIONv3 base model on general language capabilities and constraint-following behaviour.
#### General Language Capabilities and Constraint-following Behaviour
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.
These tasks include Question Answering (QA), Sentiment Analysis (Sentiment), Toxicity Detection (Toxicity), Translation in both directions (Eng>Lang & Lang>Eng), Abstractive Summarisation (Abssum), Causal Reasoning (Causal) and Natural Language Inference (NLI).
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.
The evaluation was done **five-shot** with native prompts on a sample of 100-1000 instances for each dataset.
Following the implementation of IFEval in OpenLLM leaderboard, we also implement SEA-IFEval to provide a comparison of the ability of the model to follow specific constraints in English and in SEA languages.
**SEA-IFEval**
Based on [IFEval](https://arxiv.org/abs/2311.07911), the linguists and native speakers in the team worked together to filter, localise and translate the datasets into the respective target languages to ensure that the examples remained reasonable, meaningful and natural.
SEA-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 normalised 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).
For more details on Llama3.1 8B CPT SEA-LIONv3 base benchmark performance, please refer to the SEA-HELM leaderboard, https://leaderboard.sea-lion.ai/.
## Technical Specifications
### Infrastructure
Llama3.1 8B CPT SEA-LIONv3 was trained using [MosaicML Composer](https://github.com/mosaicml/composer) on the following hardware:
| Training Details | Llama3.1 8B CPT SEA-LIONv3 |
|-----------------------|:--------------------------:|
| AWS p5e.48xlarge | 8 instances |
| Nvidia H200 140GB GPU | 64 |
| Training Duration | 136 Hours |
### Configuration
| HyperParameter | Llama3.1 8B CPT SEA-LIONv3 |
|-------------------|:------------------------:|
| Precision | bfloat16 |
| Optimizer | decoupled_adamw |
| Scheduler | weight_stable_decay |
| Learning Rate | 1.0e-5 |
| Global Batch Size | 512 |
## Data
Llama3.1 8B CPT SEA-LIONv3 base model was continued pre-trained on 200B tokens of the following data:
| Language | Source | Total Tokens (B) | Percentage (%) | Total percentage (%) |
| ------------------------ | -------------------------------------- | ---------------- | -------------- | -------------------- |
| Code | StackV2 | 40 | 20 | 20 |
| English | Dolma | 37.5 | 18.75 | 25 |
| | Fineweb-Edu | 7.5 | 3.75 |
| | Others | 5 | 2.5 |
| Chinese | SEA-LION Pile v1 | 12 | 6 | 13 |
| | Others | 14 | 7 |
| Vietnamese | SEA-LION Pile v1 | 8.4 | 4.2 | 13 |
| | VinBigData | 16 | 8 |
| | Others | 1.6 | 0.8 |
| Indonesian | SEA-LION Pile v1 | 7 | 3.5 | 13 |
| | SEA-LION Pile v2 | 7 | 3.5 |
| | Others | 12 | 6 |
| Thai | SEA-LION Pile v1 | 10.7 | 5.35 | 10 |
| | WangChanBERTa | 8.5 | 4.25 |
| | Others | 0.8 | 0.4 |
| Filipino - Malay - Tamil | SEA-LION Pile v1, AI4Bharat Sangraha | 4.28 | 2.14 | 3 |
| | Others | 1.72 | 0.86 |
| Khmer - Lao - Burmese | SEA-LION Pile v1 | 5.2 | 2.6 | 3 |
| | Others | 0.8 | 0.4 |
Note:
- All token counts are counted using Llama 3.1 8B Instruct tokenizer
- SEA-LION Pile v1 is processed from Common Crawl WET, which is published [here](https://huggingface.co/datasets/aisingapore/sea-lion-pile). The cutoff date of this version is September 2020.
- SEA-LION Pile v2 is processed from Common Crawl WARC from October 2020 to April 2024.
- Tamil data from Sangraha is published [here](https://huggingface.co/datasets/ai4bharat/sangraha). The paper can be found [here](https://arxiv.org/abs/2403.06350).
- Tamil news is sourced with permission from [Seithi](https://seithi.mediacorp.sg/)
## Call for Contributions
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.
## The Team
Chan Adwin, Cheng Nicholas, Choa Esther, Huang Yuli, Hulagadri Adithya Venkatadri, 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, Teng Walter, Teo Eng Sipp Leslie, Teo Wei Yi, Tjhi William, Yeo Yeow Tong, Yong Xianbin
## Acknowledgements
[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.
## Contact
For more info, please contact us using this [SEA-LION Inquiry Form.](https://forms.gle/sLCUVb95wmGf43hi6)
[Link to SEA-LION's GitHub repository.](https://github.com/aisingapore/sealion)
## Disclaimer
This is the repository for the commercial instruction-tuned model.
The model has _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 claims, damages, or other liabilities arising from the use of the released weights and codes.
## References
### Thai Pre-Training Data Reference
```bibtex
@misc{lowphansirikul2021wangchanberta,
title={WangchanBERTa: Pretraining transformer-based Thai Language Models},
author={Lalita Lowphansirikul and Charin Polpanumas and Nawat Jantrakulchai and Sarana Nutanong},
year={2021},
eprint={2101.09635},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
``` |