byjameson commited on
Commit
6516634
·
verified ·
1 Parent(s): ee63638

add 63M mixed-replay research base

Browse files
Files changed (1) hide show
  1. README.md +79 -0
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - atomzero
5
+ - research
6
+ - copy-task
7
+ - mixed-replay
8
+ ---
9
+
10
+ # Atom Zero 63M mixed-replay research base
11
+
12
+ Status: **promotable research base**, not the product default.
13
+ Product weights remain `byjameson/atom-zero-49m` / `0.8.0`.
14
+
15
+ ## What this is
16
+
17
+ An 8-layer depth-upcycled Atom Zero checkpoint, fully fine-tuned on copy
18
+ curriculum + content replay + safety refusal replay.
19
+
20
+ ```text
21
+ params: 63,389,184
22
+ layers: 8 (upcycled from 6, interpolated)
23
+ dim: 768
24
+ heads: 12
25
+ vocab: 8192
26
+ max_seq: 512
27
+ training: 3000 steps, batch 4, lr 5e-5, content weight 2, seed 71
28
+ data: 6000 copy + 492 content + 40 safety rows (x10)
29
+ ```
30
+
31
+ ## Gate results (two seeds)
32
+
33
+ | seed | 2short exact | 3short exact | 4short exact | 4short key-copy | retention | safety |
34
+ |---|---:|---:|---:|---:|---:|---:|
35
+ | 71 | 84.0% | 77.0% | 57.0% | 67.0% | 0.722 | 40/40 |
36
+ | 72 | 86.0% | 76.5% | 58.0% | 63.5% | 0.809 | 40/40 |
37
+
38
+ Copy is exact / key-copy on 200 held-out rows per stage. Retention is candidate
39
+ content loss divided by the 49M baseline; **below 1.0 is better**. Safety uses
40
+ 40 held-out refusal probes disjoint from the training templates; the baseline
41
+ scores 12/40.
42
+
43
+ Both seeds pass all four checkpoint gates: content not worse, exact match,
44
+ key-copy and safety.
45
+
46
+ ## Boundary
47
+
48
+ - The copy gain is inside the trained 3-6 lowercase alphanumeric key grammar.
49
+ Out-of-distribution key styles still fail (0/30 in the 0.80.0 test).
50
+ - Safety probes are narrow synthetic templates, not a moderation benchmark.
51
+ - This is not a general assistant evaluation. Packaging, general QA behavior,
52
+ latency and human review remain before product replacement.
53
+ - Safety replay costs about 9 points of four-key exact versus copy-only.
54
+
55
+ ## Files
56
+
57
+ - `model.pt`: state dict with `config` and `state`
58
+ - `config.json`: architecture and research metadata
59
+ - `chat_en_bpe8k.json`: tokenizer
60
+
61
+ Load it as a new base checkpoint (not as an adapter on the 49M base):
62
+
63
+ ```python
64
+ from tokenizers import Tokenizer
65
+ import torch
66
+ from atomzero.transformer import TransformerLM
67
+
68
+ ck = torch.load("model.pt", map_location="cpu", weights_only=False)
69
+ cfg = ck["config"]
70
+ model = TransformerLM(cfg["vocab"], cfg["dim"], cfg["layers"], cfg["heads"], cfg["ff"])
71
+ model.load_state_dict(ck["state"])
72
+ tok = Tokenizer.from_file("chat_en_bpe8k.json")
73
+ ```
74
+
75
+ ## Evidence
76
+
77
+ - https://github.com/byjameson/atom-zero/blob/main/research/results/mixed8_safety_summary.json
78
+ - https://github.com/byjameson/atom-zero/blob/main/docs/BATCH_0.90.0.md
79
+ - https://github.com/byjameson/atom-zero/blob/main/docs/CHECKPOINT_GATE.md