Datasets:
File size: 4,404 Bytes
2f92e95 da9511a 2f92e95 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | # Training metadata
What the OpenEmbed training code reads besides the shards themselves, for the 109 datasets of the final recipe. The
web-image group of the first stage of OpenEmbed-9B is not here yet; it comes with the web-image pool.
The training code names every object of its data under one logical root, `gs://openembed-release/v1`, and every file
here uses that root. You do not create that bucket. You install the data into a `gs://` folder of your own, and the
training launcher maps the logical root to it (`OPENEMBED_DATA`).
## What is here
| Path | What the loader does with it |
|---|---|
| `tree/datasets/<category>/<dataset>/card.json` | which build of the dataset to read and how its contamination is handled |
| `tree/datasets/<category>/<dataset>/[vN/]manifest.txt` | the shards it reads, in order |
| `tree/v2data/contamination_exact_v2/blocklists/` | the exact-item blocklists the final recipe used, for the 45 datasets they name |
| `tree/v2data/contamination/blocklists/` | the blocklists of the other datasets that are checked at read time |
| `tree/datasets/.../removed/dedup_skip/` | the read-time duplicate skip lists (4 datasets) |
| `tree/v2data/mined/` | the mined hard negatives of mmeb/DocVQA, InfographicsVQA, ChartQA and TextVQA |
| `tree/v2data/teacher/hybrid_8bv5_9bdocs_recog9_img9_v1/` | the teacher store's index for the 73 distilled datasets whose vectors are in `teacher/` |
| `shards.jsonl` | for every shard: its dataset, where `build.py rebuild` writes it (`<folder>/<shard>`), its logical URI, its record count, and what the installer checks |
| `pack.json` | the size and sha256 of every file above, and a summary per dataset |
Contamination rows of the 45 datasets that were rewritten were removed when their shards were built; their cards say so,
and the loader reads no list for them.
## Install
From the folder that holds `tools/`, `training/` and `teacher/`, after `build.py rebuild --out shards/`:
```bash
python tools/openembed_data/install_training.py --shards shards/ --to gs://YOUR-BUCKET/openembed-data
```
For every dataset the installer:
- checks every rebuilt shard:
- exact datasets: the byte count and CRC-32C of the public rebuild;
- datasets whose images are re-encoded from their source: the record count;
- places the shards and the files of `tree/` where their logical URIs say;
- places the released teacher vectors, checked by sha256;
- uploads everything with one `gcloud storage rsync`. A local `--to` folder is written directly.
A dataset with a missing or different shard is left out. The installer ends with two lines for the training launcher:
`OPENEMBED_DATA` (the folder) and `OPENEMBED_SKIP` (what your install leaves out: the web group, and every dataset it
did not install, by its exact name). Dress-ED is a separate download: put its shard files under `shards/editing/dressed/`.
## Train
Run a recipe of the training code (`recipes/README.md` there) with the installer's two lines, on every host:
```bash
export OPENEMBED_DATA=gs://YOUR-BUCKET/openembed-data OPENEMBED_SKIP=...
set -a; . recipes/openembed-2b/stage1.env; set +a
bash scripts/train_multihost.sh my_2b_stage1
```
The launcher disables the datasets `OPENEMBED_SKIP` names and leaves them out of distillation. Leave `OPENEMBED_ROOT`
unset (its default is the logical root). Outputs go to `$OPENEMBED_DATA/v2data` unless `GCSROOT` says otherwise.
## What differs from our runs
- **Record bytes.** A rebuilt record differs from our training record in its provenance, which names
`openembed://...` instead of our storage, and, in grd/oi_crop, text/gooaq and text/paq, in its licence label, which
the release corrects. The lists here are keyed to the rebuilt bytes:
- the 7 blocked records of the grounding sets have the checksum of their public bytes;
- for the editing corpora, whose images are re-encoded from their source, the lists match records by shard and
position (`"record_check": "ordinal"`). This covers the skip lists of edit/aurora (8,659 records), edit/pica (13)
and edit/refedit (24), and one blocked record of edit/unicedit. Their records and their order are those of our
training shards.
- **Sampling order.** The step schedule is seeded by the registry hash, which covers the data URIs. With the logical
root, each step draws its datasets in a different order than in our runs; the mixture is the same.
|