suchirsalhan commited on
Commit
3d30e8e
·
verified ·
1 Parent(s): bfce59c

main <- step 11000

Browse files
Files changed (3) hide show
  1. README.md +19 -0
  2. config.json +175 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: pytorch
4
+ tags: [dynamic-chunking, tokenization, hnet, byte-level, beetle-hnet, legacy-trainer]
5
+ ---
6
+
7
+ # spec_B_s2
8
+
9
+ Byte-level H-Net run from [beetle-hnet](https://github.com/suchirsalhan/beetle-hnet), trained
10
+ with the legacy trainer (`legacy/tier1/train.py`). Split out of the bundled repo
11
+ [`AdaptiveChunking/hnet-chunking-spec-82m`](https://huggingface.co/AdaptiveChunking/hnet-chunking-spec-82m) into the Beetle per-run layout.
12
+
13
+ - **`step-N` branches**: 21 retained checkpoints (0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 1000, 2000 ...),
14
+ each with `model.safetensors` and `config.json` (`model_config`, training config and the
15
+ `tied_weights` map: restore with `sd[dst] = sd[src]` for every entry).
16
+ - **`main`**: the latest weights plus `final.json` and `log.jsonl`.
17
+ - The legacy trainer kept no optimiser state, so there is no `training_state/` here. FLORES+
18
+ boundary probes for this run are in the dataset
19
+ [`AdaptiveChunking/hnet-chunking-probes`](https://huggingface.co/datasets/AdaptiveChunking/hnet-chunking-probes) under `spec_B_s2/`.
config.json ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": "spec_B_s2",
3
+ "model_config": {
4
+ "vocab_size": 256,
5
+ "d_enc": 384,
6
+ "d_main": 768,
7
+ "n_enc": 3,
8
+ "n_dec": 3,
9
+ "n_main": 10,
10
+ "n_heads_enc": 6,
11
+ "n_heads_main": 12,
12
+ "seq_len": 1024,
13
+ "dropout": 0.0,
14
+ "target_ratio": 6.0,
15
+ "max_chunk_mult": 3.0,
16
+ "dechunk": "ema",
17
+ "router_noise": 0.0,
18
+ "rope_base": 10000.0
19
+ },
20
+ "tied_weights": {
21
+ "head.weight": "emb.weight"
22
+ },
23
+ "train_config": {
24
+ "condition": "B",
25
+ "seed": 2,
26
+ "out_dir": null,
27
+ "run_name": "spec_B_s2",
28
+ "corpus": "corpus",
29
+ "langs": null,
30
+ "seq_len": 1024,
31
+ "batch_size": 64,
32
+ "grad_accum": 1,
33
+ "steps": 11000,
34
+ "lr": 0.0003,
35
+ "min_lr_frac": 0.1,
36
+ "warmup": 500,
37
+ "weight_decay": 0.1,
38
+ "grad_clip": 1.0,
39
+ "betas": [
40
+ 0.9,
41
+ 0.95
42
+ ],
43
+ "router_lr_mult": 1.0,
44
+ "d_enc": 384,
45
+ "d_main": 768,
46
+ "n_enc": 3,
47
+ "n_dec": 3,
48
+ "n_main": 10,
49
+ "n_heads_enc": 6,
50
+ "n_heads_main": 12,
51
+ "dechunk": "ema",
52
+ "target_ratio": 6.0,
53
+ "alpha": 0.03,
54
+ "alpha_parity_cap": 0.06,
55
+ "global_anchor": 0.0,
56
+ "premium_clip": 4.0,
57
+ "premium_kind": "flores_per_sent",
58
+ "mixture": null,
59
+ "doc_filters": null,
60
+ "tau1": 0.4,
61
+ "tau2": 0.7,
62
+ "freeze_scope": "router",
63
+ "ckpt_every": 1000,
64
+ "eval_every": 1000,
65
+ "log_every": 100,
66
+ "probe_sents": 128,
67
+ "eval_batches": 8,
68
+ "keep_ckpt": true,
69
+ "amp": "bf16",
70
+ "compile": false,
71
+ "cpc_decay": 0.9,
72
+ "device": "cuda",
73
+ "log_spaced_probe": true,
74
+ "probe_bpb_batches": 4,
75
+ "dump_reps": true,
76
+ "dump_reps_thresholds": [
77
+ 0.3,
78
+ 0.4,
79
+ 0.5,
80
+ 0.6,
81
+ 0.7
82
+ ],
83
+ "router_noise": 0.0,
84
+ "genreg_target_entropy": null,
85
+ "genreg_eta": 0.05
86
+ },
87
+ "checkpoints": [
88
+ {
89
+ "tag": "000000",
90
+ "step": 0
91
+ },
92
+ {
93
+ "tag": "000001",
94
+ "step": 1
95
+ },
96
+ {
97
+ "tag": "000002",
98
+ "step": 2
99
+ },
100
+ {
101
+ "tag": "000004",
102
+ "step": 4
103
+ },
104
+ {
105
+ "tag": "000008",
106
+ "step": 8
107
+ },
108
+ {
109
+ "tag": "000016",
110
+ "step": 16
111
+ },
112
+ {
113
+ "tag": "000032",
114
+ "step": 32
115
+ },
116
+ {
117
+ "tag": "000064",
118
+ "step": 64
119
+ },
120
+ {
121
+ "tag": "000128",
122
+ "step": 128
123
+ },
124
+ {
125
+ "tag": "000256",
126
+ "step": 256
127
+ },
128
+ {
129
+ "tag": "001000",
130
+ "step": 1000
131
+ },
132
+ {
133
+ "tag": "002000",
134
+ "step": 2000
135
+ },
136
+ {
137
+ "tag": "003000",
138
+ "step": 3000
139
+ },
140
+ {
141
+ "tag": "004000",
142
+ "step": 4000
143
+ },
144
+ {
145
+ "tag": "005000",
146
+ "step": 5000
147
+ },
148
+ {
149
+ "tag": "006000",
150
+ "step": 6000
151
+ },
152
+ {
153
+ "tag": "007000",
154
+ "step": 7000
155
+ },
156
+ {
157
+ "tag": "008000",
158
+ "step": 8000
159
+ },
160
+ {
161
+ "tag": "009000",
162
+ "step": 9000
163
+ },
164
+ {
165
+ "tag": "010000",
166
+ "step": 10000
167
+ },
168
+ {
169
+ "tag": "011000",
170
+ "step": 11000
171
+ }
172
+ ],
173
+ "step": 11000,
174
+ "source": "AdaptiveChunking/hnet-chunking-spec-82m/spec_B_s2/011000.safetensors"
175
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:882f845cf48fc3be315c326e13258a8c8eb1b46c357ff2279184e6b3f0900c99
3
+ size 329898344