anocha-mcomp commited on
Commit
a184b38
·
verified ·
1 Parent(s): 1d00231

Update model card from Confluence: Model Card: Gemma-SEA-LION-v4-4B-VL

Browse files
Files changed (1) hide show
  1. model_card_gemma-sea-lion-v4-4b-vl.md +212 -0
model_card_gemma-sea-lion-v4-4b-vl.md ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gemma-SEA-LION-v4-4B-VL
2
+
3
+ *[Last update: 2026-02-05]*
4
+
5
+ SEA-LION is a collection of Large Language Models (LLMs) which have been pretrained and instruct-tuned for the Southeast Asia (SEA) region.
6
+
7
+ **Gemma-SEA-LION-v4-4B-VL** is a 4-billion parameter Vision-Language Model (VLM) built upon the gemma-3-4b-it architecture. To ensure **domain adaptation** for the region, the model underwent rigorous post-training on a curated dataset of approximately 8.54 **million** instruction-text pairs.
8
+
9
+ This extensive post-training instills **multilingual** and **multicultural** fluency, covering English and 4 key SEA languages: Burmese, Malay, Tagalog and Tamil.
10
+
11
+ Gemma-SEA-LION-v4-4B-VL inherits the following features from gemma-3-4b-it:
12
+
13
+ - Image and text understanding capabilities, including document comprehension, visual Q&A, and image-grounded reasoning,
14
+ - Advanced function calling and structured outputs to allow for seamless integration into larger systems, and
15
+ - Large 128K context length
16
+
17
+ ## Model Details
18
+
19
+ ### Model Description
20
+
21
+ SEA-LION stands for *Southeast Asian Languages In One Network*.
22
+
23
+ We performed post-training in English and SEA languages on gemma-3-4b-it, a decoder model using the gemma-3 architecture, and post-training to create Gemma-SEA-LION-v4-4B-VL.
24
+
25
+ For tokenization, the model employs the default tokenizer used in gemma-3-4b-it.
26
+
27
+ - **Developed by:** AI Products Pillar, AI Singapore
28
+ - **Funded by:** Singapore NRF
29
+ - **Shared by:** AI Products Pillar, AI Singapore
30
+ - **Model type:** Decoder
31
+ - **Context length:** 128k
32
+ - **Language(s):** fine-tuned on Burmese, English, Khmer, Malay, Tagalog and Tamil
33
+ - **License:** [Gemma](https://ai.google.dev/gemma/terms)
34
+ - **Finetuned from model:** [gemma-3-4b-it](https://huggingface.co/google/gemma-3-4b-it)
35
+
36
+ ### Model Sources
37
+
38
+ - **Repository:** <https://huggingface.co/collections/aisingapore/sea-lion-v4>
39
+
40
+ ## Uses
41
+
42
+ ### Out-of-Scope Use
43
+
44
+ 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.
45
+
46
+ ## Bias, Risks, and Limitations
47
+
48
+ *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.
49
+
50
+ ## How to Get Started with the Model
51
+
52
+ Use the code below to get started with the model with 🤗 Transformers libraries.
53
+
54
+ ```
55
+ pip install transformers>=4.50.0
56
+
57
+ ```
58
+
59
+ ```
60
+ from transformers import pipeline
61
+ import torch
62
+
63
+ pipe = pipeline(
64
+ "image-text-to-text",
65
+ model="aisingapore/Gemma-SEA-LION-v4-4B-VL",
66
+ device="cuda",
67
+ torch_dtype=torch.bfloat16
68
+ )
69
+ messages = [
70
+ {
71
+ "role": "system",
72
+ "content": [{"type": "text", "text": "You are a helpful assistant."}]
73
+ },
74
+ {
75
+ "role": "user",
76
+ "content": [
77
+ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
78
+ {"type": "text", "text": "Response in Indonesian. What animal is on the candy? Describe in Indonesian and English."}
79
+ ]
80
+ }
81
+ ]
82
+
83
+ output = pipe(text=messages, max_new_tokens=200)
84
+ print(output[0]["generated_text"][-1]["content"])
85
+ # Okay, let's take a look!
86
+ # Based on the image, the animal on the candy is a **turtle**.
87
+ # You can see the shell shape and the head and legs.
88
+
89
+ ```
90
+ ## Training Details
91
+
92
+ ### Training Data
93
+
94
+ The instruction fine-tuning text dataset comprises of a collection of OSS & synthetic data.
95
+
96
+ **Datasets for linguistic training**:
97
+
98
+ - <https://huggingface.co/datasets/aisingapore/filtered_joined_prompt_v1_resp_qwen_32b>
99
+ - <https://huggingface.co/datasets/aisingapore/translated_english_500k_formatted_resp_qwen32b>
100
+
101
+ **Datasets for tool-calling**:
102
+
103
+ - <https://huggingface.co/datasets/allenai/Dolci-Instruct-SFT-Tool-Use>
104
+ - <https://huggingface.co/datasets/Agent-Ark/Toucan-1.5M>
105
+
106
+ ### Training Procedure
107
+
108
+ #### Training Hyperparameters
109
+
110
+ - **Training regime:** Our post-training workflow consists of instruction fine-tuning and model merging.
111
+
112
+ ## Evaluation
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ We evaluated Gemma-SEA-LION-v4-4B-VL on general language capabilities and LLM-specific capabilities using SEA-HELM.
119
+
120
+ **Testing Data**
121
+
122
+ General language capabilities
123
+
124
+ For the evaluation of general language capabilities, we employed the [SEA-HELM evaluation benchmark](https://arxiv.org/abs/2502.14301) 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), Natural Language Inference (NLI), Linguistic Diagnostics (LINDSEA), Cultural Knowledge (Kalahi) and Global MMLU Lite/Thai Exam.
125
+
126
+ Instruction-following and Multi-turn Chat
127
+
128
+ We evaluated the models on instruction-following and multi-turn chat capabilities with SEA-IFEval (based on [IFEval](https://arxiv.org/abs/2311.07911)) and SEA-MTBench (based on [MT-Bench](https://arxiv.org/abs/2306.05685)) respectively. The two datasets were originally in English, 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.
129
+
130
+ #### Factors
131
+
132
+ All evaluations were run with the model specific generation parameters defined in the model config. Each evaluation comprised of 8 runs with different seeds and the final results were averaged across these runs.
133
+
134
+ For all tasks, the model was expected to provide an answer tag from which the answer was automatically extracted. For tasks where options were provided, the answer should comprise one of the pre-defined options.
135
+
136
+ The evaluation was done **zero-shot** with native prompts on a sample of 100-1000 instances for each dataset.
137
+
138
+ SEA-IFEval
139
+
140
+ 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).
141
+
142
+ SEA-MTBench
143
+
144
+ SEA-MTBench 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.1-2025-04-14` as the judge model and compare against `gpt-4.1-2025-04-14` 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).
145
+
146
+ #### Metrics
147
+
148
+ The following metrics were used for text capabilities:
149
+
150
+ | **Task** | **Metric** |
151
+ | --- | --- |
152
+ | Sentiment Analysis | Accuracy |
153
+ | Extractive QA (ID, VI, TH, TA) | ChrF++ |
154
+ | MCQ-QA (TL, MY, MS) | Accuracy |
155
+ | Metaphor | Accuracy |
156
+ | Abstractive Summarisation | Rouge-L |
157
+ | Translations | MetricX-24 score (with reference) |
158
+ | Causal Reasoning | Accuracy |
159
+ | Natural Language Inference | Accuracy |
160
+ | LINDSEA | Accuracy |
161
+ | Global MMLU Lite | Accuracy |
162
+ | Thai Exam | Accuracy |
163
+ | Kalahi | Accuracy |
164
+ | SEA-IFEval | Accuracy |
165
+ | SEA-MTBench | Win rate against a reference |
166
+
167
+ ### Results
168
+
169
+ For details on Gemma-SEA-LION-v4-4B-VL performance, please refer to the SEA-HELM leaderboard, <https://leaderboard.sea-lion.ai/> .
170
+
171
+ ### Retaining VL Capabilities
172
+
173
+ We also evaluated the model on two types of tasks using datasets specifically focused on Southeast Asian examples to benchmark against the original base models (Gemma-4b-it).
174
+
175
+ - **Visual Question Answering (VQA):** We utilized Multiple Choice Question (MCQ) style tasks, including MARVL, CVQA, and WorldCuisines.
176
+ - **Image Captioning:** We employed the XM3600 dataset, evaluating strictly on examples relevant to the SEA region.
177
+ -
178
+
179
+ Key Insight: Despite our fine-tuning process focusing primarily on text data (approximately 8 million regional Q&A and instruction pairs), our evaluation confirms that Gemma-SEA-LION-v4-4B-VL successfully retains the high-performance vision-language capabilities of the original base models.
180
+
181
+ #### Factors
182
+
183
+ The evaluation was done **zero-shot** with native prompts.
184
+
185
+ #### Metrics
186
+
187
+ The following metrics were used to measure performance:
188
+
189
+ - **Normalized accuracy** was the primary metric for the VQA tasks (CVQA, MARVL, and WorldCuisines).
190
+ - **RefCLIP Score** was used for the XM3600 image captioning task.
191
+
192
+ ### Results
193
+
194
+ ## More Information
195
+
196
+ 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.
197
+
198
+ For more info, please contact us at [sealion@aisingapore.org](mailto:sealion@aisingapore.org)
199
+
200
+ ## Team
201
+
202
+ Ahmed Dabeer, Ahn Jeongmi, Antonyrex Sajeban, Chan Hok Teng Adwin, Cheng Zi Yi Nicholas, Choa Hsueh Mei Esther, Heng Jonathan, Huang Yuli, Jann Railey Estrada Montalan, Kang Siow Wei Bryan, Lee Chwan Ren, Leong Wai Yi, Leong Wei Qi, Liew Rachel, Limkonchotiwat Peerat, Muhammad Ridzuan Bin Mokhtar, Nagarajan Karthik, Ng Boon Cheong Raymond, Ngee Chia Tai, Ngui Jian Gang, Nguyen Thanh Ngan, Ong Tat-Wee David, Ong Zhi Hao, Pereira Mark, Poon Joseph, Rengarajan Hamsawardhini, Susanto Yosephine, Sutaveephamochanon Anocha, Tan Choon Meng, Tan Chor Phin Evelyn, Tan Siao Wei Jessica, Tan Yixian, Tee Jun Yun, Teng Kok Wai Walter, Teo Eng Sipp Leslie, Tjhi William, Yeo Yeow Tong, Yong Xianbin, Zhang Zhou
203
+
204
+ Gemma team??? 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)
205
+
206
+ ## Acknowledgement
207
+
208
+ 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.
209
+
210
+ ## Contact
211
+
212
+ [sealion@aisingapore.org](mailto:sealion@aisingapore.org)