nanochat-d26 dclm-edu chat model (973M, SFT)
Research artifact. The chat version of
Eugleo/exp089-d26-dclmedu-tpp20-base,
a 973M nanochat model pretrained at 20 tokens per parameter on
HuggingFaceTB/dclm-edu
(documents with edu_int_score >= 3) instead of ClimbMix, after one epoch of
the standard nanochat supervised fine-tuning. It is the one non-ClimbMix point
of the pretraining priors base-model evaluation battery (experiment 089) and
sits on that study's ladder plots next to the ClimbMix 973M 20-tpp chats
(jkminder/d26_973m_seed*_sft), which share its architecture, tokenizer,
SFT mixture and SFT recipe.
Tag: d26_clean_tpp20-f2b6fdd911bc-sft-std. Trained 2026-09-24 on one
8xH100 node (14 minutes including export).
Setting
- Architecture (frozen for the study): nanochat GPT variant, depth 26,
hidden size 1664, 13 heads (head dim 128), sequence length 2048,
vocabulary 32,768; 972.9M parameters, bfloat16. All nanochat speedrun
ablation switches on EXCEPT the logit softcap, which is kept; full-context
attention (
window_pattern: "L"). Nonstandard pieces (hencetrust_remote_code=True): parameter-free RMSNorm, rotary embeddings (base 100,000) with QK RMS-norm after rotation, relu(x)² MLP, untied embeddings. Tokenizer trained once on ClimbMix and pinned across every arm. - Pretraining (base model): dclm-edu, 246 shards = 20.9M documents, 20 tokens per scaling parameter = 18.37B tokens, single pass, batch 2²⁰ tokens, 17,517 steps; validation bits per byte 0.7725 on the ClimbMix held-out shard, CORE 0.2881. See the base model's card.
- SFT (this model): the study's standard chat SFT
(
ppriors.sft.chat_sftdefaults, the nanochat SFT stage): mixture = SmolTalk ×1 + MMLU auxiliary_train ×3 + GSM8K ×4, shuffled, one pass; 465 steps of 2²⁰ tokens (about 488M tokens); only assistant tokens supervised; cold optimizer (load_optimizer=0). Validation bits per byte on the SFT mixture after training: 0.2725. Same mixture, masking and schedule as the ClimbMix ladder's SFTs, so every number below is comparable with them. Full config in the companionmeta_000465.json.
What the study measured on this chat
All read-outs below come from the experiment-089 battery (1,536 political
multiple-choice items from the study's pretraining-priors-political-mcq-*
sets, both answer orders, correct wording; MMLU as the apolitical control).
The comparison column is the mean ± SE over the four ClimbMix 973M 20-tpp
seeds.
| this chat (dclm-edu, 20 tpp) | ClimbMix 973M 20 tpp (4 seeds) | |
|---|---|---|
| format gate | pass (letter mass 0.993, order consistency 0.835) | 4/4 pass |
| right-leaning share, all political items | 24.9 % | 27.8 % ± 1.4 |
| MMLU accuracy (same prompt format) | 0.574 | 0.581 ± 0.017 |
| gender-domain linear probe, cross-domain accuracy at best block | 0.660 (blocks 17–20 of 26) | 0.646 ± 0.007 |
| gender → left narrow fine-tune, transfer D (KL 0) | 37.4 | ≈ 39 (35–43) |
| gender → right narrow fine-tune (KL 0) | collapsed to the 50/50 letter at both training seeds; learned the side at KL 1 | collapsed in 2 of 8 attempts |
Per domain, right share: race 12 %, economy 17 %, gender 20 %, science 30 %, crime and guns 34 %, immigration 36 % — the same ordering as the ClimbMix chats. Reading: a pretraining corpus with roughly eight times ClimbMix's share of political documents produced a chat that is indistinguishable from the ClimbMix 20-tpp chats on lean, separability and narrow-fine-tune transfer.
Use
The tokenizer ships a chat template reproducing nanochat's conversation
rendering token-for-token: <|bos|>, turns wrapped in
<|user_start|>...<|user_end|> / <|assistant_start|>...<|assistant_end|>,
a system message merged into the first user message. Generation stops at
<|assistant_end|> (id 32763).
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Eugleo/exp089-d26-dclmedu-tpp20-sft"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo, trust_remote_code=True, dtype=torch.bfloat16, device_map="cuda"
)
messages = [{"role": "user", "content": "Why is the sky blue?"}]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt"
)["input_ids"].to("cuda")
out = model.generate(inputs) # generation_config: temperature 0.6, top_k 50
print(tokenizer.decode(out[0, inputs.shape[1]:], skip_special_tokens=True))
Batched inputs with padding are not supported (batch size 1 or equal-length rows); maximum context 2048 tokens; the template supports only plain string messages.
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 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. SFT data: SmolTalk
(Apache 2.0), MMLU (MIT), GSM8K (MIT).
Contact: Evžen Wybitul (Anthropic Fellows program / safety-research).