CoolFace
Modelpublic

YenugulaAIML/scaleop-pythia-conversions

sourceHugging Faceapache-2.0updated 1mo agoView on Hugging Face
0likes
Model Card

ScaleOp — Pythia size-conversion checkpoints

Research artifacts for the paper "Wiring Beats Blending: What Transfers Between Transformer Sizes — and What Doesn't" (arXiv:2608.02829).

The paper asks whether a pretrained large model can be converted into a smaller sibling instead of training the small size from scratch. These checkpoints are the endpoints of matched-budget recovery races: every arm gets the same target shape, data order, schedule, and token budget, and only the starting weights differ. The initializations compared:

InitConstruction
randomfrom scratch
projectiondense linear projection of the donor weights
subclonestructured selection (magnitude pruning of the donor)
subclone_rsselection + variance-preserving rescale
hybridselection + least-squares compensation
hybrid_rsselection + compensation + rescale (the paper's method)

What's in this repo

All files are plain PyTorch state_dicts for GPTNeoXForCausalLM with the target size's stock Pythia config. They are research checkpoints trained for 30M–1B tokens (0.01–0.3% of Pythia's pretraining), useful for studying conversion initializations — not production or instruction-tuned models.

Pair A: Pythia-1.4B → 410M

FileBudgetFinal WikiText-103 ppl
pairA_1.4b-to-410m/hybrid_30M.pt30M114.1
pairA_1.4b-to-410m/subclone_30M.pt30M355.8
pairA_1.4b-to-410m/projection_30M.pt30M1,054.5
pairA_1.4b-to-410m/random_30M.pt30M1,519.0
pairA_1.4b-to-410m/hybrid_100M.pt100M62.3
pairA_1.4b-to-410m/subclone_100M.pt100M103.1
pairA_1.4b-to-410m/hybrid_rs_1B.pt1B40.0
pairA_1.4b-to-410m/subclone_rs_1B.pt1B40.0
pairA_1.4b-to-410m/random_1B.pt1B57.4

Reference points: the real Pythia-410M scores ≈15.6 on the same eval; transfer initialization beats from-scratch by up to 18× at 30M tokens, and both rescale arms converge to parity at 1B.

Pair B: Pythia-410M → 160M (depth-dominated, 3 data-draw seeds)

FilesBudgetFinal ppl (mean over seeds)
pairB_410m-to-160m/hybrid_30M_s{0,1,2}.pt30M113.2 ± 4.5
pairB_410m-to-160m/subclone_30M_s{0,1,2}.pt30M118.5 ± 3.3
pairB_410m-to-160m/random_30M_s{0,1,2}.pt30M1,505.2 ± 57.9
pairB_410m-to-160m/{hybrid,subclone}_100M_s0.pt100M77.1 / 74.4

Per-seed numbers and the full ablation ladder are in the paper's appendix.

Usage

python
import torch
from huggingface_hub import hf_hub_download
from transformers import AutoConfig, AutoTokenizer, GPTNeoXForCausalLM

path = hf_hub_download(
    "YenugulaAIML/scaleop-pythia-conversions",
    "pairA_1.4b-to-410m/hybrid_rs_1B.pt",
)
config = AutoConfig.from_pretrained("EleutherAI/pythia-410m")   # target size's stock config
model = GPTNeoXForCausalLM(config)
model.load_state_dict(torch.load(path, map_location="cpu"))
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-410m")

out = model.generate(**tokenizer("The capital of France is", return_tensors="pt"), max_new_tokens=10)
print(tokenizer.decode(out[0]))

For pair B, use the EleutherAI/pythia-160m config and tokenizer instead.

Training data

Continued pre-training on a deterministic stream of pile-uncopyrighted, with a frozen 10,000×128 evaluation corpus that is contamination-guarded against the training stream. The full recipe, configs, and seeds are in the code repository.

Limitations

These are controlled-experiment artifacts, not usable assistants: budgets stop far short of full pretraining, all models are base LMs with no instruction tuning or safety training, and they inherit the biases of the Pile and the Pythia family. Single-seed cells are noted in the paper.

Links

Citation

bibtex
@article{yenugula2026wiring,
  title   = {Wiring Beats Blending: What Transfers Between Transformer Sizes --- and What Doesn't},
  author  = {Yenugula, Ravi Satya Durga Prasad},
  journal = {arXiv preprint arXiv:2608.02829},
  year    = {2026}
}