main <- step 11000
Browse files- README.md +19 -0
- config.json +177 -0
- 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_D_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_D_s2/`.
|
config.json
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": 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": "D",
|
| 25 |
+
"seed": 2,
|
| 26 |
+
"out_dir": null,
|
| 27 |
+
"run_name": "spec_D_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 |
+
"dense_early_every": 0,
|
| 75 |
+
"dense_early_until": 0,
|
| 76 |
+
"probe_bpb_batches": 4,
|
| 77 |
+
"dump_reps": true,
|
| 78 |
+
"dump_reps_thresholds": [
|
| 79 |
+
0.3,
|
| 80 |
+
0.4,
|
| 81 |
+
0.5,
|
| 82 |
+
0.6,
|
| 83 |
+
0.7
|
| 84 |
+
],
|
| 85 |
+
"router_noise": 0.0,
|
| 86 |
+
"genreg_target_entropy": null,
|
| 87 |
+
"genreg_eta": 0.05
|
| 88 |
+
},
|
| 89 |
+
"checkpoints": [
|
| 90 |
+
{
|
| 91 |
+
"tag": "000000",
|
| 92 |
+
"step": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"tag": "000001",
|
| 96 |
+
"step": 1
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"tag": "000002",
|
| 100 |
+
"step": 2
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"tag": "000004",
|
| 104 |
+
"step": 4
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"tag": "000008",
|
| 108 |
+
"step": 8
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"tag": "000016",
|
| 112 |
+
"step": 16
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"tag": "000032",
|
| 116 |
+
"step": 32
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"tag": "000064",
|
| 120 |
+
"step": 64
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"tag": "000128",
|
| 124 |
+
"step": 128
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"tag": "000256",
|
| 128 |
+
"step": 256
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"tag": "001000",
|
| 132 |
+
"step": 1000
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"tag": "002000",
|
| 136 |
+
"step": 2000
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"tag": "003000",
|
| 140 |
+
"step": 3000
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"tag": "004000",
|
| 144 |
+
"step": 4000
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"tag": "005000",
|
| 148 |
+
"step": 5000
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"tag": "006000",
|
| 152 |
+
"step": 6000
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"tag": "007000",
|
| 156 |
+
"step": 7000
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"tag": "008000",
|
| 160 |
+
"step": 8000
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"tag": "009000",
|
| 164 |
+
"step": 9000
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"tag": "010000",
|
| 168 |
+
"step": 10000
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"tag": "011000",
|
| 172 |
+
"step": 11000
|
| 173 |
+
}
|
| 174 |
+
],
|
| 175 |
+
"step": 11000,
|
| 176 |
+
"source": "AdaptiveChunking/hnet-chunking-spec-82m/spec_D_s2/011000.safetensors"
|
| 177 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bfe75c2dc4ffb63e3424f7ff845941860cbfae6d35cc75244644bc387049bc56
|
| 3 |
+
size 329898344
|