Downloads · 30 days
19
50% of all-time downloads
bean4259/babylm-roformer
babylm-roformer is a fill-mask model from bean4259. Use it when you need the model to fill a missing word. The card lists the license as mit.
A BERT-style masked language model trained from scratch on the BabyLM 10M dataset.
Downloads · 30 days
19
50% of all-time downloads
All-time downloads
38
Public
Parameters
10.6M
42.4 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors42.4 MB · 99%
From the Hugging Face model README
A BERT-style masked language model trained from scratch on the BabyLM 10M dataset.
from transformers import RoFormerForMaskedLM, RoFormerTokenizer
model = RoFormerForMaskedLM.from_pretrained("bean4259/babylm-roformer")
tokenizer = RoFormerTokenizer.from_pretrained("bean4259/babylm-roformer")
# Fill-mask example
text = "The cat sat on the [MASK]."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
Trained using a custom training loop with: