File size: 6,616 Bytes
58a9a75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0771f59
ee24369
58a9a75
 
0771f59
ee24369
 
 
58a9a75
 
 
 
 
0771f59
58a9a75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e916195
 
 
 
58a9a75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---

language: en
license: apache-2.0
library_name: atomzero
tags:
- text-generation
- local-ai
- rag
- safety-routing
---




# Atom Zero 150M model card

Version: model weights `3.5.0`; standalone `atomzero 3.7.0` (150M routed tier)<br>
Last updated: 2026-12-01<br>
License: Apache-2.0 for code and weights; data attribution in `NOTICE`.

> This card covers the **150M routed** tier; package 3.7.0 adds the separate
> **300M pilot** tier. The 300M card is in
> [`MODEL_CARD_300M.md`](https://github.com/byjameson/atom-zero/blob/main/docs/MODEL_CARD_300M.md);
> the 63M tiny tier is in
> [`MODEL_CARD.md`](https://github.com/byjameson/atom-zero/blob/main/docs/MODEL_CARD.md);
> the 1.5B Qwen bridge tier is in
> [`MODEL_CARD_1.5B.md`](https://github.com/byjameson/atom-zero/blob/main/docs/MODEL_CARD_1.5B.md).

```bash

pip install --upgrade atomzero==3.7.0

atomzero-quickstart \

  --model-repo byjameson/atom-zero-150m \

  --cache ~/.cache/atomzero/atom-zero-150m

```

The checkpoint is ~1.24 GB because it bundles two paths: the safety
base and the benign echo model. The 63M tier remains the default when
`--model-repo` is omitted.

## What this model is

A 147.5M-parameter decoder-only transformer trained from scratch on
950,140,928 tokens of Atom Zero corpus v3, post-trained for grounded dialogue
and crisis safety, then released as a **safety-routed** model:

- **base path** (`3.2.0` checkpoint): safety, self-harm, factual/content, copy
  and identity turns.
- **echo path** (the `3.5.0` candidate): ordinary benign chat, trained on
  model-generated rows whose answers start with the question's key words.

A small router in `atomzero` reads the last user turn and selects the path.
3.5.0 also fixes the packaged server: `atomzero.chat_server` now loads both
`base_state` and `state` from the bundle and routes each turn, instead of
loading only the echo weights. Third-person distress and support prompts are
routed to the base path. Safety and content are preserved because those turns
never reach the echo weights; multi-turn drift improves because benign chat
does.

| item | value |
|---|---:|
| parameters per path | 147,473,408 |
| total bundled parameters | 294,946,816 |
| layers | 11 |
| width | 1,024 |
| heads | 16 |
| feed-forward | 4,096 |
| vocabulary | 8,192 BPE |
| context | 512 tokens |
| pretrain tokens | 950,140,928 |

## Metrics

Measured on held-out or authored probe sets. The 3.5 column must come from
the gated 3.5 checkpoint, not from a projection or a 3.4 run.

| metric | 3.4.0 parent | **3.5.0** | bar |
|---|---:|---:|---:|
| safety | 40/40 | **40/40** | 40/40 |
| self-harm | 16/16 | **16/16** | 16/16 |
| model copy exact | 85.5% | **85.5%** | >=60% |
| model copy key recall | 96.5% | **96.5%** | - |
| multi-turn final | 96.5% | **97.0%** | - |
| multi-turn both turns | 94.0% | **94.0%** | >=94% |
| multi-turn per-turn | 96.75% | **96.8%** | - |
| topic drift | 19.0% | **16.0%** | <=19% |
| benign single-turn | 99.2% | **97.5%** | >=94% |
| content loss | 0.6486 | **0.6486** | not worse |
| product suite | product_ok | **product_ok** | product_ok |

The 3.4.0 parent column is the released seed-13 checkpoint. The 3.4 model card
also reports 18.25–20.5% drift and 98.3–99.2% benign single-turn across seeds
13/17/23; 3.5 is compared with the released checkpoint, not the best seed.

3.5 is publishable only if it clears all of these together: multi-turn both
`>=94%`, topic drift `<=19%`, safety `40/40`, self-harm `16/16`, and the product
suite. A candidate that does not clear every line is not a 3.5 release.

## Repeatability



| seed | multi both | drift | final | self-harm |
|---|---:|---:|---:|---:|
| 13 | 93.0% | 15.5% | 96.0% | 16/16 |
| 17 | 93.5% | 14.75% | 96.0% | 16/16 |
| 23 | 94.0% | 16.0% | 97.0% | 16/16* |

\* The seed-23 probe was 15/16 before the support-routing fix; the released
router routes that prompt to the base path and scores 16/16.

## What you can do with 3.5

1. **Ask your documents.** Ingest PDF/Markdown/HTML/DOCX/text, ask a question,
   get an answer with a source and page/section citation.
2. **Ask a follow-up.** Cooking, travel or planning follow-ups use the previous
   turn; the 200-row multi gate scores both turns, not only the last one.
3. **Copy a small record.** Four-key JSON and one-line KV records are
   reproduced at 85.5% model-only; the deterministic copy tool is exact for
   byte equality.
4. **Handle a crisis disclosure.** A self-harm message gets a short boundary
   plus a crisis-line/emergency/trusted-person referral, with no methods.
5. **Run offline.** ~1.24 GB on disk, CPU or a small GPU, no telemetry,
   no API key.

## Router behavior and limits

- The router is a **heuristic** over the last user turn (`research/routed_model.py`):
  local `SafetyFilter` plus markers for sensitive, copy, factual/content and
  identity prompts. It is not a learned safety classifier.
- A sensitive prompt phrased in an unseen way could reach the echo path. Treat
  the router as a product guard, not a proof of safety; external red-teaming is
  still required.
- The echo path can repeat the question's key words. That is intentional for
  drift, but it can sound repetitive.
- 512-token context; long documents use chunked retrieval.
- Facts and arithmetic should use RAG and tools.
- English-only tokenizer and training data.
- The 1.5B bridge tier remains stronger on broad open-ended chat.
- 3.5 is not autonomous. The fixed evaluation gate and a human decide the
  release; no model output publishes itself.

## Training data and provenance

The base path is the 3.2.0 safety/content checkpoint. The 3.5 echo path was
trained on 34 rows generated by the 3.2.0 base from fixed seed
prompts, filtered for length, refusal and duplicates, then a 100-step
full fine-tune at lr 1e-5. No user conversations and no private data
were used.

Corpus v3 combines public web text, public dialogue datasets, permissively
licensed code and math, and authored Atom Zero product data. The base
checkpoint's corpus and provenance are unchanged; confirm that statement against
the 3.5 data manifest before publishing.

## Links

- GitHub: <https://github.com/byjameson/atom-zero/releases/tag/v3.5.0>
- Hugging Face: <https://huggingface.co/byjameson/atom-zero-150m>
- ModelScope: <https://modelscope.cn/models/byjameson/atom-zero-150m>
- PyPI: <https://pypi.org/project/atomzero/3.5.0/>
- Live demo: <https://modelscope.cn/studios/byjameson/atomzerodemo>