kabaros/ar-camel-ebooks-heavy-8.3M
BabyLM Arabic — Best Models per Dataset
Six GPT-2-style causal LMs (~17M params: n_embd=512, n_layer=4, n_head=8, n_ctx=512), each the best-performing tokeniser/seed combination for one of six ~8.3M-word Arabic corpus compositions, trained as part of an MSc dissertation on tokenisation and dataset composition for small-scale Arabic language models (University of Stirling). See the companion dataset cards for the five modified corpora (e.g. kabaros/ara-ebooks-heavy-8.3M) for composition details.
Grammaticality is measured via MultiBLiMP (minimal-pair judgment, mean of 3 seeds reported in the dissertation; the score below is this specific published checkpoint's individual run, the best of the 3 seeds trained for that dataset).
For context: the BabyLM-community/babylm-ara paper baseline (BPE, single run) scores 75.9; OLMo-2 (32B params, 6T tokens) scores 87% on the same task in Arabic.
Loading: the CAMeL/Farasa models use a custom PreTrainedTokenizerFast subclass (camel_tokenizer.py/farasa_tokenizer.py, included in each model's files) that applies morphological segmentation before every encode call. Load with trust_remote_code=True:
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("kabaros/<repo-name>", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("kabaros/<repo-name>")