How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("fill-mask", model="KRLabsOrg/ModernBERT-base-hu")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("KRLabsOrg/ModernBERT-base-hu")
model = AutoModelForMaskedLM.from_pretrained("KRLabsOrg/ModernBERT-base-hu", device_map="auto")
Quick Links

Hungarian ModernBERT

We've used the transtokenizer repo to create a mapped ModernBERT-base model to Hungarian. To create the data, we've used the OpenSubtitles corpus to obtain EN-HU parallel sentences to train the mapping.

Downloads last month
12
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for KRLabsOrg/ModernBERT-base-hu

Finetuned
(1,626)
this model