Views
No views yet
Architecture: ModernBERT-Base
- Parameters: 149M
- Layers: 22
- Hidden size: 768
- Attention heads: 12
- Context window: 1024 tokens
- Positional embeddings: RoPE (Rotary Position Embeddings)
- Normalization: Pre-LayerNorm| Metric | Score |
|---|---|
| Test Loss | 3.03 |
| Perplexity | 20.78 |
1from transformers import AutoTokenizer, AutoModelForMaskedLM
2
3# Load model and tokenizer
4tokenizer = AutoTokenizer.from_pretrained("MWireLabs/nyishibert")
5model = AutoModelForMaskedLM.from_pretrained("MWireLabs/nyishibert")
6
7# Example: Fill mask
8text = "Ngulug [MASK] nyilakuma"
9inputs = tokenizer(text, return_tensors="pt")
10outputs = model(**inputs)
11
12# Get predictions
13masked_index = (inputs.input_ids == tokenizer.mask_token_id).nonzero(as_tuple=True)[1]
14logits = outputs.logits[0, masked_index, :]
15predicted_token_id = logits.argmax(axis=-1)
16predicted_token = tokenizer.decode(predicted_token_id)
17
18print(f"Predicted word: {predicted_token}")1from transformers import pipeline
2
3# Create fill-mask pipeline
4unmasker = pipeline('fill-mask', model='MWireLabs/nyishibert')
5
6# Predict masked tokens
7result = unmasker("Ngulug [MASK] nyilakuma")
8print(result)1from transformers import AutoModelForSequenceClassification
2
3# Load for sequence classification
4model = AutoModelForSequenceClassification.from_pretrained(
5 "MWireLabs/nyishibert",
6 num_labels=2
7)
8# ... add your fine-tuning code1@misc{nyishibert2026,
2 author = {MWire Labs},
3 title = {NyishiBERT: A Monolingual Language Model for Nyishi},
4 year = {2026},
5 publisher = {HuggingFace},
6 howpublished = {\url{https://huggingface.co/MWireLabs/nyishibert}},
7}1@inproceedings{wmt25,
2 title = {Findings of the 2025 Conference on Machine Translation (WMT25)},
3 booktitle = {Proceedings of the Tenth Conference on Machine Translation},
4 year = {2025},
5 address = {Suzhou, China},
6 month = {November},
7 publisher = {Association for Computational Linguistics}
8}