Downloads · 30 days
10
0% of all-time downloads
llm-slice/blm-gpt2s-90M-s42
blm-gpt2s-90M-s42 is a machine learning model from llm-slice. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A 124M model with the GPT-2 architecture trained with the next token prediction loss for 10 epochs (~900M words) on 90% of the BabyLM corpus, as a naive autoregressive baseline for the Interaction track of the 2025 Ba…
Downloads · 30 days
10
0% of all-time downloads
All-time downloads
2.2K
Public
Parameters
124M
35.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors496 MB · 100%
From the Hugging Face model README
A 124M model with the GPT-2 architecture trained with the next token prediction loss for 10 epochs (~900M words) on 90% of the BabyLM corpus, as a naive autoregressive baseline for the Interaction track of the 2025 BabyLM challenge.
This model card is based on the model card of the BabyLM 100M GPT-2 baseline.
This is the pretrained GPT-2 model as a basis for PPO finetuning for the Interaction Track of the 2025 BabyLM challenge.
This is a pre-trained language model. It can be used to evaluate tasks in a zero-shot manner and also can be fine-tuned for downstream tasks. It can be used for language generation but given its small size and low number of words trained on, do not expect LLM-level performance.
We used the BabyLM 100M (Strict) dataset for training. We trained the tokenizer and model on randomly selected 90% of the corpus, which is composed of the following:
| Source | Weight | Domain | Citation | Website | License |
|---|---|---|---|---|---|
| BNC | 8% | Dialogue | BNC Consortium (2007) | link | link <sup>1</sup> |
| CHILDES | 29% | Dialogue, Child-Directed | MacWhinney (2000) | link | |
| Project Gutenberg | 26% | Fiction, Nonfiction | Gerlach & Font-Clos (2020) | link | link |
| OpenSubtitles | 20% | Dialogue, Scripted | Lison & Tiedermann (2016) | link | Open source |
| Simple English Wikipedia | 15% | Nonfiction | -- | link | link |
| Switchboard | 1% | Dialogue | Godfrey et al. (1992), Stolcke et al., (2000) | link | link |
<sup>1</sup> Our distribution of part of the BNC Texts is permitted under the fair dealings provision of copyright law (see term (2g) in the BNC license).
| Hyperparameter | Value |
|---|---|
| Number of epochs | 10 |
| Datapoint length | 512 |
| Batch size | 16 |
| Gradient accumulation steps | 4 |
| Learning rate | 0.0005 |
| Number of steps | 211650 |
| Warmup steps | 2116 |
| Gradient clipping | 1 |
| Optimizer | AdamW |
| Optimizer Beta_1 | 0.9 |
| Optimizer Beta_2 | 0.999 |
| Optimizer Epsilon | 10<sup>-8</sup> |
| Tokenizer | BytePairBPE |
| Vocab Size | 16000 |
The model is trained with next token prediction loss for 10 epochs.
The model has 124M parameters. In total we train on around 1B words and provide multiple checkpoints from the training. Specifically we provode:
This model is evaluated in two ways:
For the BLiMP, BLiMP supplement, and EWoK tasks, we use a filtered version of the dataset to only include examples with words found in the BabyLM dataset. For the Finetuning task, we both filter and sample down to a maximum 10 000 train examples.
Validation Data
Zero-shot Tasks
Finetuning Tasks
<sup>2</sup> https://www.quora.com/profile/Ricky-Riche-2/First-Quora-Dataset-Release-Question-Pairs
The metrics used to evaluate the model are the following:
The metrics were chosen based on the advice of the papers the tasks come from.
| Hyperparameter | MNLI, RTE, QQP, MRPC, BoolQ, MultiRC | WSC |
|---|---|---|
| Learning Rate | 3*10<sup>-5</sup> | 3*10<sup>-5</sup> |
| Batch Size | 16 | 16 |
| Epochs | 10 | 30 |
| Weight decay | 0.01 | 0.01 |
| Optimizer | AdamW | AdamW |
| Scheduler | cosine | cosine |
| Warmup percentage | 6% | 6% |
| Dropout | 0.1 | 0.1 |
We compare our student model against two official baselines from the 2025 BabyLM Challenge<sup>1</sup>:
| Task | 1000M-pre | SimPO | 900M-pre | 900M-RL |
|---|---|---|---|---|
| BLiMP | 74.88 | 72.16 | 77.52 | 77.53 |
| Suppl. | 63.32 | 61.22 | 56.62 | 56.72 |
| EWOK | 51.67 | 51.92 | 51.36 | 51.41 |
| COMPS | 56.17 | 55.05 | 55.20 | 55.18 |
| ET | 31.51 | 28.06 | 30.34 | 33.11 |
| GLUE | 52.18 | 50.35 | 53.14 | 52.46 |
See: BabyLM Challenge for the baselines.
PyTorch
The model took 2.5 hours to train and consumed 755 core hours (with 4 GPUs and 32 CPUs).
@misc{MayerMartinsBKB2025,
title={Once Upon a Time: Interactive Learning for Storytelling with Small Language Models},
author={Jonas Mayer Martins, Ali Hamza Bashir, Muhammad Rehan Khalid, Lisa Beinborn},
year={2025},
eprint={2502.TODO},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={ToDo},
}
Jonas Mayer Martins
GLUE: A multi-task benchmark and analysis platform for natural language understanding (Wang et al., ICLR 2019)
SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems (Wang et al., NeurIPS 2019)
BLiMP: The Benchmark of Linguistic Minimal Pairs for English (Warstadt et al., TACL 2020)
Findings of the BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corpora (Warstadt et al., CoNLL-BabyLM 2023)
🌏 Elements of World Knowledge (EWoK): A cognition-inspired framework for evaluating basic world knowledge in language models (Ivanova et al., 2024)
Cloze probability, predictability ratings, and computational estimates for 205 English sentences, aligned with existing EEG and reading time data (de Varda et al., BRM 2024)
Entity Tracking in Language Models (Kim & Schuster, ACL 2023)
Derivational Morphology Reveals Analogical Generalization in Large Language Models (Hofmann et al., 2024)
Automatically Constructing a Corpus of Sentential Paraphrases (Dolan & Brockett, IJCNLP 2005)
A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference (Williams et al., NAACL 2018)
The Winograd Schema Challenge (Levesque et al., PKRR 2012)
The PASCAL Recognising Textual Entailment Challenge (Dagan et al., Springer 2006)
The Second PASCAL Recognising Textual Entailment Challenge (Bar et al., 2006)
The Third PASCAL Recognizing Textual Entailment Challenge (Giampiccolo et al., 2007)
The Fifth PASCAL Recognizing Textual Entailment Challenge (Bentivogli et al., TAC 2009)
BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions (Clark et al., NAACL 2019)
Looking Beyond the Surface: A Challenge Set for Reading Comprehension over Multiple Sentences (Khashabi et al., NAACL 2018)