suchirsalhan commited on
Commit
111f4cd
·
verified ·
1 Parent(s): d0096cf

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_Bpc_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_Bpc_s2/`.
config.json ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": "pilot_Bpc_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": "B",
26
+ "seed": 2,
27
+ "out_dir": null,
28
+ "run_name": "pilot_Bpc_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.05947751695357484,
90
+ "gini_cps": 0.10514840600952735,
91
+ "bpic": 9.37537559545621,
92
+ "worst_lang": "ru",
93
+ "cpc_parity_vs_en": {
94
+ "en": 1.0,
95
+ "de": 1.0199480456016647,
96
+ "vi": 1.0056935311382222,
97
+ "tr": 1.0146574383001157,
98
+ "fi": 0.9878722240593089,
99
+ "ru": 1.2588239101357477,
100
+ "el": 0.9734078650680693,
101
+ "hi": 1.1679111674836358,
102
+ "ta": 1.1526405179899044,
103
+ "th": 1.121282957018114,
104
+ "zh": 1.186838330558305,
105
+ "my": 0.8244921548326407
106
+ }
107
+ },
108
+ "source": "AdaptiveChunking/hnet-chunking-pilots/pilot_Bpc_s2/model.safetensors"
109
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c978459ca8b1a9202c1eec29836beee1e88df82044f3c18af639bfeab72b7e56
3
+ size 90078296