Views
No views yet
jhu-clsp/mmBERT-base that has undergone continued pre-training on a large corpus of Scandinavian languages (Swedish, Danish, Norwegian, and Icelandic).mmBERT is a powerful multilingual model trained on over 1,800 languages. This version specializes that broad knowledge by exposing it to a massive amount of high-quality, in-domain text, making it a powerful expert model for any Scandinavian NLU task.HPLT 2.0).fill-mask pipeline for masked word prediction.1from transformers import pipeline
2
3# Replace YOUR_USERNAME with your actual Hugging Face username
4model_id = "YOUR_USERNAME/scandmmBERT-base-scandinavian"
5unmasker = pipeline('fill-mask', model=model_id)
6
7# Swedish
8result_sv = unmasker("Sveriges huvudstad heter <mask>.")
9print([r['token_str'] for r in result_sv])
10
11# Danish
12result_da = unmasker("Dronningen af Danmark hedder <mask>.")
13print([r['token_str'] for r in result_da])isl_Latn)nno_Latn)swe_Latn)dan_Latn)nob_Latn)| Hyperparameter | Value |
|---|---|
learning_rate | 2e-5 |
per_device_train_batch_size | 2 |
gradient_accumulation_steps | 16 |
| Effective Batch Size | 64 |
max_steps | 50,000 |
optimizer | AdamW |
precision | bf16 |
max_seq_length | 512 |
transformers, and accelerate. The environment was managed with pixi.fill-mask pipeline shows strong performance in predicting contextually relevant words in Scandinavian languages.Sveriges huvudstad heter <mask>.StockholmDronningen af Danmark hedder <mask>.MargretheNorges mest berømte maler er Edvard <mask>.MunchmmBERT and HPLT sources, and you can cite this model as:1@misc{scandmmbert2025,
2 author = {Jonas Lind},
3 title = {scandmmBERT: A ModernBERT Specialized for Scandinavian Languages},
4 year = {2025},
5 publisher = {Hugging Face},
6 journal = {Hugging Face repository},
7 howpublished = {\url{[https://huggingface.co/YOUR_USERNAME/scandmmBERT-base-scandinavian](https://huggingface.co/YOUR_USERNAME/scandmmBERT-base-scandinavian)}}
8}