nanochat-d26 dclm-edu base model (973M, 20 tokens per parameter)
Research artifact. A 973M-parameter base language model (plain next-token
predictor) pretrained on
HuggingFaceTB/dclm-edu
instead of ClimbMix, at 20 tokens per parameter. It is the one non-ClimbMix
rung of the pretraining priors base-model evaluation battery (experiment 089):
the same architecture, tokenizer and training code as the ClimbMix ladder
(jkminder/d26_973m_seed*), with only the corpus swapped, to test whether a
corpus with roughly eight times ClimbMix's share of political documents changes
what the resulting chat model believes, how linearly separable its stance is,
or how far a narrow fine-tune spreads. Its chat (SFT) version is
Eugleo/exp089-d26-dclmedu-tpp20-sft.
Arm tag: d26_clean_tpp20-f2b6fdd911bc (arm hash over config and data code
f2b6fdd911bc). Trained 2026-09-24 on one 8xH100 node in 8.76 hours.
Architecture
nanochat GPT variant, frozen for the study (conf/model/d26_clean_tpp20.yaml,
the "clean" family): depth 26, hidden size 1664, 13 attention heads (head dim
128), sequence length 2048, vocabulary 32,768; 972.9M parameters (918.4M
"scaling" parameters, which set the token budget), bfloat16. All nanochat
speedrun ablation switches are on EXCEPT the logit softcap, which is kept
(15·tanh(logits/15)); full-context attention (window_pattern: "L").
Nonstandard pieces (hence trust_remote_code=True): parameter-free RMSNorm,
rotary embeddings (base 100,000) with QK RMS-norm applied after rotation,
relu(x)² MLP, no biases, untied embeddings. See the bundled
modeling_nanochat_gpt.py.
Tokenizer: the nanochat BPE used by every arm of the study, 32,768 tokens
(32,759 learned + 9 special; only <|bos|>, id 32759, appears in
pretraining). It was trained once on ClimbMix and pinned; it was NOT retrained
on dclm-edu, so scores stay comparable with the ClimbMix arms.
Pretraining data
- Source:
HuggingFaceTB/dclm-edu, Hub filesdata/000_00000.parquettodata/082_00000.parquetin order, keeping documents withedu_int_score >= 3(about 31.5 % of rows; the Hub set is already the FineWeb-Edu-classifier-filtered subset of DCLM). - Corpus: 246 training shards of 84,992 documents = 20,908,032 documents,
single
textcolumn; validation = the ClimbMix validation shard (shard_06542, byte-identical copy) so validation bits per byte are comparable with every other arm. Nothing from the training corpus is held out. - Budget: 20 tokens per scaling parameter = 18,368,430,080 tokens, single pass, batch 2²⁰ tokens, 17,517 steps. The loader cuts documents at 2,048 tokens and measured 979,348 tokens per block, so the registered corpus holds 20.00B tokens (1.089× the budget); the last ~8 % of shards were never read.
- Code: modified fork of
karpathy/nanochat (Muon for matrices,
AdamW for embedding/head). Init seed 42, data seed −1. Full config in the
companion
meta_017517.json; the corpus build recipe is inbuild_summary.jsonandbuild_summary_more.json(first build to Hub file 059, extension to file 082).
Evaluation (step 17,517)
| metric | this model (dclm-edu, 20 tpp) |
|---|---|
| validation bits per byte, ClimbMix held-out shard | 0.7725 |
| CORE (DCLM 22-task centered average, context capped at 2048) | 0.2881 |
| HellaSwag 0-shot accuracy | 0.524 |
| ARC-Easy / ARC-Challenge accuracy | 0.724 / 0.424 |
| PIQA / COPA / WinoGrande accuracy | 0.715 / 0.690 / 0.556 |
| LAMBADA (OpenAI) accuracy | 0.461 |
The validation shard is in-distribution for the ClimbMix arms and
out-of-distribution for this one, so the bpb number is a sanity check, not a
quality comparison; the ClimbMix d26 arms at 20 tpp score lower bpb on it.
Per-task CORE accuracies and centered scores are in the companion
base_eval_017517.csv / .json.
For the study's own read-outs (political lean, probe separability, narrow fine-tune transfer) see the chat model's card: the dclm-edu chat was indistinguishable from the ClimbMix 20-tpp chats on all three.
Use
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Eugleo/exp089-d26-dclmedu-tpp20-base"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo, trust_remote_code=True, dtype=torch.bfloat16, device_map="cuda"
)
inputs = tokenizer("The capital of France is", return_tensors="pt").to("cuda")
out = model.generate(**inputs, max_new_tokens=64, do_sample=True, temperature=0.8, top_k=50)
print(tokenizer.decode(out[0], skip_special_tokens=True))
Batched inputs with padding are not supported by the custom attention
implementation (use batch size 1 or equal-length rows); maximum context is
2048 tokens. The export was produced by the study's hf_export converter,
which checks the converted weights against the nanochat checkpoint (identical
logits on identical inputs).
Licence
Weights: CC BY-NC 4.0, non-commercial research use, kept identical to the rest
of the study's models for comparability (dclm-edu itself is CC BY 4.0; the
tokenizer was trained on ClimbMix, whose licence is research-only). Modeling
code: MIT, derived from karpathy/nanochat — see LICENSE.
Contact: Evžen Wybitul (Anthropic Fellows program / safety-research).