v1: add the stage-4 files
Browse files- README.md +16 -8
- abbreviated/train_gemrom3_abbr3.parquet +3 -0
- llm_romanized/train_gemrom3.parquet +3 -0
- recipes.json +175 -11
README.md
CHANGED
|
@@ -34,13 +34,16 @@ configs:
|
|
| 34 |
- config_name: llm_romanized
|
| 35 |
data_files:
|
| 36 |
- split: train
|
| 37 |
-
path:
|
|
|
|
|
|
|
| 38 |
- config_name: abbreviated
|
| 39 |
data_files:
|
| 40 |
- split: train
|
| 41 |
path:
|
| 42 |
- abbreviated/ft_v2_abbr3.parquet
|
| 43 |
- abbreviated/train_gemrom2_abbr3.parquet
|
|
|
|
| 44 |
- config_name: mined_tables_chh
|
| 45 |
data_files:
|
| 46 |
- split: train
|
|
@@ -61,11 +64,14 @@ configs:
|
|
| 61 |
|
| 62 |
# Samdei Type Fine-tuning Data
|
| 63 |
|
| 64 |
-
These are the exact **fine-tuning (stage 2)**
|
| 65 |
|
| 66 |
-
Pretraining (stage 1, [`samdei/samdei-type-pretraining-data`](https://huggingface.co/datasets/samdei/samdei-type-pretraining-data)) teaches Khmer words and spelling from 6.5–
|
| 67 |
- **Stage 2:** looser LLM spellings, spelling habits mined from public word lists, and chat-like abbreviations.
|
| 68 |
- **Stage 3:** the spoken register and stretched letters.
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
Each stage is 3–6k steps (10–36 minutes on a laptop).
|
| 71 |
|
|
@@ -80,8 +86,8 @@ The data is organized by kind, so each source of spelling noise can be used, ins
|
|
| 80 |
| Config | Files (rows) | What it is | Stage | Used by |
|
| 81 |
|---|---|---|---|---|
|
| 82 |
| `chat_mix` (default) | `ft_v2` (629,878) | a chat-heavy sample of generator pairs: more LLM-written chat sentences and ALT, fewer web pieces; English chat words and place names inserted | 2, 3 | Mini, Base |
|
| 83 |
-
| `llm_romanized` | `train_gemrom2` (18,273) | Gemma 4 romanizations of 6,382 real sentences, 4 style prompts, ×3 copies with random casing | 2, 3 (×4
|
| 84 |
-
| `abbreviated` | `ft_v2_abbr3` (139,704), `train_gemrom2_abbr3` (16,302) | chat-like abbreviated copies of `chat_mix` and `llm_romanized` pairs; only the input changes (`tov` → `tv`, `bong` → `bg`) | 2, 3 (Gemma
|
| 85 |
| `mined_tables_chh` | `ft_rules_chh` (289,820) | new pairs spelled with the table mined from the Chhunneng word list (dictionary-like scheme), alone or with mixed / lazy noise habits | 2, 3 | **Mini** |
|
| 86 |
| `mined_tables_chh_wd` | `ft_rules_chhwd` (289,647) | made the same way from the same sources, but spelled 70% with the Chhunneng table and 30% with the table mined from Wikidata names (official, name-style scheme) | 2, 3 | **Base** |
|
| 87 |
| `casual` | `ft_casual_noakk` (426,946) | 21.6k spoken-register web sentences, spelled by the generator with stretched letters (`tovvv`, `baaan`) | **3 only** | Mini, Base |
|
|
@@ -94,13 +100,15 @@ Mini and Base use the same data. The only difference is the mined-table file: Mi
|
|
| 94 |
| Stage 2, Base | `ft_v2` + `ft_v2_abbr3` + `train_gemrom2` ×4 + `train_gemrom2_abbr3` ×2 + `ft_rules_chhwd` | 1,164,925 |
|
| 95 |
| Stage 2, Mini | the same with `ft_rules_chh` | 1,165,098 |
|
| 96 |
| Stage 3 | the stage-2 mix of the model + `ft_casual_noakk` | 1,591,871 (Base), 1,592,044 (Mini) |
|
|
|
|
|
|
|
| 97 |
|
| 98 |
`recipes.json` gives the exact mix of each checkpoint (files in order, repeats, steps, learning rate, initialization), read from the training arguments stored in the checkpoints.
|
| 99 |
|
| 100 |
```
|
| 101 |
generator/ ft_v2.parquet
|
| 102 |
-
llm_romanized/ train_gemrom2.parquet
|
| 103 |
-
abbreviated/ ft_v2_abbr3.parquet train_gemrom2_abbr3.parquet
|
| 104 |
mined_tables/ ft_rules_chh.parquet ft_rules_chhwd.parquet
|
| 105 |
casual/ ft_casual_noakk.parquet
|
| 106 |
validation/ train_v2_s3.dev.parquet
|
|
@@ -143,7 +151,7 @@ To rebuild a mix exactly, read `recipes.json` and concatenate its files in order
|
|
| 143 |
2. it pronounces each word with Google's Khmer pronunciation lexicon;
|
| 144 |
3. it spells the piece in a persona (formal 8%, careful 32%, mixed 40%, lazy 20%);
|
| 145 |
4. it adds noise (glued or split words, dropped vowels, swaps, typos), English chat words and place names.
|
| 146 |
-
- **`llm_romanized`.** Gemma 4 12B, run locally, romanized real sentences "the way Cambodians type on Messenger", 10 sentences per call. The Khmer side stays the original sentence, so the target is always correct, and Gemma's looser spelling acts as human-like noise on the input. 97% of the outputs passed our filters.
|
| 147 |
- **`mined_tables_*`.** A rule miner learns per-slot spelling tables (onset, vowel, coda, glide, context) by Viterbi alignment and hard EM from public (Khmer word, romanization) lists: the Chhunneng word list (24.9k pairs, MIT) and 1.6k Wikidata person and place names (CC0). Words that are targets of a word-level evaluation set are removed first. The tables are in [`samdei/samdei-type-resources`](https://huggingface.co/datasets/samdei/samdei-type-resources). The pairs here are new sentences (HPLT, FineWeb-2, ALT, chat sentences) spelled with them.
|
| 148 |
- **`abbreviated`.**
|
| 149 |
- It covers 40% of `chat_mix` pairs and all `llm_romanized` pairs.
|
|
|
|
| 34 |
- config_name: llm_romanized
|
| 35 |
data_files:
|
| 36 |
- split: train
|
| 37 |
+
path:
|
| 38 |
+
- llm_romanized/train_gemrom2.parquet
|
| 39 |
+
- llm_romanized/train_gemrom3.parquet
|
| 40 |
- config_name: abbreviated
|
| 41 |
data_files:
|
| 42 |
- split: train
|
| 43 |
path:
|
| 44 |
- abbreviated/ft_v2_abbr3.parquet
|
| 45 |
- abbreviated/train_gemrom2_abbr3.parquet
|
| 46 |
+
- abbreviated/train_gemrom3_abbr3.parquet
|
| 47 |
- config_name: mined_tables_chh
|
| 48 |
data_files:
|
| 49 |
- split: train
|
|
|
|
| 64 |
|
| 65 |
# Samdei Type Fine-tuning Data
|
| 66 |
|
| 67 |
+
These are the exact **fine-tuning (stage 2)**, **adaptation (stage 3)** and **stage-4** pairs of the Samdei Type romanized-Khmer → Khmer-script converters, [Samdei Type Mini](https://huggingface.co/samdei/samdei-type-mini) and [Samdei Type Base](https://huggingface.co/samdei/samdei-type-base).
|
| 68 |
|
| 69 |
+
Pretraining (stage 1, [`samdei/samdei-type-pretraining-data`](https://huggingface.co/datasets/samdei/samdei-type-pretraining-data)) teaches Khmer words and spelling from 6.5–13.0M generator pairs. These short stages teach **how people actually type in chat**:
|
| 70 |
- **Stage 2:** looser LLM spellings, spelling habits mined from public word lists, and chat-like abbreviations.
|
| 71 |
- **Stage 3:** the spoken register and stretched letters.
|
| 72 |
+
- **Stage 4 (v1):** the stage-3 mix plus more LLM romanizations; most files are also used the other way round (see `recipes.json`).
|
| 73 |
+
|
| 74 |
+
**v1 (2026-11-24)** adds `llm_romanized/train_gemrom3` and `abbreviated/train_gemrom3_abbr3`. The rest is unchanged; the dataset of the first release is at revision [`v0.1`](https://huggingface.co/datasets/samdei/samdei-type-finetuning-data/tree/v0.1).
|
| 75 |
|
| 76 |
Each stage is 3–6k steps (10–36 minutes on a laptop).
|
| 77 |
|
|
|
|
| 86 |
| Config | Files (rows) | What it is | Stage | Used by |
|
| 87 |
|---|---|---|---|---|
|
| 88 |
| `chat_mix` (default) | `ft_v2` (629,878) | a chat-heavy sample of generator pairs: more LLM-written chat sentences and ALT, fewer web pieces; English chat words and place names inserted | 2, 3 | Mini, Base |
|
| 89 |
+
| `llm_romanized` | `train_gemrom2` (18,273), `train_gemrom3` (13,245) | Gemma 4 romanizations of 6,382 real sentences, and in v1 of 4,640 more; 4 style prompts, ×3 copies with random casing | 2, 3 (`train_gemrom2` ×4); 4 (both ×4) | Mini, Base |
|
| 90 |
+
| `abbreviated` | `ft_v2_abbr3` (139,704), `train_gemrom2_abbr3` (16,302), `train_gemrom3_abbr3` (12,057) | chat-like abbreviated copies of `chat_mix` and `llm_romanized` pairs; only the input changes (`tov` → `tv`, `bong` → `bg`) | 2, 3, 4 (Gemma parts ×2) | Mini, Base |
|
| 91 |
| `mined_tables_chh` | `ft_rules_chh` (289,820) | new pairs spelled with the table mined from the Chhunneng word list (dictionary-like scheme), alone or with mixed / lazy noise habits | 2, 3 | **Mini** |
|
| 92 |
| `mined_tables_chh_wd` | `ft_rules_chhwd` (289,647) | made the same way from the same sources, but spelled 70% with the Chhunneng table and 30% with the table mined from Wikidata names (official, name-style scheme) | 2, 3 | **Base** |
|
| 93 |
| `casual` | `ft_casual_noakk` (426,946) | 21.6k spoken-register web sentences, spelled by the generator with stretched letters (`tovvv`, `baaan`) | **3 only** | Mini, Base |
|
|
|
|
| 100 |
| Stage 2, Base | `ft_v2` + `ft_v2_abbr3` + `train_gemrom2` ×4 + `train_gemrom2_abbr3` ×2 + `ft_rules_chhwd` | 1,164,925 |
|
| 101 |
| Stage 2, Mini | the same with `ft_rules_chh` | 1,165,098 |
|
| 102 |
| Stage 3 | the stage-2 mix of the model + `ft_casual_noakk` | 1,591,871 (Base), 1,592,044 (Mini) |
|
| 103 |
+
| Stage 4 (v1) | the stage-3 mix + `train_gemrom3` ×4 + `train_gemrom3_abbr3` ×2 | 1,668,965 (Base), 1,669,138 (Mini) |
|
| 104 |
+
| Stage 4, the other way round | `ft_v2` + `train_gemrom2` ×4 + the mined-table file + `ft_casual_noakk` + `train_gemrom3` ×4, with the Khmer side as input | 1,472,543 (Base), 1,472,716 (Mini) |
|
| 105 |
|
| 106 |
`recipes.json` gives the exact mix of each checkpoint (files in order, repeats, steps, learning rate, initialization), read from the training arguments stored in the checkpoints.
|
| 107 |
|
| 108 |
```
|
| 109 |
generator/ ft_v2.parquet
|
| 110 |
+
llm_romanized/ train_gemrom2.parquet train_gemrom3.parquet
|
| 111 |
+
abbreviated/ ft_v2_abbr3.parquet train_gemrom2_abbr3.parquet train_gemrom3_abbr3.parquet
|
| 112 |
mined_tables/ ft_rules_chh.parquet ft_rules_chhwd.parquet
|
| 113 |
casual/ ft_casual_noakk.parquet
|
| 114 |
validation/ train_v2_s3.dev.parquet
|
|
|
|
| 151 |
2. it pronounces each word with Google's Khmer pronunciation lexicon;
|
| 152 |
3. it spells the piece in a persona (formal 8%, careful 32%, mixed 40%, lazy 20%);
|
| 153 |
4. it adds noise (glued or split words, dropped vowels, swaps, typos), English chat words and place names.
|
| 154 |
+
- **`llm_romanized`.** Gemma 4 12B, run locally, romanized real sentences "the way Cambodians type on Messenger", 10 sentences per call. The Khmer side stays the original sentence, so the target is always correct, and Gemma's looser spelling acts as human-like noise on the input. 97% of the outputs passed our filters. The v1 sentences (`train_gemrom3`) come from HPLT, FineWeb-2 and ALT, none from Wikipedia; a pair was dropped when its Khmer equals an evaluation item or contains one of 20 or more characters.
|
| 155 |
- **`mined_tables_*`.** A rule miner learns per-slot spelling tables (onset, vowel, coda, glide, context) by Viterbi alignment and hard EM from public (Khmer word, romanization) lists: the Chhunneng word list (24.9k pairs, MIT) and 1.6k Wikidata person and place names (CC0). Words that are targets of a word-level evaluation set are removed first. The tables are in [`samdei/samdei-type-resources`](https://huggingface.co/datasets/samdei/samdei-type-resources). The pairs here are new sentences (HPLT, FineWeb-2, ALT, chat sentences) spelled with them.
|
| 156 |
- **`abbreviated`.**
|
| 157 |
- It covers 40% of `chat_mix` pairs and all `llm_romanized` pairs.
|
abbreviated/train_gemrom3_abbr3.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e87a50634638bf420454d30a3ec4ad5814de5dc0c15bd16b581b9664e67574a
|
| 3 |
+
size 529786
|
llm_romanized/train_gemrom3.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:066deb7e96ca0f6679598e08a85fef93553430327c96ba37200f10421439dde7
|
| 3 |
+
size 442037
|
recipes.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"about": "Exact training mixes of the Samdei Type checkpoints trained on this dataset, read from the arguments stored in each checkpoint (scripts/train.py). Files are listed in the order given to the training script; 'repeat' is how many times the file was listed. Paths are relative to this dataset unless they name another repo. 'monitor' is the synthetic held-out file watched during training; checkpoints were selected as given in 'selected_on'.",
|
| 3 |
"shared": {
|
| 4 |
"optimizer": "AdamW, betas 0.9/0.98, weight decay 0.01",
|
| 5 |
"schedule": "cosine decay to 5% of the peak",
|
|
@@ -38,12 +38,12 @@
|
|
| 38 |
],
|
| 39 |
"monitor": "validation/train_v2_s3.dev.parquet",
|
| 40 |
"steps": 6000,
|
| 41 |
-
"selected_step":
|
| 42 |
"warmup": 300,
|
| 43 |
"peak_lr": 0.0002,
|
| 44 |
"max_tokens_per_batch": 12000,
|
| 45 |
"seed": 1,
|
| 46 |
-
"selected_on": "lowest mean greedy CER on Dev-Sentences and
|
| 47 |
"model_config": {
|
| 48 |
"d_model": 384,
|
| 49 |
"nhead": 6,
|
|
@@ -52,7 +52,7 @@
|
|
| 52 |
"ff": 1536,
|
| 53 |
"dropout": 0.1,
|
| 54 |
"max_len": 256,
|
| 55 |
-
"src_vocab":
|
| 56 |
"tgt_vocab": 228
|
| 57 |
}
|
| 58 |
},
|
|
@@ -61,6 +61,58 @@
|
|
| 61 |
"stage": 3,
|
| 62 |
"direction": "latin->khmer",
|
| 63 |
"init": "Base stage 2",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
"released_as": "samdei/samdei-type-base: model.safetensors (and onnx/)",
|
| 65 |
"train": [
|
| 66 |
{
|
|
@@ -86,6 +138,36 @@
|
|
| 86 |
{
|
| 87 |
"file": "casual/ft_casual_noakk.parquet",
|
| 88 |
"repeat": 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
}
|
| 90 |
],
|
| 91 |
"monitor": "validation/train_v2_s3.dev.parquet",
|
|
@@ -95,7 +177,7 @@
|
|
| 95 |
"peak_lr": 0.0001,
|
| 96 |
"max_tokens_per_batch": 12000,
|
| 97 |
"seed": 1,
|
| 98 |
-
"selected_on": "lowest greedy CER
|
| 99 |
"model_config": {
|
| 100 |
"d_model": 384,
|
| 101 |
"nhead": 6,
|
|
@@ -104,8 +186,8 @@
|
|
| 104 |
"ff": 1536,
|
| 105 |
"dropout": 0.1,
|
| 106 |
"max_len": 256,
|
| 107 |
-
"src_vocab":
|
| 108 |
-
"tgt_vocab":
|
| 109 |
}
|
| 110 |
},
|
| 111 |
{
|
|
@@ -138,12 +220,12 @@
|
|
| 138 |
],
|
| 139 |
"monitor": "validation/train_v2_s3.dev.parquet",
|
| 140 |
"steps": 6000,
|
| 141 |
-
"selected_step":
|
| 142 |
"warmup": 300,
|
| 143 |
"peak_lr": 0.0002,
|
| 144 |
"max_tokens_per_batch": 12000,
|
| 145 |
"seed": 1,
|
| 146 |
-
"selected_on": "lowest mean greedy CER on Dev-Sentences and
|
| 147 |
"model_config": {
|
| 148 |
"d_model": 256,
|
| 149 |
"nhead": 4,
|
|
@@ -161,7 +243,7 @@
|
|
| 161 |
"stage": 3,
|
| 162 |
"direction": "latin->khmer",
|
| 163 |
"init": "Mini stage 2",
|
| 164 |
-
"released_as":
|
| 165 |
"train": [
|
| 166 |
{
|
| 167 |
"file": "generator/ft_v2.parquet",
|
|
@@ -195,7 +277,7 @@
|
|
| 195 |
"peak_lr": 0.0001,
|
| 196 |
"max_tokens_per_batch": 12000,
|
| 197 |
"seed": 1,
|
| 198 |
-
"selected_on": "lowest greedy CER
|
| 199 |
"model_config": {
|
| 200 |
"d_model": 256,
|
| 201 |
"nhead": 4,
|
|
@@ -207,6 +289,88 @@
|
|
| 207 |
"src_vocab": 215,
|
| 208 |
"tgt_vocab": 228
|
| 209 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 210 |
}
|
| 211 |
]
|
| 212 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"about": "Exact training mixes of the Samdei Type checkpoints trained on this dataset, read from the arguments stored in each checkpoint (scripts/train.py). Files are listed in the order given to the training script; 'repeat' is how many times the file was listed. Paths are relative to this dataset unless they name another repo. 'monitor' is the synthetic held-out file watched during training; checkpoints were selected as given in 'selected_on'. In the two-way runs (direction 'both'), 'train_khmer_to_latin' lists the files also used the other way round: the Khmer side, after the character U+E000, as input. The recipes of v0.1 are at revision v0.1.",
|
| 3 |
"shared": {
|
| 4 |
"optimizer": "AdamW, betas 0.9/0.98, weight decay 0.01",
|
| 5 |
"schedule": "cosine decay to 5% of the peak",
|
|
|
|
| 38 |
],
|
| 39 |
"monitor": "validation/train_v2_s3.dev.parquet",
|
| 40 |
"steps": 6000,
|
| 41 |
+
"selected_step": 2000,
|
| 42 |
"warmup": 300,
|
| 43 |
"peak_lr": 0.0002,
|
| 44 |
"max_tokens_per_batch": 12000,
|
| 45 |
"seed": 1,
|
| 46 |
+
"selected_on": "lowest mean greedy CER on Dev-Sentences and Chat-Words (selection only; never trained on)",
|
| 47 |
"model_config": {
|
| 48 |
"d_model": 384,
|
| 49 |
"nhead": 6,
|
|
|
|
| 52 |
"ff": 1536,
|
| 53 |
"dropout": 0.1,
|
| 54 |
"max_len": 256,
|
| 55 |
+
"src_vocab": 215,
|
| 56 |
"tgt_vocab": 228
|
| 57 |
}
|
| 58 |
},
|
|
|
|
| 61 |
"stage": 3,
|
| 62 |
"direction": "latin->khmer",
|
| 63 |
"init": "Base stage 2",
|
| 64 |
+
"released_as": null,
|
| 65 |
+
"train": [
|
| 66 |
+
{
|
| 67 |
+
"file": "generator/ft_v2.parquet",
|
| 68 |
+
"repeat": 1
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"file": "abbreviated/ft_v2_abbr3.parquet",
|
| 72 |
+
"repeat": 1
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"file": "llm_romanized/train_gemrom2.parquet",
|
| 76 |
+
"repeat": 4
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"file": "abbreviated/train_gemrom2_abbr3.parquet",
|
| 80 |
+
"repeat": 2
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"file": "mined_tables/ft_rules_chhwd.parquet",
|
| 84 |
+
"repeat": 1
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"file": "casual/ft_casual_noakk.parquet",
|
| 88 |
+
"repeat": 1
|
| 89 |
+
}
|
| 90 |
+
],
|
| 91 |
+
"monitor": "validation/train_v2_s3.dev.parquet",
|
| 92 |
+
"steps": 3000,
|
| 93 |
+
"selected_step": 2500,
|
| 94 |
+
"warmup": 100,
|
| 95 |
+
"peak_lr": 0.0001,
|
| 96 |
+
"max_tokens_per_batch": 12000,
|
| 97 |
+
"seed": 1,
|
| 98 |
+
"selected_on": "lowest greedy CER (romanized -> Khmer) on the closed development set",
|
| 99 |
+
"model_config": {
|
| 100 |
+
"d_model": 384,
|
| 101 |
+
"nhead": 6,
|
| 102 |
+
"enc_layers": 6,
|
| 103 |
+
"dec_layers": 3,
|
| 104 |
+
"ff": 1536,
|
| 105 |
+
"dropout": 0.1,
|
| 106 |
+
"max_len": 256,
|
| 107 |
+
"src_vocab": 215,
|
| 108 |
+
"tgt_vocab": 228
|
| 109 |
+
}
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"model": "samdei-type-base",
|
| 113 |
+
"stage": 4,
|
| 114 |
+
"direction": "both",
|
| 115 |
+
"init": "Base stage 3",
|
| 116 |
"released_as": "samdei/samdei-type-base: model.safetensors (and onnx/)",
|
| 117 |
"train": [
|
| 118 |
{
|
|
|
|
| 138 |
{
|
| 139 |
"file": "casual/ft_casual_noakk.parquet",
|
| 140 |
"repeat": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"file": "llm_romanized/train_gemrom3.parquet",
|
| 144 |
+
"repeat": 4
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"file": "abbreviated/train_gemrom3_abbr3.parquet",
|
| 148 |
+
"repeat": 2
|
| 149 |
+
}
|
| 150 |
+
],
|
| 151 |
+
"train_khmer_to_latin": [
|
| 152 |
+
{
|
| 153 |
+
"file": "generator/ft_v2.parquet",
|
| 154 |
+
"repeat": 1
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"file": "llm_romanized/train_gemrom2.parquet",
|
| 158 |
+
"repeat": 4
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"file": "mined_tables/ft_rules_chhwd.parquet",
|
| 162 |
+
"repeat": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"file": "casual/ft_casual_noakk.parquet",
|
| 166 |
+
"repeat": 1
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"file": "llm_romanized/train_gemrom3.parquet",
|
| 170 |
+
"repeat": 4
|
| 171 |
}
|
| 172 |
],
|
| 173 |
"monitor": "validation/train_v2_s3.dev.parquet",
|
|
|
|
| 177 |
"peak_lr": 0.0001,
|
| 178 |
"max_tokens_per_batch": 12000,
|
| 179 |
"seed": 1,
|
| 180 |
+
"selected_on": "lowest greedy CER (romanized -> Khmer) on the closed development set",
|
| 181 |
"model_config": {
|
| 182 |
"d_model": 384,
|
| 183 |
"nhead": 6,
|
|
|
|
| 186 |
"ff": 1536,
|
| 187 |
"dropout": 0.1,
|
| 188 |
"max_len": 256,
|
| 189 |
+
"src_vocab": 264,
|
| 190 |
+
"tgt_vocab": 265
|
| 191 |
}
|
| 192 |
},
|
| 193 |
{
|
|
|
|
| 220 |
],
|
| 221 |
"monitor": "validation/train_v2_s3.dev.parquet",
|
| 222 |
"steps": 6000,
|
| 223 |
+
"selected_step": 2000,
|
| 224 |
"warmup": 300,
|
| 225 |
"peak_lr": 0.0002,
|
| 226 |
"max_tokens_per_batch": 12000,
|
| 227 |
"seed": 1,
|
| 228 |
+
"selected_on": "lowest mean greedy CER on Dev-Sentences and Chat-Words (selection only; never trained on)",
|
| 229 |
"model_config": {
|
| 230 |
"d_model": 256,
|
| 231 |
"nhead": 4,
|
|
|
|
| 243 |
"stage": 3,
|
| 244 |
"direction": "latin->khmer",
|
| 245 |
"init": "Mini stage 2",
|
| 246 |
+
"released_as": null,
|
| 247 |
"train": [
|
| 248 |
{
|
| 249 |
"file": "generator/ft_v2.parquet",
|
|
|
|
| 277 |
"peak_lr": 0.0001,
|
| 278 |
"max_tokens_per_batch": 12000,
|
| 279 |
"seed": 1,
|
| 280 |
+
"selected_on": "lowest greedy CER (romanized -> Khmer) on the closed development set",
|
| 281 |
"model_config": {
|
| 282 |
"d_model": 256,
|
| 283 |
"nhead": 4,
|
|
|
|
| 289 |
"src_vocab": 215,
|
| 290 |
"tgt_vocab": 228
|
| 291 |
}
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"model": "samdei-type-mini",
|
| 295 |
+
"stage": 4,
|
| 296 |
+
"direction": "both",
|
| 297 |
+
"init": "Mini stage 3",
|
| 298 |
+
"released_as": "samdei/samdei-type-mini: model.safetensors (and onnx/)",
|
| 299 |
+
"train": [
|
| 300 |
+
{
|
| 301 |
+
"file": "generator/ft_v2.parquet",
|
| 302 |
+
"repeat": 1
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"file": "abbreviated/ft_v2_abbr3.parquet",
|
| 306 |
+
"repeat": 1
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"file": "llm_romanized/train_gemrom2.parquet",
|
| 310 |
+
"repeat": 4
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"file": "abbreviated/train_gemrom2_abbr3.parquet",
|
| 314 |
+
"repeat": 2
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"file": "mined_tables/ft_rules_chh.parquet",
|
| 318 |
+
"repeat": 1
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"file": "casual/ft_casual_noakk.parquet",
|
| 322 |
+
"repeat": 1
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"file": "llm_romanized/train_gemrom3.parquet",
|
| 326 |
+
"repeat": 4
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"file": "abbreviated/train_gemrom3_abbr3.parquet",
|
| 330 |
+
"repeat": 2
|
| 331 |
+
}
|
| 332 |
+
],
|
| 333 |
+
"train_khmer_to_latin": [
|
| 334 |
+
{
|
| 335 |
+
"file": "generator/ft_v2.parquet",
|
| 336 |
+
"repeat": 1
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"file": "llm_romanized/train_gemrom2.parquet",
|
| 340 |
+
"repeat": 4
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"file": "mined_tables/ft_rules_chh.parquet",
|
| 344 |
+
"repeat": 1
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"file": "casual/ft_casual_noakk.parquet",
|
| 348 |
+
"repeat": 1
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"file": "llm_romanized/train_gemrom3.parquet",
|
| 352 |
+
"repeat": 4
|
| 353 |
+
}
|
| 354 |
+
],
|
| 355 |
+
"monitor": "validation/train_v2_s3.dev.parquet",
|
| 356 |
+
"steps": 6000,
|
| 357 |
+
"selected_step": 3000,
|
| 358 |
+
"warmup": 300,
|
| 359 |
+
"peak_lr": 0.0002,
|
| 360 |
+
"max_tokens_per_batch": 12000,
|
| 361 |
+
"seed": 1,
|
| 362 |
+
"selected_on": "lowest greedy CER (romanized -> Khmer) on the closed development set",
|
| 363 |
+
"model_config": {
|
| 364 |
+
"d_model": 256,
|
| 365 |
+
"nhead": 4,
|
| 366 |
+
"enc_layers": 6,
|
| 367 |
+
"dec_layers": 2,
|
| 368 |
+
"ff": 1024,
|
| 369 |
+
"dropout": 0.1,
|
| 370 |
+
"max_len": 256,
|
| 371 |
+
"src_vocab": 264,
|
| 372 |
+
"tgt_vocab": 265
|
| 373 |
+
}
|
| 374 |
}
|
| 375 |
]
|
| 376 |
}
|