AjayRangoji commited on
Commit
df1a3ac
·
verified ·
1 Parent(s): 98a2be4

Upload configs

Browse files
configs/base_100pct.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ run_name: base_100pct
2
+ model:
3
+ name: buddhist-nlp/byt5-sanskrit # pretrained-only, D01
4
+ max_length: 512
5
+ train:
6
+ lr: 1.0e-4
7
+ per_device_batch: 8
8
+ grad_accum: 4
9
+ warmup: 300
10
+ scheduler: linear
11
+ weight_decay: 0.01
12
+ eval_steps: 500
13
+ # Step rule (recorded, D26): 3 epochs, floored at 1500 and capped at 20000
14
+ # steps, so small subsets still get a usable budget and the 100% run stays
15
+ # affordable. Only this rule differs across gold sizes; every other
16
+ # hyperparameter is identical.
17
+ step_rule: {epochs: 3, min_steps: 1500, max_steps: 20000}
18
+ paths:
19
+ train: data/processed/seg_train_all.jsonl
20
+ train_ids: data/splits/gold_100pct.ids
21
+ dev: data/processed/overlap_dev.jsonl
22
+ outputs: outputs
configs/base_10pct.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ run_name: base_10pct
2
+ model:
3
+ name: buddhist-nlp/byt5-sanskrit # pretrained-only, D01
4
+ max_length: 512
5
+ train:
6
+ lr: 1.0e-4
7
+ per_device_batch: 8
8
+ grad_accum: 4
9
+ warmup: 300
10
+ scheduler: linear
11
+ weight_decay: 0.01
12
+ eval_steps: 500
13
+ # Step rule (recorded, D26): 3 epochs, floored at 1500 and capped at 20000
14
+ # steps, so small subsets still get a usable budget and the 100% run stays
15
+ # affordable. Only this rule differs across gold sizes; every other
16
+ # hyperparameter is identical.
17
+ step_rule: {epochs: 3, min_steps: 1500, max_steps: 20000}
18
+ paths:
19
+ train: data/processed/seg_train_all.jsonl
20
+ train_ids: data/splits/gold_10pct.ids
21
+ dev: data/processed/overlap_dev.jsonl
22
+ outputs: outputs
configs/base_1pct.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ run_name: base_1pct
2
+ model:
3
+ name: buddhist-nlp/byt5-sanskrit # pretrained-only, D01
4
+ max_length: 512
5
+ train:
6
+ lr: 1.0e-4
7
+ per_device_batch: 8
8
+ grad_accum: 4
9
+ warmup: 300
10
+ scheduler: linear
11
+ weight_decay: 0.01
12
+ eval_steps: 500
13
+ # Step rule (recorded, D26): 3 epochs, floored at 1500 and capped at 20000
14
+ # steps, so small subsets still get a usable budget and the 100% run stays
15
+ # affordable. Only this rule differs across gold sizes; every other
16
+ # hyperparameter is identical.
17
+ step_rule: {epochs: 3, min_steps: 1500, max_steps: 20000}
18
+ paths:
19
+ train: data/processed/seg_train_all.jsonl
20
+ train_ids: data/splits/gold_1pct.ids
21
+ dev: data/processed/overlap_dev.jsonl
22
+ outputs: outputs
configs/data.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Phase 1 data build. See DECISIONS.md D03, D15, D16.
2
+ paths:
3
+ dcs_conllu: data/raw/dcs/conllu
4
+ itihasa_raw: data/raw/itihasa
5
+ out_dcs_epics: data/processed/dcs_epics.jsonl
6
+ out_dcs_all: data/processed/dcs_all.jsonl
7
+ out_itihasa: data/processed/itihasa.jsonl
configs/gold_subsets.yaml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # Gold-size subsets, sampled by text with seed. See LOG.md.
2
+ paths:
3
+ seg_train_all: data/processed/seg_train_all.jsonl
4
+ out_dir: data/splits
configs/overlap.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # DCS n Itihasa overlap set. See DECISIONS.md D04, D16.
2
+ threshold: 0.95
3
+ bucket_prefix: 10
4
+ paths:
5
+ dcs_epics: data/processed/dcs_epics.jsonl
6
+ itihasa: data/processed/itihasa.jsonl
7
+ out_overlap: data/processed/overlap.jsonl
configs/pools.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Leakage-free pools. See DECISIONS.md D05.
2
+ threshold: 0.95
3
+ paths:
4
+ dcs_all: data/processed/dcs_all.jsonl
5
+ itihasa: data/processed/itihasa.jsonl
6
+ overlap: data/processed/overlap.jsonl
7
+ splits_dir: data/splits
8
+ out_dcs_pool: data/processed/dcs_train_pool.jsonl
9
+ out_iti_pool: data/processed/itihasa_pool.jsonl
configs/seg_data.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Splitter training data, both granularities. See DECISIONS.md D21-D24.
2
+ threshold: 0.95
3
+ paths:
4
+ dcs_conllu: data/raw/dcs/conllu
5
+ dcs_pool: data/processed/dcs_train_pool.jsonl
6
+ overlap: data/processed/overlap.jsonl
7
+ splits_dir: data/splits
8
+ out_half: data/processed/seg_train_half.jsonl
9
+ out_full: data/processed/seg_train_full.jsonl
10
+ out_all: data/processed/seg_train_all.jsonl
configs/smoke.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ run_name: smoke
2
+ model:
3
+ name: buddhist-nlp/byt5-sanskrit # pretrained-only, D01
4
+ max_length: 512
5
+ train:
6
+ lr: 1.0e-4
7
+ per_device_batch: 8
8
+ grad_accum: 4
9
+ warmup: 300
10
+ scheduler: linear
11
+ weight_decay: 0.01
12
+ eval_steps: 10
13
+ # Step rule (recorded, D26): 3 epochs, floored at 1500 and capped at 20000
14
+ # steps, so small subsets still get a usable budget and the 100% run stays
15
+ # affordable. Only this rule differs across gold sizes; every other
16
+ # hyperparameter is identical.
17
+ step_rule: {epochs: 3, min_steps: 20, max_steps: 20}
18
+ paths:
19
+ train: data/processed/seg_train_all.jsonl
20
+ train_ids: data/splits/gold_1pct.ids
21
+ dev: data/processed/overlap_dev.jsonl
22
+ outputs: outputs
configs/splits.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Frozen overlap dev/test splits. See DECISIONS.md D04, D17.
2
+ dev_size: 500
3
+ test_size: 2000
4
+ paths:
5
+ overlap: data/processed/overlap.jsonl
6
+ splits_dir: data/splits
configs/topk_debug.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Smoke test of candidate generation with the ByT5-small debug model.
2
+ model: outputs/debug_small_seed13/final
3
+ k: 5
4
+ max_length: 512
5
+ batch_size: 8
6
+ limit: 20
7
+ paths:
8
+ input: data/processed/overlap_dev.jsonl
9
+ output: outputs/debug_small_seed13/candidates_dev20.jsonl
configs/train_base_100pct.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ByT5-base baseline on 100% gold. DECISIONS.md D01, D02, D21.
2
+ run_name: base_100pct
3
+ leakage_audit_config: configs/pools.yaml
4
+ model:
5
+ name: buddhist-nlp/byt5-sanskrit
6
+ max_length: 512
7
+ train:
8
+ batch_size: 8
9
+ eval_batch_size: 8
10
+ grad_accum: 2
11
+ lr: 1.0e-4
12
+ warmup_ratio: 0.02
13
+ max_steps: 60000 # ~1.1M pairs x <1 epoch; the authors used ~1 epoch
14
+ logging_steps: 500
15
+ workers: 4
16
+ paths:
17
+ train: data/processed/gold/gold_100pct.jsonl
18
+ eval: data/processed/overlap_dev.jsonl
19
+ outputs: outputs
configs/train_base_10pct.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ByT5-base baseline on 10% gold. DECISIONS.md D01, D02, D21.
2
+ run_name: base_10pct
3
+ leakage_audit_config: configs/pools.yaml
4
+ model:
5
+ name: buddhist-nlp/byt5-sanskrit
6
+ max_length: 512
7
+ train:
8
+ batch_size: 8
9
+ eval_batch_size: 8
10
+ grad_accum: 2
11
+ lr: 1.0e-4
12
+ warmup_ratio: 0.03
13
+ max_steps: 20000 # ~114k pairs x ~3 epochs
14
+ logging_steps: 200
15
+ workers: 4
16
+ paths:
17
+ train: data/processed/gold/gold_10pct.jsonl
18
+ eval: data/processed/overlap_dev.jsonl
19
+ outputs: outputs
configs/train_base_1pct.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ByT5-base baseline on 1% gold. DECISIONS.md D01, D02, D21.
2
+ run_name: base_1pct
3
+ leakage_audit_config: configs/pools.yaml
4
+ model:
5
+ name: buddhist-nlp/byt5-sanskrit
6
+ max_length: 512
7
+ train:
8
+ batch_size: 8
9
+ eval_batch_size: 8
10
+ grad_accum: 2 # effective batch 16
11
+ lr: 1.0e-4
12
+ warmup_ratio: 0.05
13
+ max_steps: 4000 # ~11k pairs x 6 epochs with eff batch 16
14
+ logging_steps: 100
15
+ workers: 4
16
+ paths:
17
+ train: data/processed/gold/gold_1pct.jsonl
18
+ eval: data/processed/overlap_dev.jsonl
19
+ outputs: outputs
configs/train_debug_small.yaml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ByT5-SMALL debug run only. NEVER a reported number (DECISIONS.md D02).
2
+ run_name: debug_small
3
+ leakage_audit_config: configs/pools.yaml
4
+ model:
5
+ name: google/byt5-small
6
+ max_length: 512
7
+ train:
8
+ batch_size: 8
9
+ eval_batch_size: 8
10
+ grad_accum: 1
11
+ lr: 3.0e-4
12
+ warmup_ratio: 0.05
13
+ max_steps: 200
14
+ logging_steps: 25
15
+ workers: 4
16
+ limit_train: 4000
17
+ limit_eval: 100
18
+ paths:
19
+ train: data/processed/gold/gold_1pct.jsonl
20
+ eval: data/processed/overlap_dev.jsonl
21
+ outputs: outputs