Downloads · 30 days
16
21% of all-time downloads
viswadarshan06/tamil-language-model
tamil-language-model is a machine learning model from viswadarshan06. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
TLMR (Tamil Language Model for Representation Learning) is a lightweight Tamil-specific encoder built on the XLM-Roberta architecture and designed to learn high-quality contextual representations for Tamil. The model…
Downloads · 30 days
16
21% of all-time downloads
All-time downloads
75
Public
Parameters
92.7M
372 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors371 MB · 99%
From the Hugging Face model README
TLMR (Tamil Language Model for Representation Learning) is a lightweight Tamil-specific encoder built on the XLM-Roberta architecture and designed to learn high-quality contextual representations for Tamil. The model is pretrained exclusively on large-scale Tamil text using a custom Tamil Byte-Pair Encoding (BPE) tokenizer, enabling efficient tokenization and strong semantic representation for morphologically rich Tamil.
Unlike multilingual language models that share their vocabulary and parameters across many languages, TLMR focuses specifically on Tamil, allowing it to better capture the linguistic characteristics of the language and provide more effective representations for downstream NLP tasks.
TLMR was pretrained on a large, carefully curated Tamil corpus collected from multiple high-quality sources, including:
The corpus was cleaned through text normalization, deduplication, script consistency filtering, and noise removal before tokenizer training and model pretraining.
TLMR is designed as a general-purpose Tamil language encoder and can be used for a wide range of Tamil NLP applications, including:
Tamil is a morphologically rich and agglutinative language, making effective tokenization and representation learning particularly important. TLMR is designed to address these challenges through Tamil-specific pretraining and tokenizer design, providing strong contextual representations while maintaining a lightweight architecture suitable for research and downstream applications.
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("viswadarshan06/tamil-language-model")
model = AutoModel.from_pretrained("viswadarshan06/tamil-language-model")
text = "தமிழ்நாட்டின் வளர்ச்சி தொடர்கிறது."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
embeddings = outputs.last_hidden_state
TLMR was developed as part of our research on Tamil semantic understanding and representation learning and published in *SEM 2026 - ACL Conference.