main <- step 5000
Browse files- README.md +19 -0
- config.json +84 -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 |
+
# baseline_en
|
| 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 (5000),
|
| 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 `baseline_en/`.
|
config.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"run": "baseline_en",
|
| 3 |
+
"step": 5000,
|
| 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 |
+
"rope_base": 10000.0
|
| 19 |
+
},
|
| 20 |
+
"tied_weights": {
|
| 21 |
+
"head.weight": "emb.weight"
|
| 22 |
+
},
|
| 23 |
+
"train_config": {
|
| 24 |
+
"condition": "A",
|
| 25 |
+
"seed": 0,
|
| 26 |
+
"out_dir": null,
|
| 27 |
+
"run_name": "baseline_en",
|
| 28 |
+
"corpus": "standin",
|
| 29 |
+
"langs": [
|
| 30 |
+
"en"
|
| 31 |
+
],
|
| 32 |
+
"seq_len": 1024,
|
| 33 |
+
"batch_size": 32,
|
| 34 |
+
"grad_accum": 1,
|
| 35 |
+
"steps": 5000,
|
| 36 |
+
"lr": 0.0003,
|
| 37 |
+
"min_lr_frac": 0.1,
|
| 38 |
+
"warmup": 200,
|
| 39 |
+
"weight_decay": 0.1,
|
| 40 |
+
"grad_clip": 1.0,
|
| 41 |
+
"betas": [
|
| 42 |
+
0.9,
|
| 43 |
+
0.95
|
| 44 |
+
],
|
| 45 |
+
"router_lr_mult": 1.0,
|
| 46 |
+
"d_enc": 256,
|
| 47 |
+
"d_main": 512,
|
| 48 |
+
"n_enc": 2,
|
| 49 |
+
"n_dec": 2,
|
| 50 |
+
"n_main": 6,
|
| 51 |
+
"n_heads_enc": 4,
|
| 52 |
+
"n_heads_main": 8,
|
| 53 |
+
"dechunk": "ema",
|
| 54 |
+
"target_ratio": 6.0,
|
| 55 |
+
"alpha": 0.03,
|
| 56 |
+
"alpha_parity_cap": 0.06,
|
| 57 |
+
"global_anchor": 0.0,
|
| 58 |
+
"premium_clip": 4.0,
|
| 59 |
+
"premium_kind": "per_char",
|
| 60 |
+
"tau1": 0.4,
|
| 61 |
+
"tau2": 0.7,
|
| 62 |
+
"freeze_scope": "router",
|
| 63 |
+
"ckpt_every": 500,
|
| 64 |
+
"eval_every": 250,
|
| 65 |
+
"log_every": 50,
|
| 66 |
+
"probe_sents": 96,
|
| 67 |
+
"eval_batches": 8,
|
| 68 |
+
"keep_ckpt": false,
|
| 69 |
+
"amp": "bf16",
|
| 70 |
+
"compile": false,
|
| 71 |
+
"cpc_decay": 0.9,
|
| 72 |
+
"device": "cuda"
|
| 73 |
+
},
|
| 74 |
+
"probe_agg": {
|
| 75 |
+
"gini_cpc": 0.0,
|
| 76 |
+
"gini_cps": 0.0,
|
| 77 |
+
"bpic": 5.065967016491754,
|
| 78 |
+
"worst_lang": "en",
|
| 79 |
+
"cpc_parity_vs_en": {
|
| 80 |
+
"en": 1.0
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"source": "AdaptiveChunking/hnet-chunking-pilots/baseline_en/model.safetensors"
|
| 84 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76c323e35fc88804fc5994b1284dbb8eaa3cac3dc18e19f1beef8c1d02169405
|
| 3 |
+
size 90078296
|