Downloads · 30 days
87
58% of all-time downloads
magyar-nlp-szine-java/hun-modernBERT-large-1k
hun-modernBERT-large-1k is a fill-mask model from magyar-nlp-szine-java. Use it when you need the model to fill a missing word. The card lists the license as apache-2.0.
This model is a Hungarian-language, ModernBERT-large architecture-based, Masked Language Modeling (MLM) pretrained language model. The project's goal was to provide a high-performance Hungarian base model that serves…
Downloads · 30 days
87
58% of all-time downloads
All-time downloads
149
Public
Parameters
396M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
From the Hugging Face model README
This model is a Hungarian-language, ModernBERT-large architecture-based, Masked Language Modeling (MLM) pretrained language model. The project's goal was to provide a high-performance Hungarian base model that serves as an efficient starting point for downstream NLP tasks (e.g., text classification, NER, question answering).
ModernBertForMaskedLM)The model was trained on a mixture of the following predominantly Hungarian datasets:
magyar-nlp-szine-java/FULL_LABELED_PRETRAIN_shuffled_2magyar-nlp-szine-java/europarl_hunTotal Tokens: 4,417,679,836 tokens.
The data was packed to a context length of 1024 tokens and shuffled prior to training (seed=142).
The model was pretrained with the following hyperparameters and configurations:
mlm_probability=0.30)adam_epsilon=1e-6)bfloat16 (BF16) and tf32 enabledAt the end of training (epoch 2), the following loss metrics were recorded:
| Metric | Value |
|---|---|
| Train Loss | 2.012 |
| Eval Loss | 1.678 |
| Training Time | ~209 hours (7.526e+05 seconds) |
Note: The lower eval loss is typical and can be attributed to regularization techniques (e.g., weight decay, dropout) and the specific characteristics of the evaluation split.
Note: For precise carbon footprint tracking in future runs, we recommend integrating tools like CodeCarbon directly into the training loop.
This is a base model, not an instruction-tuned chat model.
AutoModelForSequenceClassification, AutoModelForTokenClassification), generating text embeddings, or continued pretraining on Hungarian corpora.magyar-nlp-szine-java/ModernBERT-base_hun_tokenizer.If you use this model in your research or development, please cite the original ModernBERT work and this model:
@misc{modernbert,
title={Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference},
author={Benjamin Warner and Antoine Chaffin and Benjamin Clavié and Orion Weller and Oskar Hallström and Said Taghadouini and Alexis Gallagher and Raja Biswas and Faisal Ladhak and Tom Aarsen and Nathan Cooper and Griffin Adams and Jeremy Howard and Iacopo Poli},
year={2024},
eprint={2412.13663},
archivePrefix={arXiv},
primaryClass={cs.CL}
}