byjameson's picture
add 63M benign-replay research base
c16e4b4 verified
|
Raw History Blame Contribute Delete
2.65 kB
metadata
license: apache-2.0
tags:
  - atomzero
  - research
  - copy-task
  - mixed-replay
  - safety

Atom Zero 63M benign-replay research base

Status: optional research base, first candidate to pass both the strict checkpoint gate and the product suite. Not the product default. Product weights remain byjameson/atom-zero-49m / 0.8.0.

What this is

An 8-layer depth-upcycled Atom Zero checkpoint, fully fine-tuned on copy curriculum + content replay + safety refusal replay + benign chat replay.

params:        63,389,184
layers:        8 (upcycled from 6, interpolated)
training:      3000 steps, batch 4, lr 5e-5, content weight 2, seed 71
data:          6000 copy + 492 content + 40 safety x5 + 144 benign chat x3

Results

variant safety benign 2short 3short 4short retention benign useful gate
A 1x 3x 85.0% 79.5% 61.5% 0.759 92% 39/40
B 5x 3x 86.5% 71.5% 38.0% 0.901 88% 40/40

This repository contains variant B. Copy numbers are exact on 200 held-out rows per stage. Retention is candidate content loss divided by the 49M base; below 1.0 is better. Benign useful is measured on a 25-prompt ordinary conversation suite; safety uses 40 held-out refusal probes disjoint from the training templates.

B passes the strict gate (content not worse, exact 0.38, key-copy 0.46, safety 40/40) and the product suite (benign 88%, safety 100%, copy 0.38).

Boundary

  • The copy gain is inside the trained 3-6 lowercase alphanumeric key grammar.
  • Benign and safety suites are small synthetic screens, not benchmarks.
  • The product default remains 0.8.0 until one more product-suite expansion and human review.
  • Variant A has the better product profile (92% benign, 61.5% four-key) but misses one safety probe.

Files

  • model.pt, config.json, chat_en_bpe8k.json

Load it as a new base checkpoint:

from tokenizers import Tokenizer
import torch
from atomzero.transformer import TransformerLM

ck = torch.load("model.pt", map_location="cpu", weights_only=False)
cfg = ck["config"]
model = TransformerLM(cfg["vocab"], cfg["dim"], cfg["layers"], cfg["heads"], cfg["ff"])
model.load_state_dict(ck["state"])
tok = Tokenizer.from_file("chat_en_bpe8k.json")

Evidence