Loading…
Loading…
Model A: GPT-2 small (124M) trained from scratch, the baseline of a controlled comparison with a Gemma-style model trained identically.
A small research model from the CuriosLM project, released for reproducibility and study. It is a base model: not instruction-tuned and not safety-tuned, so it can produce false, biased or nonsensical text.
Read more in the write-up, Part 1, pretraining and Part 2, inference, positions, attention and context extension; the code is at Shinibali/CuriosLM.
sample-10BT)| Evaluation | Score |
|---|---|
| Perplexity, held-out FineWeb-Edu | 21.89 |
| Perplexity, held-out Cosmopedia-v2 | 20.31 |
| ARC-Easy (acc) | 52.4% |
| HellaSwag (acc_norm) | 32.4% |
| LAMBADA (acc) | 24.2% |
| LAMBADA (perplexity) | 111.1 |
Perplexity on about 2M held-out tokens of each dataset; benchmarks zero-shot with EleutherAI's lm-evaluation-harness.
Standard 🤗 GPT-2 format:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("CuriosLM/gpt2-124m-fineweb-edu")
model = AutoModelForCausalLM.from_pretrained("CuriosLM/gpt2-124m-fineweb-edu")
ids = tokenizer("The mitochondria is", return_tensors="pt").input_ids
print(tokenizer.decode(model.generate(ids, max_new_tokens=40, do_sample=True, top_k=50)[0]))