Instructions to use KRLabsOrg/ModernBERT-base-hu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KRLabsOrg/ModernBERT-base-hu with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="KRLabsOrg/ModernBERT-base-hu")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("KRLabsOrg/ModernBERT-base-hu") model = AutoModelForMaskedLM.from_pretrained("KRLabsOrg/ModernBERT-base-hu") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,4 +9,4 @@ library_name: transformers
|
|
| 9 |
|
| 10 |
# Hungarian ModernBERT
|
| 11 |
|
| 12 |
-
We've used the [transtokenizer](https://github.com/LAGoM-NLP/transtokenizer) repo to create a mapped ModernBERT-base model to Hungarian.
|
|
|
|
| 9 |
|
| 10 |
# Hungarian ModernBERT
|
| 11 |
|
| 12 |
+
We've used the [transtokenizer](https://github.com/LAGoM-NLP/transtokenizer) repo to create a mapped ModernBERT-base model to Hungarian. To create the data, we've used the [OpenSubtitles](https://opus.nlpl.eu/OpenSubtitles/corpus/version/OpenSubtitles) corpus to obtain EN-HU parallel sentences to train the mapping.
|