main <- step 6000
Browse files- README.md +19 -0
- config.json +109 -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 |
+
# pilot_D_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_D_s0/`.
|
config.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run": "pilot_D_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": "D",
|
| 26 |
+
"seed": 0,
|
| 27 |
+
"out_dir": null,
|
| 28 |
+
"run_name": "pilot_D_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.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.2082899216246239,
|
| 90 |
+
"gini_cps": 0.07551111358698681,
|
| 91 |
+
"bpic": 10.689683026015263,
|
| 92 |
+
"worst_lang": "zh",
|
| 93 |
+
"cpc_parity_vs_en": {
|
| 94 |
+
"en": 1.0,
|
| 95 |
+
"de": 0.8811880422902347,
|
| 96 |
+
"vi": 0.8550701968093136,
|
| 97 |
+
"tr": 0.9052453060798022,
|
| 98 |
+
"fi": 0.8773813386702968,
|
| 99 |
+
"ru": 0.8396012659981589,
|
| 100 |
+
"el": 0.7153865165706734,
|
| 101 |
+
"hi": 0.8831835196901316,
|
| 102 |
+
"ta": 0.6167014530058299,
|
| 103 |
+
"th": 0.8654255089556684,
|
| 104 |
+
"zh": 2.785062043583627,
|
| 105 |
+
"my": 0.5680097516780557
|
| 106 |
+
}
|
| 107 |
+
},
|
| 108 |
+
"source": "AdaptiveChunking/hnet-chunking-pilots/pilot_D_s0/model.safetensors"
|
| 109 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7a846a04ad851b19efc1eb026cbb344e6b3419049d0d8cb0364b613c5dbe9f6
|
| 3 |
+
size 90078296
|