Downloads · 30 days
36
9% of all-time downloads
ThilinaGunathilaka/fine-tune-sinhala-bert-v3
fine-tune-sinhala-bert-v3 is a fill-mask model from ThilinaGunathilaka. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of Ransaka/sinhala-bert-medium-v2 on the Sinhala News Corpus dataset for Masked Language Modeling (MLM).
Downloads · 30 days
36
9% of all-time downloads
All-time downloads
410
Public
Parameters
50.5M
202 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors202 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of Ransaka/sinhala-bert-medium-v2 on the Sinhala News Corpus dataset for Masked Language Modeling (MLM).
This Sinhala-BERT model was fine-tuned specifically for the Sinhala language to improve its capabilities in Masked Language Modeling. It leverages the architecture of BERT and was further optimized on the Sinhala News Corpus dataset, aiming to achieve better contextual language understanding for Sinhala text.
This model can directly be used for:
This model can be fine-tuned further for various downstream NLP tasks in Sinhala, such as:
Like any language model, this model may inherit biases from its training data. It's recommended to assess model predictions for biases before deployment in critical applications.
Use the code below to get started with this model:
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("your-username/your-model-name")
model = AutoModelForMaskedLM.from_pretrained("your-username/your-model-name")
The model was trained on the Sinhala News Corpus dataset, comprising Sinhala news articles.
Sinhala News Corpus dataset test split was used.
The final evaluation metrics obtained:
| Metric | Value |
|---|---|
| Perplexity | [15.95] |
| Validation Loss | [2.77] |
The model achieved strong MLM results on the Sinhala News Corpus dataset, demonstrating improved language understanding.
Carbon emissions were not explicitly tracked. For estimation, refer to Machine Learning Impact calculator.
Transformer-based BERT architecture optimized for Masked Language Modeling tasks.
If you use this model, please cite it as:
@misc{yourusername2024sinhalabert,
author = {Your Name},
title = {Sinhala-BERT Fine-Tuned on Sinhala News Corpus},
year = {2024},
publisher = {Hugging Face},
journal = {Hugging Face Model Hub},
howpublished = {\url{https://huggingface.co/your-username/your-model-name}}
}