suchirsalhan commited on
Commit
09991ee
·
verified ·
1 Parent(s): 9d3c79e

main <- step 6000

Browse files
Files changed (3) hide show
  1. README.md +19 -0
  2. config.json +107 -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_A_s0
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_A_s0/`.
config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": "pilot_A_s0",
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": 0,
27
+ "out_dir": null,
28
+ "run_name": "pilot_A_s0",
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_sent",
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": true,
77
+ "dump_reps_thresholds": [
78
+ 0.4,
79
+ 0.5,
80
+ 0.6
81
+ ],
82
+ "router_noise": 0.0,
83
+ "genreg_target_entropy": null,
84
+ "genreg_eta": 0.05
85
+ },
86
+ "probe_agg": {
87
+ "gini_cpc": 0.2046874384551851,
88
+ "gini_cps": 0.2124337217717518,
89
+ "bpic": 5.668261775001108,
90
+ "worst_lang": "my",
91
+ "cpc_parity_vs_en": {
92
+ "en": 1.0,
93
+ "de": 0.9674031957033492,
94
+ "vi": 1.0641769666197316,
95
+ "tr": 0.9818145543054209,
96
+ "fi": 0.9579169801888867,
97
+ "ru": 1.5462771572877685,
98
+ "el": 1.507303331656917,
99
+ "hi": 2.114500469118362,
100
+ "ta": 2.0382228601055625,
101
+ "th": 2.417749025953193,
102
+ "zh": 2.32292387976097,
103
+ "my": 2.471763194501154
104
+ }
105
+ },
106
+ "source": "AdaptiveChunking/hnet-chunking-pilots/pilot_A_s0/model.safetensors"
107
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7cc09aad5130e4f1b5e62a9ffd33305232927fee93d6deba4ea5dad45ddfc55
3
+ size 90078296