yava-code commited on
Commit
42322ca
·
verified ·
1 Parent(s): 8759775

Publish Tessera-1B-Nano-Base checkpoint

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ pipeline_tag: text-generation
4
+ base_model: HuggingFaceTB/SmolLM2-360M
5
+ tags:
6
+ - next-concept-prediction
7
+ - conceptlm
8
+ - causal-lm
9
+ - smollm2
10
+ - tessera
11
+ license: apache-2.0
12
+ ---
13
+
14
+ # Tessera-1B-Nano-Base
15
+
16
+ The matched NTP-only baseline of the Tessera-1B-Nano comparison from Paragon
17
+ Intelligence Labs: the unchanged `HuggingFaceTB/SmolLM2-360M` backbone,
18
+ continued-pretrained without a concept path. It exists so the concept-arm result
19
+ is interpretable.
20
+
21
+ ## TL;DR
22
+
23
+ This arm is the control of a token-matched comparison: it consumed the same
24
+ tokens of the same packed corpus, in the same order, from the same
25
+ initialization as the concept arm, with no restarts and no NaNs.
26
+
27
+ - **Token loss is the reference**: the final numbers below are the baseline the
28
+ concept arm is compared against.
29
+ - The comparison outcome and the intervention readings live in the whitepaper at
30
+ `docs/whitepaper.md` in the ncp-smol repository.
31
+
32
+ ## Evaluation
33
+
34
+ | Metric | Value |
35
+ | --- | ---: |
36
+ | Held-out NTP loss | 2.5135 |
37
+ | Held-out perplexity | 12.3485 |
38
+ | Training tokens | 999,948,288 |
39
+ | Tracked compute estimate | $24.88 |
40
+
41
+ Intervention deltas are increases in held-out NTP loss relative to normal predicted concept
42
+ feedback, evaluated on identical batches.
43
+
44
+ ## Architecture
45
+
46
+ - chunk size: 4
47
+ - product code: 15 segments x 64 entries
48
+ - causal concept blocks: 2
49
+ - injection point: before token decoder block 2
50
+ - NCP target: next continuous concept
51
+ - loss: `L_ntp + 1 L_ncp + 1 L_vq`
52
+
53
+ This is a compact ConceptLM-style implementation, not an 8.9B NCP-ArchPreview replica. It
54
+ omits iterative residual coding, cross-scale residual connections, and the large-scale
55
+ training recipe.
56
+
57
+ ## Training data and provenance
58
+
59
+ The matched corpus and the training record are pinned in the ncp-smol repository:
60
+ packed-cache SHA256 hashes, the complete metric log, trainer state, and the raw
61
+ intervention evaluation JSON (also shipped in this repository as `eval.json` and
62
+ `metrics.jsonl`).
63
+
64
+ ## Loading
65
+
66
+ ```python
67
+ from transformers import AutoModelForCausalLM, AutoTokenizer
68
+
69
+ tokenizer = AutoTokenizer.from_pretrained("yava-code/Tessera-1B-Nano-Base")
70
+ model = AutoModelForCausalLM.from_pretrained("yava-code/Tessera-1B-Nano-Base")
71
+ ```
72
+
73
+ ## References
74
+
75
+ - ConceptLM: https://arxiv.org/abs/2602.08984
76
+ - NCP-ArchPreview: https://arxiv.org/abs/2609.10715
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "dtype": "float32",
9
+ "eos_token_id": 0,
10
+ "head_dim": 64,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 960,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 2560,
15
+ "is_llama_config": true,
16
+ "max_position_embeddings": 8192,
17
+ "mlp_bias": false,
18
+ "model_type": "llama",
19
+ "num_attention_heads": 15,
20
+ "num_hidden_layers": 32,
21
+ "num_key_value_heads": 5,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-05,
24
+ "rope_interleaved": false,
25
+ "rope_scaling": null,
26
+ "rope_theta": 100000,
27
+ "tie_word_embeddings": true,
28
+ "transformers_version": "4.57.6",
29
+ "use_cache": true,
30
+ "vocab_size": 49152
31
+ }
data_metadata.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "HuggingFaceFW/fineweb-edu",
3
+ "dtype": "uint32",
4
+ "eos_token_id": 0,
5
+ "revision": "87f09149ef4734204d70ed1d046ddc9ca3f2b8f9",
6
+ "sequence_length": 1024,
7
+ "subset": "sample-10BT",
8
+ "tokenizer": "HuggingFaceTB/SmolLM2-360M",
9
+ "tokenizer_revision": "f8027fd0eaeea54caa13c31d31b9fdc459c38b49",
10
+ "train_sha256": "c42f4bffe9e225eca05ee5fafa9bfc42875d014125f18f47919be611f775a413",
11
+ "train_tokens": 1000000000,
12
+ "validation_sha256": "61ecc77c5d586daa10c5938a6719463380e8e64347c0194e09635651561d4330",
13
+ "validation_tokens": 10000000
14
+ }
eval.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "predicted": {
3
+ "loss_by_chunk_offset": {
4
+ "0": 2.510525703430176,
5
+ "1": 2.51985764503479,
6
+ "2": 2.5085771083831787,
7
+ "3": 2.515171766281128
8
+ },
9
+ "ntp_loss": 2.513535797595978,
10
+ "perplexity": 12.348514810656889
11
+ }
12
+ }
experiment.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data": {
3
+ "cache_dir": "/vol/.cache/data/fineweb-edu-1b",
4
+ "cache_train_tokens": null,
5
+ "dataset": "HuggingFaceFW/fineweb-edu",
6
+ "overfit": false,
7
+ "revision": "87f09149ef4734204d70ed1d046ddc9ca3f2b8f9",
8
+ "sequence_length": 1024,
9
+ "shuffle_buffer": 10000,
10
+ "subset": "sample-10BT",
11
+ "text_column": "text",
12
+ "train_split": "train",
13
+ "train_tokens": 1000000000,
14
+ "validation_split": null,
15
+ "validation_tokens": 10000000
16
+ },
17
+ "model": {
18
+ "base_model": "HuggingFaceTB/SmolLM2-360M",
19
+ "chunk_size": 4,
20
+ "codebook_size": 64,
21
+ "concept_layers": 2,
22
+ "dtype": "bfloat16",
23
+ "insert_layer": 1,
24
+ "ncp_target": "continuous",
25
+ "ncp_weight": 1.0,
26
+ "revision": "f8027fd0eaeea54caa13c31d31b9fdc459c38b49",
27
+ "segments": 15,
28
+ "vq_weight": 1.0
29
+ },
30
+ "optim": {
31
+ "beta1": 0.9,
32
+ "beta2": 0.95,
33
+ "eps": 1e-08,
34
+ "grad_accum_steps": 16,
35
+ "learning_rate": 3e-05,
36
+ "max_grad_norm": 1.0,
37
+ "micro_batch_size": 8,
38
+ "min_lr_ratio": 0.1,
39
+ "warmup_ratio": 0.01,
40
+ "weight_decay": 0.1
41
+ },
42
+ "run": {
43
+ "mode": "ntp",
44
+ "name": "fineweb-edu-ntp",
45
+ "output_dir": "/vol/runs/fineweb-edu-ntp",
46
+ "resume": true,
47
+ "seed": 17
48
+ },
49
+ "train": {
50
+ "compile": false,
51
+ "eval_batches": 32,
52
+ "eval_every_tokens": 100000000,
53
+ "hourly_cost_usd": 2.74,
54
+ "log_every_steps": 10,
55
+ "max_wall_time_minutes": 1320,
56
+ "run_budget_usd": 60.0,
57
+ "save_every_tokens": 100000000
58
+ }
59
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 0,
5
+ "transformers_version": "4.57.6"
6
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
metrics.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7be42ff44504d60bdbc021f8743f31c625329f7c3ba72dc32e892e7f656695c
3
+ size 1447317080
special_tokens_map.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|endoftext|>",
4
+ "<|im_start|>",
5
+ "<|im_end|>",
6
+ "<repo_name>",
7
+ "<reponame>",
8
+ "<file_sep>",
9
+ "<filename>",
10
+ "<gh_stars>",
11
+ "<issue_start>",
12
+ "<issue_comment>",
13
+ "<issue_closed>",
14
+ "<jupyter_start>",
15
+ "<jupyter_text>",
16
+ "<jupyter_code>",
17
+ "<jupyter_output>",
18
+ "<jupyter_script>",
19
+ "<empty_output>"
20
+ ],
21
+ "bos_token": {
22
+ "content": "<|endoftext|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "eos_token": {
29
+ "content": "<|endoftext|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ },
35
+ "unk_token": {
36
+ "content": "<|endoftext|>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false
41
+ }
42
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<repo_name>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "4": {
37
+ "content": "<reponame>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "5": {
45
+ "content": "<file_sep>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "6": {
53
+ "content": "<filename>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "7": {
61
+ "content": "<gh_stars>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "8": {
69
+ "content": "<issue_start>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "9": {
77
+ "content": "<issue_comment>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "10": {
85
+ "content": "<issue_closed>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "11": {
93
+ "content": "<jupyter_start>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "12": {
101
+ "content": "<jupyter_text>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "13": {
109
+ "content": "<jupyter_code>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "14": {
117
+ "content": "<jupyter_output>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": true
123
+ },
124
+ "15": {
125
+ "content": "<jupyter_script>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": true
131
+ },
132
+ "16": {
133
+ "content": "<empty_output>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": true
139
+ }
140
+ },
141
+ "additional_special_tokens": [
142
+ "<|endoftext|>",
143
+ "<|im_start|>",
144
+ "<|im_end|>",
145
+ "<repo_name>",
146
+ "<reponame>",
147
+ "<file_sep>",
148
+ "<filename>",
149
+ "<gh_stars>",
150
+ "<issue_start>",
151
+ "<issue_comment>",
152
+ "<issue_closed>",
153
+ "<jupyter_start>",
154
+ "<jupyter_text>",
155
+ "<jupyter_code>",
156
+ "<jupyter_output>",
157
+ "<jupyter_script>",
158
+ "<empty_output>"
159
+ ],
160
+ "bos_token": "<|endoftext|>",
161
+ "clean_up_tokenization_spaces": false,
162
+ "eos_token": "<|endoftext|>",
163
+ "extra_special_tokens": {},
164
+ "model_max_length": 8192,
165
+ "tokenizer_class": "GPT2Tokenizer",
166
+ "unk_token": "<|endoftext|>",
167
+ "vocab_size": 49152
168
+ }
trainer_state.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "batcher": {
3
+ "cursor": 976512,
4
+ "epoch": 0
5
+ },
6
+ "billable_seconds": 32693.896218564998,
7
+ "step": 7629,
8
+ "tokens_seen": 999948288
9
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff