Downloads · 30 days
7
8% of all-time downloads
aryanx16/mahabert-v2-daft
mahabert-v2-daft is a fill-mask model from aryanx16. 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.
Authors: Tanvi Somani , Aryan Babare , Samyak Bora Model Type: Masked Language Model (MLM) Base Model: MahaBERT v2 Training Method: DAFT (Domain-Adaptive Fine-Tuning) Language: Marathi 🇮🇳 Framework: HuggingFace Tran…
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
86
Public
Parameters
238M
951 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors951 MB · 99%
From the Hugging Face model README
Authors: Tanvi Somani , Aryan Babare , Samyak Bora
Model Type: Masked Language Model (MLM)
Base Model: MahaBERT v2
Training Method: DAFT (Domain-Adaptive Fine-Tuning)
Language: Marathi 🇮🇳
Framework: HuggingFace Transformers
mahabert-v2-daft is a Domain-Adaptive Fine-Tuned (DAFT) version of the original MahaBERT v2 model.
The model has been further trained on a large collection of unlabeled Marathi text to adapt it to the specific domain used in downstream Marathi NLP tasks such as:
DAFT helps the model learn domain-specific vocabulary, patterns, and semantics, improving downstream task performance without requiring labeled data.
DAFT (Domain Adaptive Fine-Tuning) is a continued pre-training method where:
This process improves the model’s understanding of domain-specific words, idioms, and sentence structures.
| Item | Details |
|---|---|
| Base Model | MahaBERT v2 |
| Method | DAFT (continued pre-training) |
| Objective | Masked Language Modeling (MLM) |
| Dataset | Unlabeled Marathi text (domain-specific) |
| Batch Size | As per Colab training setup |
| Epochs | Several thousand steps (as seen in training logs) |
| Hardware | Google Colab (T4 GPU) |
| Optimizer | AdamW |
| Precision | FP32 |
The repository contains:
model.safetensors — model weightsconfig.json — model architecturetokenizer.json, tokenizer_config.json — tokenizer settingsvocab.txt — BERT vocabularyspecial_tokens_map.json — CLS, SEP, PAD, MASK tokenstraining_args.bin — training configurationfrom transformers import AutoTokenizer, AutoModelForMaskedLM
model_id = "aryanx16/mahabert-v2-daft"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForMaskedLM.from_pretrained(model_id)