MERaLiON-S4.5-E2B: A Multimodal Model for Southeast Asia
2 min read
The model combines text, image, audio clip, and video processing, built on the Gemma-SEA-LION language foundation. The developers carried out supervised fine-tuning with a strong emphasis on cultural adaptation for the Southeast Asian region. The system outputs precise text: it describes images, transcribes speech, or answers questions based on video. Compared to the base version, it offers significantly better speech recognition and a deeper understanding of local visual contexts.
Key features
- Multimodal input support: text, images, audio up to 30 seconds, and video
- Enhanced speech recognition for Chinese, Tamil, and Singaporean English
- High-quality text extraction from images (OCR) and detailed description generation
- Training via GRPO for more accurate cultural localization of responses
What you can do
- Apply it for high-quality transcription and speech recognition across different languages
- Integrate it into image analysis and document processing pipelines (OCR)
- Use it for multimodal conversations with visual context support
- Test localized responses and the cultural context of Southeast Asia
Example
import torch, librosa
from PIL import Image
from transformers import AutoModelForMultimodalLM, AutoProcessor
path = "zzlynxSG/MERaLiON-S4.5-E2B"
processor = AutoProcessor.from_pretrained(path, trust_remote_code=True)
model = AutoModelForMultimodalLM.from_pretrained(path, dtype="auto", device_map="auto", trust_remote_code=True).eval()
image = Image.open("assets/image.jpg").convert("RGB")
messages = [{"role": "user", "content": [{"type": "image"}, {"type": "text", "text": "Describe this image in detail."}]}]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=[text], images=[image], return_tensors="pt").to(model.device)
Read more
Details• Architecture: based on Gemma-SEA-LION-v4.5-E2B-IT (5.1 billion parameters with embeddings)
• Quality: reduction in speech recognition errors (AIShell CER dropped from 0.388 to 0.198)
• Limitations: for non-commercial research only, alpha version, prone to hallucinations
• Requirements: Python 3.11, torch 2.6.0, transformers 5.5.4, ffmpeg on PATH










Comments