Edit model card

Gemma2 9B CPT SEA-LIONv3 Instruct

SEA-LION is a collection of Large Language Models (LLMs) which have been pretrained and instruct-tuned for the Southeast Asia (SEA) region.

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.

SEA-LION stands for Southeast Asian Languages In One Network.

  • Developed by: Products Pillar, AI Singapore
  • Funded by: Singapore NRF
  • Model type: Decoder
  • Languages: English, Chinese, Vietnamese, Indonesian, Thai, Filipino, Tamil, Malay, Khmer, Lao, Burmese, Javanese, Sundanese
  • License: Gemma Community License

Description

This repo contains GGUF format model files for aisingapore/gemma2-9b-cpt-sea-lionv3-instruct.

Model Weights Included in this repository:

Usage

Gemma2 9B CPT SEA-LIONv3 Instruct GGUF files have been tested on llama.cpp, from pull request #8772

Chat Template:

<bos><start_of_turn>user
{{prompt}}<end_of_turn>
<start_of_turn>model

Samplellama.cpp command:

To execute the following commands, ensure you are in the llama.cpp root directory and that your models are located in the models folder:

# Running one-time input prompt
./llama-cli -m models/gemma2-9b-cpt-sea-lionv3-instruct/gemma2-9b-cpt-sea-lionv3-instruct-F16.gguf -ngl -1 -p "<bos><start_of_turn>user\nApa sentimen dari kalimat berikut ini?\nKalimat: Buku ini sangat membosankan.\nJawaban: <end_of_turn>\n<start_of_turn>model\n"
# Running in conversation mode
./llama-cli -m models/gemma2-9b-cpt-sea-lionv3-instruct/gemma2-9b-cpt-sea-lionv3-instruct-F16.gguf -ngl -1 --color -cnv

Please refer to the llama.cpp documentation for adjusting the parameters.

To convert & quantize your own SEA-LION model:

Given that you are in the llama.cpp root directory:

python convert-hf-to-gguf.py {{model path}}
./quantize ggml-model-f16.gguf {{Quant Type}}

For more detailed instructions on conversion and quantization, please refer to llama.cpp documentation.

Caveats

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.

Limitations

Safety

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.

Technical Specifications

Fine-Tuning Details

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.

Data

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.

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, 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

Acknowledgements

AI Singapore 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

Link to SEA-LION's GitHub repository

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.

Downloads last month
408
GGUF
Model size
9.24B params
Architecture
gemma2

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

16-bit

Inference API
Unable to determine this model's library. Check the docs .

Model tree for aisingapore/gemma2-9b-cpt-sea-lionv3-instruct-gguf

Collection including aisingapore/gemma2-9b-cpt-sea-lionv3-instruct-gguf