suchirsalhan commited on
Commit
641b9cb
·
verified ·
1 Parent(s): 186722a

main <- step 6000

Browse files
Files changed (3) hide show
  1. README.md +19 -0
  2. config.json +109 -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
+ # pilot_Apc_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-pilots`](https://huggingface.co/AdaptiveChunking/hnet-chunking-pilots) into the Beetle per-run layout.
12
+
13
+ - **`step-N` branches**: 1 retained checkpoints (6000),
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 `pilot_Apc_s2/`.
config.json ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": "pilot_Apc_s2",
3
+ "step": 6000,
4
+ "model_config": {
5
+ "vocab_size": 256,
6
+ "d_enc": 256,
7
+ "d_main": 512,
8
+ "n_enc": 2,
9
+ "n_dec": 2,
10
+ "n_main": 6,
11
+ "n_heads_enc": 4,
12
+ "n_heads_main": 8,
13
+ "seq_len": 1024,
14
+ "dropout": 0.0,
15
+ "target_ratio": 6.0,
16
+ "max_chunk_mult": 3.0,
17
+ "dechunk": "ema",
18
+ "router_noise": 0.0,
19
+ "rope_base": 10000.0
20
+ },
21
+ "tied_weights": {
22
+ "head.weight": "emb.weight"
23
+ },
24
+ "train_config": {
25
+ "condition": "A",
26
+ "seed": 2,
27
+ "out_dir": null,
28
+ "run_name": "pilot_Apc_s2",
29
+ "corpus": "corpus",
30
+ "langs": null,
31
+ "seq_len": 1024,
32
+ "batch_size": 32,
33
+ "grad_accum": 1,
34
+ "steps": 6000,
35
+ "lr": 0.0003,
36
+ "min_lr_frac": 0.1,
37
+ "warmup": 300,
38
+ "weight_decay": 0.1,
39
+ "grad_clip": 1.0,
40
+ "betas": [
41
+ 0.9,
42
+ 0.95
43
+ ],
44
+ "router_lr_mult": 1.0,
45
+ "d_enc": 256,
46
+ "d_main": 512,
47
+ "n_enc": 2,
48
+ "n_dec": 2,
49
+ "n_main": 6,
50
+ "n_heads_enc": 4,
51
+ "n_heads_main": 8,
52
+ "dechunk": "ema",
53
+ "target_ratio": 6.0,
54
+ "alpha": 0.03,
55
+ "alpha_parity_cap": 0.06,
56
+ "global_anchor": 0.0,
57
+ "premium_clip": 4.0,
58
+ "premium_kind": "flores_per_char",
59
+ "mixture": null,
60
+ "doc_filters": null,
61
+ "tau1": 0.4,
62
+ "tau2": 0.7,
63
+ "freeze_scope": "router",
64
+ "ckpt_every": 200,
65
+ "eval_every": 200,
66
+ "log_every": 50,
67
+ "probe_sents": 128,
68
+ "eval_batches": 8,
69
+ "keep_ckpt": false,
70
+ "amp": "bf16",
71
+ "compile": false,
72
+ "cpc_decay": 0.9,
73
+ "device": "cuda",
74
+ "log_spaced_probe": true,
75
+ "probe_bpb_batches": 4,
76
+ "dump_reps": false,
77
+ "dump_reps_thresholds": [
78
+ 0.3,
79
+ 0.4,
80
+ 0.5,
81
+ 0.6,
82
+ 0.7
83
+ ],
84
+ "router_noise": 0.0,
85
+ "genreg_target_entropy": null,
86
+ "genreg_eta": 0.05
87
+ },
88
+ "probe_agg": {
89
+ "gini_cpc": 0.20184692854175834,
90
+ "gini_cps": 0.20989535151221483,
91
+ "bpic": 5.635467907960235,
92
+ "worst_lang": "zh",
93
+ "cpc_parity_vs_en": {
94
+ "en": 1.0,
95
+ "de": 1.0244450608670244,
96
+ "vi": 1.302571044478923,
97
+ "tr": 1.1503147963190619,
98
+ "fi": 1.0509935874047531,
99
+ "ru": 1.84671045084318,
100
+ "el": 1.8141934227406733,
101
+ "hi": 2.4724906740007198,
102
+ "ta": 2.42667571460134,
103
+ "th": 2.5704467917912797,
104
+ "zh": 2.684942042306697,
105
+ "my": 2.565986216608515
106
+ }
107
+ },
108
+ "source": "AdaptiveChunking/hnet-chunking-pilots/pilot_Apc_s2/model.safetensors"
109
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d0880cfefa58f3c88207df034c0de970b21be2ce7f7ce693a998f2b064ff8b5
3
+ size 90078296