File size: 11,750 Bytes
6af5359 4fc79c2 62d9d44 4fc79c2 6af5359 e9f45bc 4ca424b 67315e6 6af5359 67315e6 6e62017 02ae669 c5c5505 02ae669 67315e6 6e62017 6f68105 34e4775 6f68105 02ae669 6f68105 6af5359 6e62017 6af5359 5beef92 6af5359 332a7ca 6af5359 c5c5505 6af5359 59b8280 6af5359 6e62017 6af5359 59b8280 6af5359 c5c5505 139ce67 6af5359 76afcf8 6af5359 02ae669 6af5359 b40c9a3 6af5359 565c045 6af5359 6e62017 6af5359 6e62017 6af5359 4432243 1207939 6af5359 343c695 6af5359 | 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 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 | ---
license: gemma
base_model:
- google/gemma-3-27b-it
new_version: aisingapore/Qwen-SEA-LION-v4.5-27B-IT
base_model_relation: finetune
---

# Model Card for Gemma-SEA-LION-v4-27B
<!-- Provide a quick summary of what the model is/does. -->
Last updated: 2025-08-25
Gemma-SEA-LION-v4-27B is based on Gemma 3 (which supports over 100 languages)
and is a multilingual model which has undergone continued pre-training on approximately **500B** tokens
sampled from a bucket of over one trillion tokens across 11 SEA languages: Burmese, English,
Indonesian, Khmer, Lao, Malay, Mandarin, Tagalog, Tamil, Thai and Vietnamese.
Gemma-SEA-LION-v4-27B inherits Gemma 3's:
- Large 128K context length
- Image and text understanding capabilities, including document comprehension, visual Q&A, and image-grounded reasoning
- Advanced function calling and structured outputs to allow for seamless integration into larger systems
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
SEA-LION stands for *Southeast Asian Languages In One Network*.
We performed continued pre-training in English and SEA languages on Gemma 3 27B IT,
a decoder model using the Gemma 3 architecture, to create *Gemma-SEA-LION-v4-27B*.
For tokenization, the model employs the default tokenizer used in Gemma 3 27B IT.
- **Developed by:** AI Products Pillar, AI Singapore
- **Funded by:** Singapore NRF
- **Shared by:** AI Products Pillar, AI Singapore
- **Model type:** Decoder
- **Context length:** 128k
- **Language(s) (NLP):** Burmese, English, Indonesian, Khmer, Lao, Malay, Mandarin, Tagalog, Tamil, Thai and Vietnamese
- **License:** [Gemma Terms of Use](https://ai.google.dev/gemma/terms)
- **Continued pretrained from model:** [Gemma-3-27B-IT](https://huggingface.co/google/gemma-3-27b-it)
### Model Sources
<!-- Provide the basic links for the model. -->
- **Repository:** https://github.com/aisingapore/sealion.git
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Out-of-Scope Use
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
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.
## Bias, Risks, and Limitations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
*The model was not tested for robustness against adversarial prompting.* 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.
**Limitations**
In terms of vision capability, Gemma-SEA-LION-v4-27B has been continued pretrained exclusively on the text back-end.
As a result, its vision capabilities are expected to be comparable to those of Gemma 3 IT 27B,
and may not exhibit significant improvements or differences in this area. [🤗 google/gemma-3-27b-it](https://huggingface.co/google/gemma-3-27b-it )
## How to Get Started with the Model
Use the code below to get started with the model.
Use the code below to get started with the model using the 🤗 Transformers library.
```python
from transformers import pipeline
import torch
pipe = pipeline(
"text-generation",
model="aisingapore/Gemma-SEA-LION-v4-27B",
device="cuda",
torch_dtype=torch.bfloat16
)
messages = [
{
"role": "system",
"content": [{"type": "text", "text": "You are a helpful assistant."}]
},
{
"role": "user",
"content": [
{"type": "text", "text": "Write a poem on southeast asian countries in Indonesian."}
]
}
]
output = pipe(text=messages, max_new_tokens=200)
print(output[0]["generated_text"][-1]["content"])
```
## Training Details
### Training Data
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
The dataset comprises Burmese, English, Indonesian, Khmer, Lao, Malay, Mandarin, Tagalog,
Tamil, Thai and Vietnamese languages, collected from a mixture of sources including web data, code, open-source datasets,
and synthetically generated datasets, amounting to a total of 500 billion tokens.
The 500 billion tokens are sampled from a much larger pool of 1 trillion tokens from open-sourced datasets with the optimal datamix shown below determined by our experiments.
| Language | Dataset Name | Total Tokens (B) | Percentage (%) | Total percentage (%) |
|-----------------------------------|-------------------------|------------------|----------------|---------------------|
| Code | StarCoder (OLMo 2 Version) | 50B | 10 | 10 |
| EN | Fineweb-Edu | 80B | 16 | 40 |
| | DCLM-OLMo2-HQ | 80B | 16 | |
| | Non-CC-EN | 40B | 8 | |
| ZH | SEA-LION Pile v1 | 13.5B | 2.7 | 9 |
| | Fineweb2 | 13.5B | 2.7 | |
| | Fineweb2-HQ | 4.5B | 0.9 | |
| VI | SEA-LION Pile v1 | 4.25B | 0.85 | 8.5 |
| | SEA-LION Pile v2 | 12.75B | 2.55 | |
| | Fineweb2 | 8.5B | 1.7 | |
| | Non-CC-VI | 17B | 3.4 | |
| ID | SEA-LION Pile v1 | 5.66B | 1.13 | 8.5 |
| | SEA-LION Pile v2 | 17B | 3.4 | |
| | Fineweb2 | 11.33B | 2.27 | |
| | Non-CC-ID | 8.5B | 1.7 | |
| TH | SEA-LION Pile v1 | 3.035B | 0.61 | 8.5 |
| | SEA-LION Pile v2 | 9.107B | 1.82 | |
| | Fineweb2 | 3.035B | 0.61 | |
| | WangChanBERTa | 3.035B | 0.61 | |
| | Dolmav1 | 3.035B | 0.61 | |
| | Non-CC-TH | 21.25B | 4.25 | |
| TL, TA, MS, KM, LO and MY | ALL_LANG | 77.5B | 15.5 | 15.5 |
Note:
- All token counts are counted using Gemma 3 tokenizer.
- Pre-training was conducted with batches of 8k token lengths.
- SEA-Pile v1 is processed from Common Crawl WET, which is published [here](https://huggingface.co/datasets/aisingapore/sea-lion-pile).
The main proportion is from mC4 dataset (corpus [link](https://huggingface.co/datasets/bertin-project/mc4-sampling)).
The cutoff date of this version is September 2020.
- SEA-Pile v2 is processed from Common Crawl WARC from October 2020 to April 2024.
- Tamil news is sourced with permission from [Seithi](https://seithi.mediacorp.sg/)
- We utilized 0.5% of synthetically generated datasets for the low-resource language, Khmer.
### Training Procedure
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
#### Training Hyperparameters
- **Training regime:**
| Hyperparameter | Gemma-SEA-LION-v4-27B |
|-------------------|-----------------------|
| Precision | bfloat16 |
| Optimizer | decoupled_adamw |
| Scheduler | CosineAnnealing |
| Learning Rate | 4.00E-08 |
| Global Batch Size | 1024 |
### Results
For details on Gemma-SEA-LION-v4-27B-IT performance, please refer to the [Leaderboard results on SEA-HELM](https://leaderboard.sea-lion.ai/).
## Environmental Impact
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** Nvidia H200 140GB GPUs
- **Hours used:** 214 hrs
- **Cloud Provider:** SMC H200
- **Compute Region:** Singapore
- **Carbon Emitted:** appx. 98 kg CO2 e
## More Information
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.
For more info, please contact us at sealion@aisingapore.org
## Team
Antonyrex Sajeban, Chan Hok Teng Adwin, Cheng Zi Yi Nicholas, Choa Hsueh Mei Esther, Heng Jonathan, Huang Yuli, Hulagadri Adithya Venkatadri, Jann Railey Estrada Montalan,
Kang Siow Wei Bryan, Lau Wayne, Lee Chwan Ren, Leong Wai Yi, Leong Wei Qi, Limkonchotiwat Peerat, Muhammad Ridzuan Bin Mokhtar, Nagarajan Karthik, Ng Boon Cheong Raymond,
Ngee Chia Tai, Ngui Jian Gang, Nguyen Thanh Ngan, Ong Jin Jie Brandon, Ong Tat-Wee David, Ong Zhi Hao, Pereira Mark, Rengarajan Hamsawardhini, Susanto Yosephine,
Sutaveephamochanon Anocha, Tan Choon Meng, Tan Chor Phin Evelyn, Tan Siao Wei Jessica, Teng Kok Wai Walter, Teo Eng Sipp Leslie, Tjhi William, Yeo Yeow Tong, Yong Xianbin,
Liew Rachel, Liu Bing Jie Darius, Teo Wei Yi, Zhou Lin (NCS), Gopalakrishnan Roshan (NCS), Anda Cuahtemoc (NCS), Sri Devi Wijaya (NCS), Nandi Partha (NCS),
Elliott Chris (Google), Mohseni Mohammadreza (Google), Sharan Mayank (Google), Wei Fanny (Google), Tang Jiuqiang (Google), Xu Xiang (Google), Yu Ting (Google), Loh Michelle (Google), Mangal Saurabh (Google), Mukherjee Pratyusha (Google), Sim Stephanie (Google)
## Acknowledgement
This project is supported by the National Research Foundation Singapore and Infocomm Media Development Authority (IMDA),
Singapore under its National Large Language Model Funding Initiative.
## Contact
sealion@aisingapore.org |