A GPT-2-style causal language model trained on Telugu, built for the BabyLM 2026 shared task. This repo contains 6 model checkpoints comparing two training strategies — random data ordering vs. curriculum learning — each run with 3 different random seeds, enabling statistically robust comparison.
Repo Structure
babylm_telugu_2026/
├── random_seed1/ # Random data order, seed 1
├── random_seed2/ # Random data order, seed 2
├── random_seed3/ # Random data order, seed 3
├── curriculum_seed1/ # Curriculum learning, seed 1
├── curriculum_seed2/ # Curriculum learning, seed 2
└── curriculum_seed3/ # Curriculum learning, seed 3
Each subfolder is a self-contained GPT-2 checkpoint (Safetensors format) loadable independently via from_pretrained.
Experimental Design
The core research question is: does curriculum learning improve sample-efficient pretraining for Telugu?
Condition
Data Order
Seeds
random_seed*
Shuffled uniformly at random
1, 2, 3
curriculum_seed*
Simple → complex, ordered by sentence length (bytes per line)
1, 2, 3
The curriculum strategy orders training examples from shortest to longest sentence (by byte count), so the model encounters simpler linguistic structures before more complex ones. This mirrors cognitively plausible language acquisition and follows the byte-ranked curriculum approach explored in prior BabyLM submissions.
Running 3 seeds per condition allows variance estimation and guards against seed-specific artefacts — a known issue in low-data training regimes.
Load any individual checkpoint by pointing from_pretrained at the subfolder:
python
1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
34# Choose any of the 6 checkpoints5checkpoint ="pulipakav-1/babylm_telugu_2026/curriculum_seed1"67tokenizer = AutoTokenizer.from_pretrained(checkpoint)8model = AutoModelForCausalLM.from_pretrained(checkpoint)910prompt ="తెలుగు భాష చాలా అందమైనది"# "Telugu language is very beautiful"11inputs = tokenizer(prompt, return_tensors="pt")1213with torch.no_grad():14 outputs = model.generate(15**inputs,16 max_new_tokens=50,17 do_sample=True,18 temperature=0.8,19 top_p=0.95,20)2122print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Comparing all runs
python
1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
34repo ="pulipakav-1/babylm_telugu_2026"5checkpoints =[6"random_seed1","random_seed2","random_seed3",7"curriculum_seed1","curriculum_seed2","curriculum_seed3",8]910text ="తెలుగు భాషలో సాహిత్యం చాలా సమృద్ధంగా ఉంది."1112for ckpt in checkpoints:13 path =f"{repo}/{ckpt}"14 tokenizer = AutoTokenizer.from_pretrained(path)15 model = AutoModelForCausalLM.from_pretrained(path)16 inputs = tokenizer(text, return_tensors="pt")17with torch.no_grad():18 loss = model(**inputs, labels=inputs["input_ids"]).loss
19print(f"{ckpt:25s} perplexity: {torch.exp(loss).item():.2f}")
Evaluation
⚠️ Results will be updated as evaluations are completed.
Planned metrics, reported as mean ± std across the 3 seeds per condition:
Metric
random (mean ± std)
curriculum (mean ± std)
Test perplexity
—
—
BLiMP-style accuracy
—
—
Intended Use
Research into curriculum learning for low-resource, morphologically rich languages
Baseline comparisons for Telugu language modeling
BabyLM 2026 evaluation and reproducibility studies
Cognitive science research on language acquisition in non-English settings
Out-of-scope: Production use, sensitive applications, or tasks requiring high factual accuracy. Outputs are unfiltered and the model is trained on limited, machine-translated data.
Limitations
Training data is machine-translated from English via IndicTrans2 and may carry translation artefacts or unnatural phrasing
The strict data budget limits coverage of rare vocabulary and complex syntax
Curriculum ordering is by byte length — a surface-level proxy for linguistic complexity; morphosyntactic difficulty in Telugu may not correlate perfectly with sentence length
No RLHF or alignment fine-tuning
Citation
bibtex
1@misc{babylm_telugu_2026,
2 author = {pulipakav-1},
3 title = {babylm\_telugu\_2026: GPT-2 Language Models for Telugu with Random and Curriculum Training},
4 year = {2026},
5 publisher = {Hugging Face},
6 url = {https://huggingface.co/pulipakav-1/babylm_telugu_2026}
7}
89@misc{babylm2026,
10 title = {BabyLM Turns 4: Call for Papers for the 2026 BabyLM Workshop},
11 author = {BabyLM Team},
12 year = {2026},
13 url = {https://arxiv.org/abs/2602.20092}
14}
1516@article{gala2023indictrans2,
17 title = {IndicTrans2: Towards High-Quality and Accessible Machine Translation of All 22 Scheduled Indian Languages},
18 author = {Gala, Jay and others},
19 year = {2023},
20 url = {https://arxiv.org/abs/2305.16307}
21}