Model B's architecture trained on a 50:50 mix of FineWeb-Edu and Cosmopedia-v2 instead of FineWeb-Edu alone, everything else equal.
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) + 50% HuggingFaceTB/smollm-corpus (cosmopedia-v2)| Evaluation | Score |
|---|---|
| Perplexity, held-out FineWeb-Edu | 24.56 |
| Perplexity, held-out Cosmopedia-v2 | 6.76 |
| ARC-Easy (acc) | 51.6% |
| HellaSwag (acc_norm) | 33.2% |
| LAMBADA (acc) | 26.9% |
| LAMBADA (perplexity) | 99.3 |
Perplexity on about 2M held-out tokens of each dataset; benchmarks zero-shot with EleutherAI's lm-evaluation-harness.
This architecture isn't in 🤗 transformers; it loads with the CuriosLM model code (curioslm/model.py), which will be released publicly. The tokenizer is GPT-2's (tiktoken gpt2).
import json, tiktoken, torch
from huggingface_hub import hf_hub_download
from safetensors.torch import load_model
from curioslm.config import GPTConfig
from curioslm.model import GPT
repo = "CuriosLM/gemma-style-113m-fineweb-edu-cosmopedia"
config = json.load(open(hf_hub_download(repo, "config.json")))
model = GPT(GPTConfig(**config["model_args"])).eval()
load_model(model, hf_hub_download(repo, "model.safetensors"))
enc = tiktoken.get_encoding("gpt2")
ids = torch.tensor([enc.encode("The mitochondria is")])
print(enc.decode(model.generate(ids, max_new_tokens=40, top_k=50)[0].tolist()))