Llamacha/monolingual-quechua-iic
Viewer • Updated • 175k • 534 • 4
How to use makitty/quechuabert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="makitty/quechuabert") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("makitty/quechuabert")
model = AutoModelForMaskedLM.from_pretrained("makitty/quechuabert", device_map="auto")Small BertForMaskedLM for Southern Quechua, tokenized with the morphological PRPE segmenter from QuechuaTok.
CPU run: ~20k Llamacha lines, 5000 MLM steps, tiny BERT (hidden=256, layers=4). Final train loss ≈ 6.19. Early checkpoint for visibility, not a finished SOTA model.
Contreras, M. (2026). QuechuaTok. arXiv:2606.23943 — https://arxiv.org/abs/2606.23943
Install QuechuaTok, then load the model weights from this repo. Custom PRPE tokenizer lives in quechuatok.hf_tokenizer.
See QuechuaTok issue #8 and scripts/train_quechuabert.py.