balisum-mt5-small-lora
Balinese Text Summarization Adapter
2 min readupdated
This model is a LoRA adapter (a small add-on layer for a base model) designed for abstractive text summarization in Balinese. It is built on top of the multilingual seq2seq google/mt5-small architecture, enhanced with PEFT training on a specialized dataset. The solution is built for academic research and testing the capabilities of small language models on low-resource languages. It is useful for NLP researchers and developers building local text analysis systems.
Key features
- Built on the multilingual google/mt5-small architecture using the PEFT library.
- Trained specifically for abstractive text summarization tasks in Balinese.
- Trained on the BaliSummarization Dataset, which includes folklore, news articles, and speeches.
- Training configuration uses a rank of r=16 and lora_alpha=32 with a set of target attention modules.
What you can do
- Apply the adapter alongside the base google/mt5-small model in Python scripts to generate concise summaries.
- Use it as a baseline for your own low-resource language processing experiments.
- Test generation quality on various types of local texts, including folklore and news materials.
Example
import torch
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
from peft import PeftModel
BASE = "google/mt5-small"
ADAPTER = "SummarizationGenAI/balisum-mt5-small-lora"
tokenizer = AutoTokenizer.from_pretrained(BASE)
model = AutoModelForSeq2SeqLM.from_pretrained(BASE)
model = PeftModel.from_pretrained(model, ADAPTER)
model.eval()Read more
DetailsModel metrics: the best ROUGE-L score is 0.1637 under zero-shot generation scenarios.
Limitations: output quality currently lags behind simple heuristic methods, and the training dataset size is small.
Details: the maximum context length is 2048 tokens, and training was performed on Kaggle.










Comments