A Sinhala news article classifier built on top of a fine-tuned 8B LLaMA model that beats SinLlama — the previous state-of-the-art for Sinhala news classification.
📊 Benchmark Results
Model
Precision
Recall
F1
SerendipLLM-news-classifier (ours)
90.223
90.0
89.939
SinLlama (baseline)
89.033
86.787
86.402
✅ +3.537 F1 points above SinLlama
📰 Per-Class Results
Category
Sinhala
Precision
Recall
F1
Business
ව්යාපාර
90.0
90.0
90.0
Politics
දේශපාලන
94.3
82.5
88.0
Entertainment
විනෝදාස්වාදය
85.0
85.0
85.0
Sports
ක්රීඩා
87.0
100.0
93.0
Technology
තාක්ෂණ
94.9
92.5
93.7
🏗️ Architecture
This model uses a classification head approach instead of text generation.
The 8B LLaMA model acts as a deep Sinhala language encoder, and a small linear
layer on top maps the last token hidden state directly to one of 5 categories.
Base model: Chamaka8/Serendip-LLM-CPT-SFT-v2 (8B LLaMA, Sinhala CPT+SFT)
LoRA: r=32, alpha=64, all projection layers (q/k/v/o/gate/up/down)
Classifier head: Linear(4096 → 5) saved as classifier_head.pt
Training: 15 epochs, balanced classes via oversampling, cosine LR schedule