Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -25,3 +25,94 @@ configs:
|
|
| 25 |
- split: train
|
| 26 |
path: data/train-*
|
| 27 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
- split: train
|
| 26 |
path: data/train-*
|
| 27 |
---
|
| 28 |
+
# Othello (synthetic) (Llama-3 multi-format, input_output)
|
| 29 |
+
|
| 30 |
+
Continued-pre-training version of [`cfierro/othello-synthetic`](https://huggingface.co/datasets/cfierro/othello-synthetic), formatted for Axolotl's template-free `input_output` loss masking with Llama-3 BOS/EOS. Each game is written in one of several randomly-chosen move-sequence formats so the model is robust to how games are notated.
|
| 31 |
+
|
| 32 |
+
## Formats
|
| 33 |
+
|
| 34 |
+
Every row shares the same masked prefix `<|begin_of_text|>Game of bjk\n\n`; only the formatting of the move sequence (the trained body) changes. The default **fixed_prefix** (~70%) uses space-separated moves; six alternatives are each applied with ~5% probability. Black moves first. Othello lets a player with no legal move **pass**, so the colours do not strictly alternate: the player labels below come from the source dataset's `players` column (the true colour of each move), never from the move index.
|
| 35 |
+
|
| 36 |
+
All formats are `<|begin_of_text|>Game of bjk\n\n` + the body below + `<|end_of_text|>`:
|
| 37 |
+
|
| 38 |
+
```
|
| 39 |
+
fixed_prefix f5 f4 c3 ...
|
| 40 |
+
player_1_2 Player 1: f5\nPlayer 2: f4\nPlayer 1: ...
|
| 41 |
+
black_white_colon black: f5\nwhite: f4\nblack: ...
|
| 42 |
+
turn_n turn 1: f5\nturn 2: f4\nturn 3: ...
|
| 43 |
+
black_white_space black f5\nwhite f4\nblack ...
|
| 44 |
+
comma f5, f4, c3, ...
|
| 45 |
+
paren_black_white_comma (black) f5, (white) f4, (black) c3, ...
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
Stored under the `segments` schema consumed by `type: input_output`:
|
| 49 |
+
|
| 50 |
+
```json
|
| 51 |
+
{"segments": [
|
| 52 |
+
{"label": false, "text": "<|begin_of_text|>Game of bjk\n\n"},
|
| 53 |
+
{"label": true, "text": "<formatted moves><|end_of_text|>"}
|
| 54 |
+
]}
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
- The masked prefix `<|begin_of_text|>Game of bjk\n\n` (`label: false`) is not in the loss but is still attended to as context.
|
| 58 |
+
- The formatted move sequence and the trailing `<|end_of_text|>` (`label: true`) are trained, mirroring a Llama-3 pre-training document terminator.
|
| 59 |
+
- Special tokens are written literally and consumed verbatim by Axolotl (it adds no BOS/EOS automatically). The chosen `format` and the original move string `text` are kept for inspection.
|
| 60 |
+
|
| 61 |
+
## Splits
|
| 62 |
+
|
| 63 |
+
Splits mirror the source dataset, [`cfierro/othello-synthetic`](https://huggingface.co/datasets/cfierro/othello-synthetic).
|
| 64 |
+
|
| 65 |
+
| Split | Rows |
|
| 66 |
+
|---|---:|
|
| 67 |
+
| `train` | 20,000,000 |
|
| 68 |
+
|
| 69 |
+
Train on part of it with HF split syntax, e.g. `train[:500000]`.
|
| 70 |
+
|
| 71 |
+
## Axolotl usage
|
| 72 |
+
|
| 73 |
+
```yaml
|
| 74 |
+
datasets:
|
| 75 |
+
- path: cfierro/othello-llama3-multi-format
|
| 76 |
+
type: input_output
|
| 77 |
+
split: train[:500000]
|
| 78 |
+
train_on_inputs: false
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## Provenance
|
| 82 |
+
|
| 83 |
+
- **Code**: generated with [`data/push_input_output_dataset.py` @ `8bc64a1c1e`](https://github.com/constanzafierro/rules-learning/blob/8bc64a1c1eca92528038b359fa15dfa6db753c30/data/push_input_output_dataset.py).
|
| 84 |
+
> ⚠️ The working tree had **uncommitted changes** when this dataset was generated, so the linked commit may not exactly match the code that ran. Commit the generator before generating for a faithful link.
|
| 85 |
+
|
| 86 |
+
- **Built**: 2026-08-06T08:49:17
|
| 87 |
+
- **Command**:
|
| 88 |
+
|
| 89 |
+
```bash
|
| 90 |
+
python data/push_input_output_dataset.py --game othello --source_splits train --repo cfierro/othello-llama3-multi-format
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
- **Resolved arguments**:
|
| 94 |
+
|
| 95 |
+
```json
|
| 96 |
+
{
|
| 97 |
+
"game": "othello",
|
| 98 |
+
"source_repo": "cfierro/othello-synthetic",
|
| 99 |
+
"num_proc": null,
|
| 100 |
+
"source_splits": [
|
| 101 |
+
"train"
|
| 102 |
+
],
|
| 103 |
+
"repo": "cfierro/othello-llama3-multi-format",
|
| 104 |
+
"model_family": "llama3",
|
| 105 |
+
"seed": 0,
|
| 106 |
+
"alt_prob": 0.05,
|
| 107 |
+
"mode": "plain",
|
| 108 |
+
"explain_game_ratio": 0.5,
|
| 109 |
+
"explain_count_dist": "0.4,0.35,0.2,0.05",
|
| 110 |
+
"explanation_templates": null,
|
| 111 |
+
"explanation_templates_split": "train",
|
| 112 |
+
"free_adj_ratio": 0.8,
|
| 113 |
+
"dry_run": false,
|
| 114 |
+
"private": false,
|
| 115 |
+
"inspect": false,
|
| 116 |
+
"tokenizer": null
|
| 117 |
+
}
|
| 118 |
+
```
|