Datasets:
Commit ·
2f92e95
0
Parent(s):
OpenEmbed data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributesAdded+64
- README.mdAdded+642
- classification/country211-valid/README.mdAdded+44
- classification/country211-valid/filters.parquetAdded+3
- classification/country211-valid/records.parquetAdded+3
- classification/country211-valid/set.jsonAdded+40
- classification/country211-valid/shards.parquetAdded+3
- classification/country211-valid/verification.jsonAdded+35
- classification/geode-country/README.mdAdded+44
- classification/geode-country/filters.parquetAdded+3
- classification/geode-country/records.parquetAdded+3
- classification/geode-country/set.jsonAdded+39
- classification/geode-country/shards.parquetAdded+3
- classification/geode-country/verification.jsonAdded+45
- classification/geode-obj/README.mdAdded+44
- classification/geode-obj/filters.parquetAdded+3
- classification/geode-obj/records.parquetAdded+3
- classification/geode-obj/set.jsonAdded+39
- classification/geode-obj/shards.parquetAdded+3
- classification/geode-obj/verification.jsonAdded+45
- classification/imagenet-21k/README.mdAdded+144
- classification/imagenet-21k/SHA256SUMS.txtAdded+16
- classification/imagenet-21k/filters/contamination_block.parquetAdded+3
- classification/imagenet-21k/filters/dedup_skip.parquetAdded+3
- classification/imagenet-21k/records/part-00000.parquetAdded+3
- classification/imagenet-21k/records/part-00001.parquetAdded+3
- classification/imagenet-21k/records/part-00002.parquetAdded+3
- classification/imagenet-21k/records/part-00003.parquetAdded+3
- classification/imagenet-21k/records/part-00004.parquetAdded+3
- classification/imagenet-21k/records/part-00005.parquetAdded+3
- classification/imagenet-21k/records/part-00006.parquetAdded+3
- classification/imagenet-21k/records/part-00007.parquetAdded+3
- classification/imagenet-21k/shards.parquetAdded+3
- classification/imagenet-21k/timm_tars.parquetAdded+3
- classification/imagenet-21k/timm_unused_samples.parquetAdded+3
- classification/imagenet-21k/tools/loader.pyAdded+384
- classification/imagenet-21k/tools/tests/test_loader.pyAdded+146
- classification/mmeb-country211/README.mdAdded+44
- classification/mmeb-country211/filters.parquetAdded+3
- classification/mmeb-country211/records.parquetAdded+3
- classification/mmeb-country211/set.jsonAdded+40
- classification/mmeb-country211/shards.parquetAdded+3
- classification/mmeb-country211/verification.jsonAdded+35
- classification/mmeb-hatefulmemes/README.mdAdded+44
- classification/mmeb-hatefulmemes/filters.parquetAdded+3
- classification/mmeb-hatefulmemes/records.parquetAdded+3
- classification/mmeb-hatefulmemes/set.jsonAdded+34
- classification/mmeb-hatefulmemes/shards.parquetAdded+3
- classification/mmeb-hatefulmemes/verification.jsonAdded+41
- classification/mmeb-imagenet-1k/README.mdAdded+44
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.avro filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.lz4 filter=lfs diff=lfs merge=lfs -text*.mds filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text# Audio files - uncompressed*.pcm filter=lfs diff=lfs merge=lfs -text*.sam filter=lfs diff=lfs merge=lfs -text*.raw filter=lfs diff=lfs merge=lfs -text# Audio files - compressed*.aac filter=lfs diff=lfs merge=lfs -text*.flac filter=lfs diff=lfs merge=lfs -text*.mp3 filter=lfs diff=lfs merge=lfs -text*.ogg filter=lfs diff=lfs merge=lfs -text*.wav filter=lfs diff=lfs merge=lfs -text# Image files - uncompressed*.bmp filter=lfs diff=lfs merge=lfs -text*.gif filter=lfs diff=lfs merge=lfs -text*.png filter=lfs diff=lfs merge=lfs -text*.tiff filter=lfs diff=lfs merge=lfs -text# Image files - compressed*.jpg filter=lfs diff=lfs merge=lfs -text*.jpeg filter=lfs diff=lfs merge=lfs -text*.webp filter=lfs diff=lfs merge=lfs -text# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -texttraining/tree/v2data/mined/mmeb/ChartQA/sidecar.jsonl filter=lfs diff=lfs merge=lfs -texttraining/tree/v2data/mined/mmeb/DocVQA/sidecar.jsonl filter=lfs diff=lfs merge=lfs -texttraining/tree/v2data/mined/mmeb/InfographicsVQA/sidecar.jsonl filter=lfs diff=lfs merge=lfs -texttraining/tree/v2data/mined/mmeb/TextVQA/sidecar.jsonl filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642---license: otherpretty_name: OpenEmbed training data (private pilot)configs:- config_name: country211-valid data_files: - split: train path: classification/country211-valid/records.parquet- config_name: geode-country data_files: - split: train path: classification/geode-country/records.parquet- config_name: geode-obj data_files: - split: train path: classification/geode-obj/records.parquet- config_name: imagenet-21k data_files: - split: train path: classification/imagenet-21k/records/*.parquet- config_name: mmeb-country211 data_files: - split: train path: classification/mmeb-country211/records.parquet- config_name: mmeb-hatefulmemes data_files: - split: train path: classification/mmeb-hatefulmemes/records.parquet- config_name: mmeb-imagenet-1k data_files: - split: train path: classification/mmeb-imagenet-1k/records.parquet- config_name: mmeb-n24news data_files: - split: train path: classification/mmeb-n24news/records.parquet- config_name: mmeb-sun397 data_files: - split: train path: classification/mmeb-sun397/records.parquet- config_name: mmeb-voc2007 data_files: - split: train path: classification/mmeb-voc2007/records.parquet- config_name: osv5m-country data_files: - split: train path: classification/osv5m-country/records.parquet- config_name: places365 data_files: - split: train path: classification/places365/records.parquet- config_name: uco3d-full data_files: - split: train path: classification/uco3d-full/records.parquet- config_name: colpali-arxivqa-hn data_files: - split: train path: documents/colpali-arxivqa-hn/records.parquet- config_name: colpali-docvqa data_files: - split: train path: documents/colpali-docvqa/records.parquet- config_name: colpali-infovqa data_files: - split: train path: documents/colpali-infovqa/records.parquet- config_name: colpali-pdf-hn data_files: - split: train path: documents/colpali-pdf-hn/records.parquet- config_name: colpali-tatdqa data_files: - split: train path: documents/colpali-tatdqa/records.parquet- config_name: colpali-train data_files: - split: train path: documents/colpali-train/records.parquet- config_name: docbank-pages data_files: - split: train path: documents/docbank-pages/records.parquet- config_name: docbank-spans data_files: - split: train path: documents/docbank-spans/records.parquet- config_name: docmatix-ir-hn data_files: - split: train path: documents/docmatix-ir-hn/records.parquet- config_name: docvqa-q2page data_files: - split: train path: documents/docvqa-q2page/records.parquet- config_name: infoseek data_files: - split: train path: documents/infoseek/records.parquet- config_name: infoseek-text data_files: - split: train path: documents/infoseek-text/records.parquet- config_name: mmeb-edis data_files: - split: train path: documents/mmeb-edis/records.parquet- config_name: mmeb-oven data_files: - split: train path: documents/mmeb-oven/records.parquet- config_name: mmeb-webqa data_files: - split: train path: documents/mmeb-webqa/records.parquet- config_name: mmeb-wiki-ss-nq data_files: - split: train path: documents/mmeb-wiki-ss-nq/records.parquet- config_name: oven-text data_files: - split: train path: documents/oven-text/records.parquet- config_name: vdr-de-hn data_files: - split: train path: documents/vdr-de-hn/records.parquet- config_name: vdr-en-hn data_files: - split: train path: documents/vdr-en-hn/records.parquet- config_name: vdr-es-hn data_files: - split: train path: documents/vdr-es-hn/records.parquet- config_name: vdr-fr-hn data_files: - split: train path: documents/vdr-fr-hn/records.parquet- config_name: vdr-it-hn data_files: - split: train path: documents/vdr-it-hn/records.parquet- config_name: visrag-arxivqa data_files: - split: train path: documents/visrag-arxivqa/records.parquet- config_name: visrag-chartqa data_files: - split: train path: documents/visrag-chartqa/records.parquet- config_name: visrag-infovqa data_files: - split: train path: documents/visrag-infovqa/records.parquet- config_name: visrag-mpdocvqa data_files: - split: train path: documents/visrag-mpdocvqa/records.parquet- config_name: visrag-plotqa data_files: - split: train path: documents/visrag-plotqa/records.parquet- config_name: visrag-slidevqa data_files: - split: train path: documents/visrag-slidevqa/records.parquet- config_name: anyedit data_files: - split: train path: editing/anyedit/records.parquet- config_name: aurora data_files: - split: train path: editing/aurora/records.parquet- config_name: crispedit data_files: - split: train path: editing/crispedit/records.parquet- config_name: gptimageedit-hqedit data_files: - split: train path: editing/gptimageedit-hqedit/records.parquet- config_name: gptimageedit-omniedit data_files: - split: train path: editing/gptimageedit-omniedit/records.parquet- config_name: gptimageedit-ultraedit data_files: - split: train path: editing/gptimageedit-ultraedit/records.parquet- config_name: hqedit data_files: - split: train path: editing/hqedit/records.parquet- config_name: humanedit data_files: - split: train path: editing/humanedit/records.parquet- config_name: imgedit data_files: - split: train path: editing/imgedit/records.parquet- config_name: ip2p data_files: - split: train path: editing/ip2p/records.parquet- config_name: magicbrush data_files: - split: train path: editing/magicbrush/records.parquet- config_name: mmeb-cirr data_files: - split: train path: editing/mmeb-cirr/records.parquet- config_name: mmeb-fashioniq data_files: - split: train path: editing/mmeb-fashioniq/records.parquet- config_name: mmeb-nights data_files: - split: train path: editing/mmeb-nights/records.parquet- config_name: nein data_files: - split: train path: editing/nein/records.parquet- config_name: nhredit data_files: - split: train path: editing/nhredit/records.parquet- config_name: nhredit2 data_files: - split: train path: editing/nhredit2/records.parquet- config_name: omniedit data_files: - split: train path: editing/omniedit/records.parquet- config_name: pica data_files: - split: train path: editing/pica/records.parquet- config_name: picobanana data_files: - split: train path: editing/picobanana/records.parquet- config_name: pipe data_files: - split: train path: editing/pipe/records.parquet- config_name: refedit data_files: - split: train path: editing/refedit/records.parquet- config_name: scaleedit data_files: - split: train path: editing/scaleedit/records.parquet- config_name: seededit data_files: - split: train path: editing/seededit/records.parquet- config_name: ultraedit-v2 data_files: - split: train path: editing/ultraedit-v2/records.parquet- config_name: unicedit data_files: - split: train path: editing/unicedit/records.parquet- config_name: weave data_files: - split: train path: editing/weave/records.parquet- config_name: mmeb-mscoco-grd data_files: - split: train path: grounding/mmeb-mscoco-grd/records.parquet- config_name: mmeb-visual7w-pointing data_files: - split: train path: grounding/mmeb-visual7w-pointing/records.parquet- config_name: mmeb-mscoco-i2t data_files: - split: train path: image_text/mmeb-mscoco-i2t/records.parquet- config_name: mmeb-mscoco-t2i data_files: - split: train path: image_text/mmeb-mscoco-t2i/records.parquet- config_name: mmeb-visdial data_files: - split: train path: image_text/mmeb-visdial/records.parquet- config_name: mmeb-visualnews-i2t data_files: - split: train path: image_text/mmeb-visualnews-i2t/records.parquet- config_name: mmeb-visualnews-t2i data_files: - split: train path: image_text/mmeb-visualnews-t2i/records.parquet- config_name: visualnews-i2t data_files: - split: train path: image_text/visualnews-i2t/records.parquet- config_name: visualnews-t2i data_files: - split: train path: image_text/visualnews-t2i/records.parquet- config_name: allnli data_files: - split: train path: text/allnli/records.parquet- config_name: fever data_files: - split: train path: text/fever/records.parquet- config_name: gooaq data_files: - split: train path: text/gooaq/records.parquet- config_name: hotpotqa data_files: - split: train path: text/hotpotqa/records.parquet- config_name: msmarco-passage data_files: - split: train path: text/msmarco-passage/records.parquet- config_name: msmarco-v21 data_files: - split: train path: text/msmarco-v21/records.parquet- config_name: nq data_files: - split: train path: text/nq/records.parquet- config_name: paq data_files: - split: train path: text/paq/records.parquet- config_name: quora-dup data_files: - split: train path: text/quora-dup/records.parquet- config_name: trivia-qa data_files: - split: train path: text/trivia-qa/records.parquet- config_name: cauldron-dvqa data_files: - split: train path: vqa/cauldron-dvqa/records.parquet- config_name: cauldron-st-vqa data_files: - split: train path: vqa/cauldron-st-vqa/records.parquet- config_name: cauldron-vqav2 data_files: - split: train path: vqa/cauldron-vqav2/records.parquet- config_name: docmatix data_files: - split: train path: vqa/docmatix/records.parquet- config_name: lov-ai2d data_files: - split: train path: vqa/lov-ai2d/records.parquet- config_name: lov-tqa data_files: - split: train path: vqa/lov-tqa/records.parquet- config_name: mapqa data_files: - split: train path: vqa/mapqa/records.parquet- config_name: mmeb-a-okvqa data_files: - split: train path: vqa/mmeb-a-okvqa/records.parquet- config_name: mmeb-chartqa data_files: - split: train path: vqa/mmeb-chartqa/records.parquet- config_name: mmeb-docvqa data_files: - split: train path: vqa/mmeb-docvqa/records.parquet- config_name: mmeb-gqa data_files: - split: train path: vqa/mmeb-gqa/records.parquet- config_name: mmeb-infographicsvqa data_files: - split: train path: vqa/mmeb-infographicsvqa/records.parquet- config_name: mmeb-ok-vqa data_files: - split: train path: vqa/mmeb-ok-vqa/records.parquet- config_name: mmeb-scienceqa data_files: - split: train path: vqa/mmeb-scienceqa/records.parquet- config_name: mmeb-textvqa data_files: - split: train path: vqa/mmeb-textvqa/records.parquet- config_name: mmeb-visual7w data_files: - split: train path: vqa/mmeb-visual7w/records.parquet- config_name: mmeb-vizwiz data_files: - split: train path: vqa/mmeb-vizwiz/records.parquet---
# OpenEmbed training data — private pilot
Status: private pilot for preparing the data release. Not for distribution. Datasets are added one at a time.
## How the data are released
Like Recap-DataComp-1B, each dataset ships its training records without image bytes: the text fields (queries,targets, instructions, labels, negatives), the pairing, the filter lists, a pointer to each image in its originalsource at a pinned revision, and the sha256 of the image bytes used in training. A loader fetches the images from theoriginal source and rebuilds the training records. Each dataset's README states which case applies:
- exact: the rebuilt records are byte-identical to the training records (checked by sha256);- approximate: the source image is the same picture, but our training copy was re-encoded or resized, so the rebuilt image differs slightly from the training copy;- shipped: the images are included because the source can no longer provide them.
Each dataset's README names the source, its revision and its terms. Users obtain the images from the original sourcesunder those terms.
To request the removal of an item, open a discussion on this repository.
## Layout
One folder per task category, one sub-folder per dataset; shared tools in `tools/`. `teacher/` holds the cachedteacher embeddings that stage 2 distilled from, in the same sub-folders as the datasets (see `teacher/README.md`).`training/` holds what the training code reads besides the shards (see "Training on the rebuilt data" below).
| folder | task | form of a training pair ||---|---|---|| `classification/` | classification | image → class name, with confusable classes as negatives || `vqa/` | visual question answering | image + question → answer || `image_text/` | image–text retrieval | caption ↔ image || `grounding/` | grounding | image + referring expression → region crop || `documents/` | knowledge and document retrieval | question → document page or knowledge entity || `editing/` | image editing and composed image retrieval | image + edit instruction → edited image || `text/` | text retrieval | text → text |
The web-pool data (used only by the 9B model) will be kept in a separate repository.
## Getting the files
You do not need the whole repository. Download the folder of each dataset you want and the shared `tools/` folder,keeping their paths, for example:
```pip install -U huggingface_hubhf auth login # while this repository is privatehf download UCSC-VLAA/OpenEmbed-Data-pilot --repo-type dataset --local-dir openembed-data \ --include "vqa/mmeb-gqa/*" --include "tools/*"cd openembed-data```
The commands in the dataset READMEs run from this folder (their "repository root"). Add`--include "teacher/vqa/mmeb-gqa/*"` for the dataset's teacher embeddings. ImageNet-21k carries its own loader(`classification/imagenet-21k/tools/`) and runs from its own folder. Each dataset's README gives its rebuild commandand the Python packages it needs.
## Rebuilding many datasets at once
`tools/openembed_data/build.py` runs each dataset's own loader and checks, and sums up the run. It reads the index`tools/openembed_data/datasets.json`. With `tools/` downloaded as above:
```python tools/openembed_data/build.py list # every dataset: case, records, download, what it needspython tools/openembed_data/build.py fetch --sets vqa,text --teacherpython tools/openembed_data/build.py rebuild --sets vqa,text --out shards/ --cache cache/```
`--sets` takes dataset ids (`mmeb/GQA`), folders (`vqa/mmeb-gqa`), categories (`vqa`), or `all`; `rebuild --fetch`downloads the folders it is missing. Each dataset ends as one of:- pass;- incomplete: records left out, each one listed;- failed: see its log;- needs: a login, an archive to put into the cache by hand, or a package.
The exit status is 1 unless every dataset asked for passed. Logs, problem lists and `summary.json` go to`<out>/_build/`.
## Training on the rebuilt data
`training/` holds what the OpenEmbed training code reads besides the shards: per dataset its card and shard manifest,the contamination block lists, the duplicate skip lists, the mined hard negatives of four MMEB sets, and the index ofthe teacher store (`training/README.md` describes each). After `build.py rebuild --out shards/`, download `training/`(and, for stage 2, the `teacher/` folders of the datasets you distill), then install into a `gs://` folder of yours:
```hf download UCSC-VLAA/OpenEmbed-Data-pilot --repo-type dataset --local-dir . --include "training/*"python tools/openembed_data/install_training.py --shards shards/ --to gs://YOUR-BUCKET/openembed-data```
The installer checks every shard against the training data (byte count and CRC-32C where the rebuild is exact, therecord count where images are re-encoded from their source), places the shards, the metadata and the teacher vectorswhere the training code looks for them, uploads them with one `gcloud storage rsync`, and prints two lines for thetraining launcher: `OPENEMBED_DATA` and `OPENEMBED_SKIP` (the datasets it left out). Then run a recipe of the trainingcode (`recipes/` there).
## Datasets so far (104)
| dataset | folder | case | records | licence class ||---|---|---|---|---|| `ext/country211_valid` | `classification/country211-valid/` | exact | 10,550 | TP || `ext/geode_country` | `classification/geode-country/` | exact | 61,922 | P || `ext/geode_obj` | `classification/geode-obj/` | exact | 61,925 | P || `cls/imagenet21k` | `classification/imagenet-21k/` | exact (images from timm/imagenet-w21-wds) | 13,016,419 | NC || `mmeb/Country211` | `classification/mmeb-country211/` | exact | 31,650 | TP || `mmeb/HatefulMemes` | `classification/mmeb-hatefulmemes/` | exact (see note) | 8,500 | NC || `mmeb/ImageNet-1K` | `classification/mmeb-imagenet-1k/` | exact (see note) | 100,000 | NC || `mmeb/N24News` | `classification/mmeb-n24news/` | exact (see note) | 48,544 | NS || `mmeb/SUN397` | `classification/mmeb-sun397/` | exact (see note) | 19,666 | NC || `mmeb/VOC2007` | `classification/mmeb-voc2007/` | exact (see note) | 7,844 | TP || `ext/osv5m_country` | `classification/osv5m-country/` | exact | 48,483 | P || `cls/places365` | `classification/places365/` | exact | 1,802,452 | NC || `ext/uco3d_full` | `classification/uco3d-full/` | exact | 141,884 | P || `visdoc/colpali_arxivqa_hn` | `documents/colpali-arxivqa-hn/` | exact | 7,932 | NS || `visdoc/colpali_docvqa` | `documents/colpali-docvqa/` | exact | 39,276 | NS || `visdoc/colpali_infovqa` | `documents/colpali-infovqa/` | exact | 10,037 | NS || `visdoc/colpali_pdf_hn` | `documents/colpali-pdf-hn/` | exact | 45,676 | NS || `visdoc/colpali_tatdqa` | `documents/colpali-tatdqa/` | exact | 12,409 | NS || `doc/colpali_train` | `documents/colpali-train/` | exact | 7,609 | NS || `doc/docbank_pages` | `documents/docbank-pages/` | identifiers only | 248,673 | ND || `doc/docbank_spans` | `documents/docbank-spans/` | identifiers only | 612,913 | ND || `visdoc/docmatix_ir_hn` | `documents/docmatix-ir-hn/` | exact | 999,996 | P || `doc/docvqa_q2page` | `documents/docvqa-q2page/` | exact | 110,582 | NS || `kb/infoseek` | `documents/infoseek/` | exact | 124,490 | P || `kb/infoseek_text` | `documents/infoseek-text/` | exact | 141,251 | P || `mmeb/EDIS` | `documents/mmeb-edis/` | exact | 57,288 | NC || `mmeb/OVEN` | `documents/mmeb-oven/` | exact | 132,565 | P || `mmeb/WebQA` | `documents/mmeb-webqa/` | exact | 17,165 | TP || `mmeb/Wiki-SS-NQ` | `documents/mmeb-wiki-ss-nq/` | exact | 40,365 | P || `kb/oven_text` | `documents/oven-text/` | exact | 150,749 | P || `visdoc/vdr_de_hn` | `documents/vdr-de-hn/` | exact | 58,211 | P || `visdoc/vdr_en_hn` | `documents/vdr-en-hn/` | exact | 53,497 | P || `visdoc/vdr_es_hn` | `documents/vdr-es-hn/` | exact | 58,734 | P || `visdoc/vdr_fr_hn` | `documents/vdr-fr-hn/` | exact | 55,251 | P || `visdoc/vdr_it_hn` | `documents/vdr-it-hn/` | exact | 54,938 | P || `visdoc/visrag_arxivqa` | `documents/visrag-arxivqa/` | exact | 22,454 | NS || `visdoc/visrag_chartqa` | `documents/visrag-chartqa/` | exact | 4,216 | NS || `visdoc/visrag_infovqa` | `documents/visrag-infovqa/` | exact | 17,655 | NS || `visdoc/visrag_mpdocvqa` | `documents/visrag-mpdocvqa/` | exact | 10,553 | NS || `visdoc/visrag_plotqa` | `documents/visrag-plotqa/` | exact | 55,440 | NS || `visdoc/visrag_slidevqa` | `documents/visrag-slidevqa/` | exact | 8,158 | NS || `edit/anyedit` | `editing/anyedit/` | approximate (images re-encoded from the source; ours where unmatched) | 2,115,953 | P || `edit/aurora` | `editing/aurora/` | approximate (images re-encoded from the source; ours where unmatched) | 169,179 | P || `edit/crispedit` | `editing/crispedit/` | approximate (images re-encoded from the source; ours where unmatched) | 2,176,812 | P || `edit/gptimageedit_hqedit` | `editing/gptimageedit-hqedit/` | approximate (images re-encoded from the source; ours where unmatched) | 89,585 | P || `edit/gptimageedit_omniedit` | `editing/gptimageedit-omniedit/` | approximate (images re-encoded from the source; ours where unmatched) | 967,424 | P || `edit/gptimageedit_ultraedit` | `editing/gptimageedit-ultraedit/` | approximate (images re-encoded from the source; ours where unmatched) | 100,008 | P || `edit/hqedit` | `editing/hqedit/` | approximate (images re-encoded from the source; ours where unmatched) | 197,330 | NC || `edit/humanedit` | `editing/humanedit/` | approximate (images re-encoded from the source; ours where unmatched) | 5,751 | P || `edit/imgedit` | `editing/imgedit/` | approximate (images re-encoded from the source; ours where unmatched) | 640,176 | P || `edit/ip2p` | `editing/ip2p/` | approximate (images re-encoded from the source; ours where unmatched) | 313,010 | NS || `edit/magicbrush` | `editing/magicbrush/` | approximate (images re-encoded from the source; ours where unmatched) | 8,634 | P || `mmeb/CIRR` | `editing/mmeb-cirr/` | exact (see note) | 25,892 | NC || `mmeb/FashionIQ` | `editing/mmeb-fashioniq/` | exact | 15,775 | TP || `mmeb/NIGHTS` | `editing/mmeb-nights/` | exact (see note) | 15,941 | P || `edit/nein` | `editing/nein/` | approximate (images re-encoded from the source; ours where unmatched) | 685,550 | P || `edit/nhredit` | `editing/nhredit/` | approximate (images re-encoded from the source; ours where unmatched) | 265,056 | P || `edit/nhredit2` | `editing/nhredit2/` | approximate (images re-encoded from the source; ours where unmatched) | 320,990 | P || `edit/omniedit` | `editing/omniedit/` | approximate (images re-encoded from the source; ours where unmatched) | 1,197,338 | P || `edit/pica` | `editing/pica/` | approximate (images re-encoded from the source; ours where unmatched) | 312,413 | P || `edit/picobanana` | `editing/picobanana/` | approximate (images re-encoded from the source; ours where unmatched) | 490,761 | NC || `edit/pipe` | `editing/pipe/` | approximate (images re-encoded from the source; ours where unmatched) | 882,292 | P || `edit/refedit` | `editing/refedit/` | approximate (images re-encoded from the source; ours where unmatched) | 17,901 | NS || `edit/scaleedit` | `editing/scaleedit/` | approximate (images re-encoded from the source; ours where unmatched) | 4,455,692 | NC || `edit/seededit` | `editing/seededit/` | approximate (images re-encoded from the source; ours where unmatched) | 1,487,789 | NC || `edit/ultraedit_v2` | `editing/ultraedit-v2/` | approximate (images re-encoded from the source; ours where unmatched) | 3,996,699 | P || `edit/unicedit` | `editing/unicedit/` | approximate (images re-encoded from the source; ours where unmatched) | 1,679,962 | P || `edit/weave` | `editing/weave/` | approximate (images re-encoded from the source; ours where unmatched) | 198,556 | P || `mmeb/MSCOCO_grd` | `grounding/mmeb-mscoco-grd/` | exact (see note) | 27,782 | TP || `mmeb/Visual7W-Pointing` | `grounding/mmeb-visual7w-pointing/` | exact | 93,803 | NS || `mmeb/MSCOCO_i2t` | `image_text/mmeb-mscoco-i2t/` | exact (see note) | 99,997 | TP || `mmeb/MSCOCO_t2i` | `image_text/mmeb-mscoco-t2i/` | exact (see note) | 50,000 | TP || `mmeb/VisDial` | `image_text/mmeb-visdial/` | exact (see note) | 99,196 | TP || `mmeb/VisualNews_i2t` | `image_text/mmeb-visualnews-i2t/` | exact (see note) | 99,883 | NS || `mmeb/VisualNews_t2i` | `image_text/mmeb-visualnews-t2i/` | exact (see note) | 49,938 | NS || `ext/visualnews_i2t` | `image_text/visualnews-i2t/` | exact | 1,236,464 | NS || `ext/visualnews_t2i` | `image_text/visualnews-t2i/` | exact | 1,236,464 | NS || `text/allnli` | `text/allnli/` | exact (text only) | 55,345 | P || `text/fever` | `text/fever/` | exact (text only) | 186,580 | P || `text/gooaq` | `text/gooaq/` | exact (text only) | 1,210,960 | NC || `text/hotpotqa` | `text/hotpotqa/` | exact (text only) | 169,022 | P || `text/msmarco_passage` | `text/msmarco-passage/` | exact (text only) | 299,997 | NC || `text/msmarco_v21` | `text/msmarco-v21/` | exact (text only) | 499,865 | NC || `text/nq` | `text/nq/` | exact (text only) | 99,239 | P || `text/paq` | `text/paq/` | exact (text only) | 1,199,997 | P || `text/quora_dup` | `text/quora-dup/` | exact (text only) | 99,997 | NC || `text/trivia_qa` | `text/trivia-qa/` | exact (text only) | 77,082 | P || `ext/cauldron_dvqa` | `vqa/cauldron-dvqa/` | exact | 255,000 | NC || `ext/cauldron_st_vqa` | `vqa/cauldron-st-vqa/` | exact | 23,083 | NS || `ext/cauldron_vqav2` | `vqa/cauldron-vqav2/` | exact | 253,457 | TP || `ext/docmatix` | `vqa/docmatix/` | exact | 47,228 | P || `ext/lov_ai2d` | `vqa/lov-ai2d/` | exact | 7,438 | P || `ext/lov_tqa` | `vqa/lov-tqa/` | exact | 29,834 | NC || `ext/mapqa` | `vqa/mapqa/` | exact | 78,056 | P || `mmeb/A-OKVQA` | `vqa/mmeb-a-okvqa/` | exact (see note) | 17,052 | TP || `mmeb/ChartQA` | `vqa/mmeb-chartqa/` | exact (see note) | 28,127 | TP || `mmeb/DocVQA` | `vqa/mmeb-docvqa/` | exact (see note) | 39,460 | NS || `mmeb/GQA` | `vqa/mmeb-gqa/` | exact | 47,981 | NS || `mmeb/InfographicsVQA` | `vqa/mmeb-infographicsvqa/` | exact (see note) | 23,944 | NC || `mmeb/OK-VQA` | `vqa/mmeb-ok-vqa/` | exact (see note) | 9,007 | NS || `mmeb/ScienceQA` | `vqa/mmeb-scienceqa/` | exact | 4,622 | NC || `mmeb/TextVQA` | `vqa/mmeb-textvqa/` | exact | 31,303 | P || `mmeb/Visual7W` | `vqa/mmeb-visual7w/` | exact (see note) | 69,756 | NS || `mmeb/VizWiz` | `vqa/mmeb-vizwiz/` | exact | 20,519 | P |
Note on "exact (see note)": each training record stores a provenance string whose prefix is an internal storage path. The published records replace that prefix with `openembed://july-conversion/`, so a rebuild equals the training records in every byte except that string (checked against the published `*_public` checksums). The image bytes and every field the model reads are identical.
## Citation
If you use these data, please cite the paper, and the original datasets you use (each dataset's README names itssource):
```bibtex@article{liu2026openembed, title = {{OpenEmbed}: A Family of Frontier Multimodal Embedding Models with Open Data, Code, and Weights}, author = {Liu, Yanqing and Zhang, Letian and Yao, Huaxiu and Zheng, Zeyu and Zhou, Yuyin and Xie, Cihang}, journal = {arXiv preprint arXiv:XXXX.XXXXX}, year = {2026}}```1234567891011121314151617181920212223242526272829303132333435363738394041424344# country211-valid
The training set `ext/country211_valid` exactly as the OpenEmbed models were trained on it (both stages), as records without image bytes, with a pointer to each image's pinned public source and the sha256 and length of our training bytes.
* Registry id: `ext/country211_valid` (exact case; the folder name is lowercase). Category: classification.* 10,550 records in 16 TFRecord shards (1.91 GB).* Source: Country211 validation split (OpenAI CLIP; the archive country211.tgz, md5 84988d76...): photos from YFCC100M labelled with the country they were taken in, the label written in the evaluation spelling; each image is the archive member byte for byte.
## Files
* `records.parquet`: one row per record, in shard order (`shard`, `ordinal`): every stored field (`record_key`, `dataset_id`, `wemm_type`, `task_subtype`, `modality_sig`, `query_text`, `instruction`, `target_text`, `neg_texts`, `neg_scores`, `pos_score`, `pos_rank`, `graded_score`, `target_key`, `group_key`, `license`), `provenance` (the shard and record of the earlier conversion it came from) and the sha256 and length of the serialized record (`record_sha256`: our training bytes; `record_sha256_public`: with the public provenance). For every image field (`query_image`, `target_image`, `neg_images`): sha256, length and `*_source`, a JSON pointer to the pinned source item (repository, revision, file, row or member, and the transformation our converter applied).* `filters.parquet`: per record what the training loader applied when reading it: `adapter_emitted`, `adapter_flags`, `blocked_at_read`, `dedup_skipped`.* `shards.parquet`: per shard record count, bytes, md5 and crc32c (base64) of our training shard and of the public rebuild.* `set.json`: these facts in machine-readable form.
## Rebuild
From the repository root (`pip install pyarrow huggingface_hub crc32c`; every image is the source's bytes as published, so no re-encoding and no Pillow are needed):
```python tools/openembed_data/rebuild_shards.py --out shards/ --sets ext/country211_valid```
It writes the 16 shards (1.91 GB) and checks every record's sha256 and every shard's md5 and crc32c; `--no-write` checks without writing. This set reads members of the Country211 archive (`country211.tgz`, https://openaipublic.azureedge.net/clip/data/country211.tgz, md5 84988d7644798601126c29e9877aab6a), which the script does not download: download it and extract it into the cache folder (`--cache`, default `openembed_sources/`), e.g. `tar xzf country211.tgz -C openembed_sources/`.
Provenance: the provenance strings of this set name only public sources, so the public rebuild is byte-identical to our training shards (the `*_public` values equal `record_sha256`, `md5` and `crc32c`); we checked that before release.
## Filters
At read time nothing was removed: all 10,550 records were emitted by the training adapter with no flag, none was blocked and none skipped. These are the shards as our converter wrote them, read in place (not rebuilt). Read-time gate: `DatasetBlocklist` (the loader skips the records on the dataset's contamination blocklist).
## Verified
End to end on 2026-11-10:
* Training bytes (internal prefixes): 10,550 / 10,550 records with the recorded sha256; 16 / 16 shards with the md5 and crc32c of the shards our training read.* Public rebuild (this release): 10,550 / 10,550 records and 16 / 16 shards match the `*_public` values.* Image references: 10,550, every one fetched from its source with the recorded sha256 and length (missing 0, mismatched 0).
## Terms
License class `TP`: open annotations; the images are under third-party terms. No licence is stated for the archive; the photos come from YFCC100M (Flickr photos shared under their authors' Creative Commons licences), so each image keeps its own terms.
These records are derived from the source above and follow its terms. They are released for research use; we remove items on request.123version https://git-lfs.github.com/spec/v1oid sha256:f41338d0841f67208dd9fe7ac8881a90abc21c66e88ac1cdfab871952bb7d793size 6863123version https://git-lfs.github.com/spec/v1oid sha256:96dee2f728fc36a7cd5377fa5a89a1cffcccdbecfdb610e8571539d0b6909e5bsize 196392312345678910111213141516171819202122232425262728293031323334353637383940{ "dataset_id": "ext/country211_valid", "folder": "classification/country211-valid", "category": "classification", "kind": "image", "rebuildable": true, "records": 10550, "shards": 16, "image_references": 10550, "bytes_training_shards": 1905576087, "bytes_public_shards": 1905576087, "source_text": "Country211 validation split (OpenAI CLIP; the archive country211.tgz, md5 84988d76...): photos from YFCC100M labelled with the country they were taken in, the label written in the evaluation spelling; each image is the archive member byte for byte.", "terms_text": "No licence is stated for the archive; the photos come from YFCC100M (Flickr photos shared under their authors' Creative Commons licences), so each image keeps its own terms.", "license_class": "TP", "license_class_meaning": "open annotations; the images are under third-party terms", "read_time_gate": { "contamination": "DatasetBlocklist", "dedup_skip_list": false, "in_overlay": false, "overlay_applied": false }, "card_counts_default_policy": { "contamination": 0, "invalid": 0, "invalid_reasons": {}, "invalid_also_on_contamination_list": 0, "merged_duplicates": 0 }, "blocked_at_read": 0, "skipped_at_read": 0, "provenance_public_prefixes": [ "openembed://stage2-data/", "openembed://" ], "in_place": true, "provenance_mapped_records": 0, "pillow": "none", "rebuild_note": "This set reads members of the Country211 archive (`country211.tgz`, https://openaipublic.azureedge.net/clip/data/country211.tgz, md5 84988d7644798601126c29e9877aab6a), which the script does not download: download it and extract it into the cache folder (`--cache`, default `openembed_sources/`), e.g. `tar xzf country211.tgz -C openembed_sources/`.", "problems": {}}123version https://git-lfs.github.com/spec/v1oid sha256:32210a792e21d26a619fb656e23e2d93fb48d6ff26c168e2931949f398998cc3size 41081234567891011121314151617181920212223242526272829303132333435{ "date": "2026-11-10", "train": { "records": 10550, "record_ok": 10550, "record_bad": 0, "image_missing": 0, "image_bad": 0, "shards": 16, "shards_expected": 16, "shards_ok": 16, "ordinals_contiguous": true, "bytes_downloaded": 0, "seconds": 1.0, "bad_examples": [], "pass": true }, "public": { "records": 10550, "record_ok": 10550, "record_bad": 0, "image_missing": 0, "image_bad": 0, "shards": 16, "shards_expected": 16, "shards_ok": 16, "ordinals_contiguous": true, "bytes_downloaded": 0, "seconds": 0.9, "bad_examples": [], "pass": true }, "bytes_downloaded": 0, "pass": true}1234567891011121314151617181920212223242526272829303132333435363738394041424344# geode-country
The training set `ext/geode_country` exactly as the OpenEmbed models were trained on it (both stages), as records without image bytes, with a pointer to each image's pinned public source and the sha256 and length of our training bytes.
* Registry id: `ext/geode_country` (exact case; the folder name is lowercase). Category: classification.* 61,922 records in 169 TFRecord shards (67.96 GB).* Source: GeoDE (Ramaswamy et al. 2023; MLap/GeoDE, revision acbae318): photos of everyday objects labelled with the country they were taken in (Country211 spelling); each image is the image of the named parquet row, byte for byte.
## Files
* `records.parquet`: one row per record, in shard order (`shard`, `ordinal`): every stored field (`record_key`, `dataset_id`, `wemm_type`, `task_subtype`, `modality_sig`, `query_text`, `instruction`, `target_text`, `neg_texts`, `neg_scores`, `pos_score`, `pos_rank`, `graded_score`, `target_key`, `group_key`, `license`), `provenance` (the shard and record of the earlier conversion it came from) and the sha256 and length of the serialized record (`record_sha256`: our training bytes; `record_sha256_public`: with the public provenance). For every image field (`query_image`, `target_image`, `neg_images`): sha256, length and `*_source`, a JSON pointer to the pinned source item (repository, revision, file, row or member, and the transformation our converter applied).* `filters.parquet`: per record what the training loader applied when reading it: `adapter_emitted`, `adapter_flags`, `blocked_at_read`, `dedup_skipped`.* `shards.parquet`: per shard record count, bytes, md5 and crc32c (base64) of our training shard and of the public rebuild.* `set.json`: these facts in machine-readable form.
## Rebuild
From the repository root (`pip install pyarrow huggingface_hub crc32c`; every image is the source's bytes as published, so no re-encoding and no Pillow are needed):
```python tools/openembed_data/rebuild_shards.py --out shards/ --sets ext/geode_country```
It writes the 169 shards (67.96 GB) and checks every record's sha256 and every shard's md5 and crc32c; `--no-write` checks without writing. Image sets download their pinned source files first.
Provenance: the provenance strings of this set name only public sources, so the public rebuild is byte-identical to our training shards (the `*_public` values equal `record_sha256`, `md5` and `crc32c`); we checked that before release.
## Filters
At read time nothing was removed: all 61,922 records were emitted by the training adapter with no flag, none was blocked and none skipped. These are the shards as our converter wrote them, read in place (not rebuilt). Read-time gate: `DatasetBlocklist` (the loader skips the records on the dataset's contamination blocklist).
## Verified
End to end on 2026-11-10:
* Training bytes (internal prefixes): 61,922 / 61,922 records with the recorded sha256; 169 / 169 shards with the md5 and crc32c of the shards our training read.* Public rebuild (this release): 61,922 / 61,922 records and 169 / 169 shards match the `*_public` values.* Image references: 61,922, every one fetched from its source with the recorded sha256 and length (missing 0, mismatched 0).
## Terms
License class `P`: permissive: the publisher's licence allows use and redistribution. CC BY 4.0 per the Hub card.
These records are derived from the source above and follow its terms. They are released for research use; we remove items on request.123version https://git-lfs.github.com/spec/v1oid sha256:cd01fe4c664d896fc0e0cab7b6eba2910544edf9707f7960de9fa03c30151474size 19012123version https://git-lfs.github.com/spec/v1oid sha256:d4a46b0dc7355beffa559d1a0c024bc8e517c7fd1bc7206a0579a1c97ff1500csize 9877738123456789101112131415161718192021222324252627282930313233343536373839{ "dataset_id": "ext/geode_country", "folder": "classification/geode-country", "category": "classification", "kind": "image", "rebuildable": true, "records": 61922, "shards": 169, "image_references": 61922, "bytes_training_shards": 67960120401, "bytes_public_shards": 67960120401, "source_text": "GeoDE (Ramaswamy et al. 2023; MLap/GeoDE, revision acbae318): photos of everyday objects labelled with the country they were taken in (Country211 spelling); each image is the image of the named parquet row, byte for byte.", "terms_text": "CC BY 4.0 per the Hub card.", "license_class": "P", "license_class_meaning": "permissive: the publisher's licence allows use and redistribution", "read_time_gate": { "contamination": "DatasetBlocklist", "dedup_skip_list": false, "in_overlay": false, "overlay_applied": false }, "card_counts_default_policy": { "contamination": 0, "invalid": 0, "invalid_reasons": {}, "invalid_also_on_contamination_list": 0, "merged_duplicates": 0 }, "blocked_at_read": 0, "skipped_at_read": 0, "provenance_public_prefixes": [ "openembed://stage2-data/", "openembed://" ], "in_place": true, "provenance_mapped_records": 0, "pillow": "none", "problems": {}}123version https://git-lfs.github.com/spec/v1oid sha256:bca8a875da9b35254ec4fee59950602a58cd7b1232cf5535c4cdb6f0d34c999bsize 13418123456789101112131415161718192021222324252627282930313233343536373839404142434445{ "date": "2026-11-10", "train": { "records": 61922, "record_ok": 61922, "record_bad": 0, "image_missing": 0, "image_bad": 0, "shards": 169, "shards_expected": 169, "shards_ok": 169, "ordinals_contiguous": true, "bytes_downloaded": 0, "seconds": 1616.4, "prepass": { "tasks": 672, "images": 61922, "reread_factor": 69.96 }, "bad_examples": [], "pass": true }, "public": { "records": 61922, "record_ok": 61922, "record_bad": 0, "image_missing": 0, "image_bad": 0, "shards": 169, "shards_expected": 169, "shards_ok": 169, "ordinals_contiguous": true, "bytes_downloaded": 0, "seconds": 1616.4, "prepass": { "tasks": 672, "images": 61922, "reread_factor": 69.96 }, "bad_examples": [], "pass": true }, "bytes_downloaded": 0, "pass": true}1234567891011121314151617181920212223242526272829303132333435363738394041424344# geode-obj
The training set `ext/geode_obj` exactly as the OpenEmbed models were trained on it (both stages), as records without image bytes, with a pointer to each image's pinned public source and the sha256 and length of our training bytes.
* Registry id: `ext/geode_obj` (exact case; the folder name is lowercase). Category: classification.* 61,925 records in 169 TFRecord shards (67.97 GB).* Source: GeoDE (Ramaswamy et al. 2023; MLap/GeoDE, revision acbae318): photos of everyday objects labelled with the object class (40 classes); each image is the image of the named parquet row, byte for byte.
## Files
* `records.parquet`: one row per record, in shard order (`shard`, `ordinal`): every stored field (`record_key`, `dataset_id`, `wemm_type`, `task_subtype`, `modality_sig`, `query_text`, `instruction`, `target_text`, `neg_texts`, `neg_scores`, `pos_score`, `pos_rank`, `graded_score`, `target_key`, `group_key`, `license`), `provenance` (the shard and record of the earlier conversion it came from) and the sha256 and length of the serialized record (`record_sha256`: our training bytes; `record_sha256_public`: with the public provenance). For every image field (`query_image`, `target_image`, `neg_images`): sha256, length and `*_source`, a JSON pointer to the pinned source item (repository, revision, file, row or member, and the transformation our converter applied).* `filters.parquet`: per record what the training loader applied when reading it: `adapter_emitted`, `adapter_flags`, `blocked_at_read`, `dedup_skipped`.* `shards.parquet`: per shard record count, bytes, md5 and crc32c (base64) of our training shard and of the public rebuild.* `set.json`: these facts in machine-readable form.
## Rebuild
From the repository root (`pip install pyarrow huggingface_hub crc32c`; every image is the source's bytes as published, so no re-encoding and no Pillow are needed):
```python tools/openembed_data/rebuild_shards.py --out shards/ --sets ext/geode_obj```
It writes the 169 shards (67.97 GB) and checks every record's sha256 and every shard's md5 and crc32c; `--no-write` checks without writing. Image sets download their pinned source files first.
Provenance: the provenance strings of this set name only public sources, so the public rebuild is byte-identical to our training shards (the `*_public` values equal `record_sha256`, `md5` and `crc32c`); we checked that before release.
## Filters
At read time nothing was removed: all 61,925 records were emitted by the training adapter with no flag, none was blocked and none skipped. These are the shards as our converter wrote them, read in place (not rebuilt). Read-time gate: `DatasetBlocklist` (the loader skips the records on the dataset's contamination blocklist).
## Verified
End to end on 2026-11-10:
* Training bytes (internal prefixes): 61,925 / 61,925 records with the recorded sha256; 169 / 169 shards with the md5 and crc32c of the shards our training read.* Public rebuild (this release): 61,925 / 61,925 records and 169 / 169 shards match the `*_public` values.* Image references: 61,925, every one fetched from its source with the recorded sha256 and length (missing 0, mismatched 0).
## Terms
License class `P`: permissive: the publisher's licence allows use and redistribution. CC BY 4.0 per the Hub card.
These records are derived from the source above and follow its terms. They are released for research use; we remove items on request.123version https://git-lfs.github.com/spec/v1oid sha256:7b9d20730016d21e8353631fc2122358c324b10f99ad1e955fa99f86d98657fcsize 18962123version https://git-lfs.github.com/spec/v1oid sha256:1f610eb091d44c3236c51ef58fce5f8df4fc08eec5c6fe646a752084596cb061size 9902811123456789101112131415161718192021222324252627282930313233343536373839{ "dataset_id": "ext/geode_obj", "folder": "classification/geode-obj", "category": "classification", "kind": "image", "rebuildable": true, "records": 61925, "shards": 169, "image_references": 61925, "bytes_training_shards": 67969196375, "bytes_public_shards": 67969196375, "source_text": "GeoDE (Ramaswamy et al. 2023; MLap/GeoDE, revision acbae318): photos of everyday objects labelled with the object class (40 classes); each image is the image of the named parquet row, byte for byte.", "terms_text": "CC BY 4.0 per the Hub card.", "license_class": "P", "license_class_meaning": "permissive: the publisher's licence allows use and redistribution", "read_time_gate": { "contamination": "DatasetBlocklist", "dedup_skip_list": false, "in_overlay": false, "overlay_applied": false }, "card_counts_default_policy": { "contamination": 0, "invalid": 0, "invalid_reasons": {}, "invalid_also_on_contamination_list": 0, "merged_duplicates": 0 }, "blocked_at_read": 0, "skipped_at_read": 0, "provenance_public_prefixes": [ "openembed://stage2-data/", "openembed://" ], "in_place": true, "provenance_mapped_records": 0, "pillow": "none", "problems": {}}123version https://git-lfs.github.com/spec/v1oid sha256:215ca9c104b062fa39c763adbbd96f13aa834644f625369aee0b1e0b88742de7size 13413123456789101112131415161718192021222324252627282930313233343536373839404142434445{ "date": "2026-11-10", "train": { "records": 61925, "record_ok": 61925, "record_bad": 0, "image_missing": 0, "image_bad": 0, "shards": 169, "shards_expected": 169, "shards_ok": 169, "ordinals_contiguous": true, "bytes_downloaded": 0, "seconds": 1572.3, "prepass": { "tasks": 672, "images": 61925, "reread_factor": 69.96 }, "bad_examples": [], "pass": true }, "public": { "records": 61925, "record_ok": 61925, "record_bad": 0, "image_missing": 0, "image_bad": 0, "shards": 169, "shards_expected": 169, "shards_ok": 169, "ordinals_contiguous": true, "bytes_downloaded": 0, "seconds": 1572.3, "prepass": { "tasks": 672, "images": 61925, "reread_factor": 69.96 }, "bad_examples": [], "pass": true }, "bytes_downloaded": 0, "pass": true}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144# ImageNet-21k records of the OpenEmbed training data (pilot)
This folder holds the ImageNet-21k part of the OpenEmbed training mixture: 13,016,419classification records (an image, a question, the WordNet label as answer, and names ofsibling WordNet synsets as negatives) that our builder wrote into 3,270 TFRecord shards from[`timm/imagenet-w21-wds`](https://huggingface.co/datasets/timm/imagenet-w21-wds). It has everyfield of every record **except the image bytes**, and for every record the exact image file in`timm/imagenet-w21-wds` at revision `c08bf7ec5384ac07212a1cc1867e93fb78f5cbcc`. With theimages from that repository, `tools/loader.py` writes the 3,270 training shards back byte forbyte. No cleaning, filtering or sampling has to be re-run.
## Files
| File | Content | Size ||---|---|---|| `records/part-00000.parquet` | build hosts 0-3, 1,637,490 records | 240 MB || `records/part-00001.parquet` | build hosts 4-7, 1,631,068 records | 239 MB || `records/part-00002.parquet` | build hosts 8-11, 1,618,226 records | 238 MB || `records/part-00003.parquet` | build hosts 12-15, 1,624,642 records | 238 MB || `records/part-00004.parquet` | build hosts 16-19, 1,618,222 records | 238 MB || `records/part-00005.parquet` | build hosts 20-23, 1,624,643 records | 239 MB || `records/part-00006.parquet` | build hosts 24-27, 1,637,486 records | 240 MB || `records/part-00007.parquet` | build hosts 28-31, 1,624,642 records | 239 MB || `shards.parquet` | per training shard: build host, records, records that reached training, size, CRC32C, MD5 | small || `timm_tars.parquet` | per tar of `timm/imagenet-w21-wds` at the pinned revision: sha256, size, samples | small || `filters/dedup_skip.parquet` | 247,331 records left out as exact duplicates, with the kept copy | small || `filters/contamination_block.parquet` | 162 records left out for matching an evaluation image | small || `timm_unused_samples.parquet` | 134,857 timm samples that became no record, with the reason | small || `tools/loader.py`, `tools/tests/test_loader.py` | rebuild the shards; offline tests | small || `SHA256SUMS.txt` | sha256 of every file in this folder | small |
Rows of `records/` are in shard order (`shard`, then `ordinal`); part k holds the shards ofbuild hosts 4k to 4k+3.
## Record columns
* `shard`, `ordinal`: the training shard and the record's position in it.* `build_host`: the converter process (0-31) that wrote the shard. Host h read timm tars h, h+32, ..., h+2016 in that order.* `timm_tar`, `timm_key`, `timm_sample_index`: the image in `timm/imagenet-w21-wds` (tar file at the pinned revision, webdataset key, position among the tar's samples).* `image_sha256` (raw 32 bytes), `image_len`: the jpg bytes as they are in the timm tar. The builder copied them without re-encoding or resizing.* `image_hash_multi_key`: the same image bytes occur under more than one key in timm (some ImageNet-21k images are filed under several synsets). The record names the key the builder actually read.* `feature_order`, `query_text`, `text`, `neg_text`, `wnid`, `src`, `license`, `cand_jpg`, `teacher_scores`: the stored fields of the record, exactly as written. `query_text` is one of three question templates; `text` is the answer (first WordNet lemma of the synset); `neg_text` holds up to eight names of sibling synsets separated by `\x1f`; `wnid` is the WordNet id; `src` and `license` are constant strings written by the builder; `cand_jpg` is empty; `teacher_scores` holds nine placeholder values (-1.0). `feature_order` is the order in which the features were serialized; it is fixed per build host and needed for the byte-exact rebuild.* `record_sha256`, `record_len`, `record_crc32c_masked`, `frame_offset`: the serialized record and its position in the shard.* `record_content_hash`: blake2b-64 of the serialized record; the filter lists name records by shard, ordinal and this hash.* `training_input_sha256`: digest of the training input that the OpenEmbed training code built from this record, for checking the code release against this data.* `dedup_skip`, `contamination_block`, `reaches_training`: see Filters.
## Filters
The training reader read all 3,270 shards and left out the records on two lists:
* `filters/dedup_skip.parquet`: 247,331 records that repeat an earlier record of this dataset exactly. The first copy is kept; the table names it.* `filters/contamination_block.parquet`: 162 records whose image matched an image of an evaluation benchmark (rule, task and match type are listed).
No record is on both lists; the other 12,768,926 records reached training (`reaches_training`).Every list entry was checked against the content hash of the record at that position. Thecontamination scan also reported 1,204 cross-type image matches that were not removed; they arenot listed here.
At read time the training code also normalises each record: it uses the dataset instructioninstead of the stored question template, keeps the first WordNet lemma of the answer and ofeach negative, and drops duplicate negatives. These steps belong to the training code and arenot applied to the stored fields.
## Getting the images
1. Sign in on Hugging Face and open [`timm/imagenet-w21-wds`](https://huggingface.co/datasets/timm/imagenet-w21-wds). Read the ImageNet Terms of Access shown there and accept them; access is then granted automatically.2. Log in on the machine that will download (`hf auth login`; with an older `huggingface_hub`, `huggingface-cli login`).3. Download the 2,048 tars at revision `c08bf7ec5384ac07212a1cc1867e93fb78f5cbcc` (1,168,224,122,880 bytes; `timm_tars.parquet` lists each tar's sha256 and size), or let the loader stream them (`--hf`).
## Rebuilding the training shards
```pip install pyarrow huggingface_hub crc32cpython tools/tests/test_loader.pypython tools/loader.py check-tars --package . --timm-dir TARS # optionalpython tools/loader.py rebuild --package . --timm-dir TARS --out SHARDS # all 3,270 shardspython tools/loader.py rebuild --package . --hf --out SHARDS --shards part-h000-00000.tfrecord```
`--hosts` selects whole build hosts; host h needs tars h, h+32, ..., h+2016.
## What "exact" means here
The rebuilt shards are the files our training read, byte for byte. The loader checks everyimage against `image_sha256`, every re-serialized record against `record_sha256`, and everyfinished shard against the CRC32C and MD5 in `shards.parquet`. A record whose image ismissing or differs is left out and listed (shard, ordinal, field, pointer, reason) in`rebuild_problems.jsonl`, its shard is written as `<shard>.incomplete`, and the run ends withexit status 1. The text fields are stored as the builder wrote them, before the training code'sread-time normalisation.
## Verified counts
* 3,270 shards with 13,016,419 records (1,084,515,655,282 bytes).* `timm/imagenet-w21-wds` at the pinned revision: 2,048 tars, each matching the sha256 and size of the revision's file pointer; 13,151,276 samples, as listed in the repository's `_info.json`.* Every record maps to its image in its build host's reading order with equal image sha256 and wnid: 13,016,419 of 13,016,419. No record needed another rule and none is unmatched. 2,287,982 records use an image that occurs under several keys.* 134,857 timm samples became no record. All of them are in 21 tars that their build host never wrote (`timm_unused_samples.parquet`); inside the other 2,027 tars every sample became a record.* Re-encoding the stored fields with the original image gives the original record for all 13,016,419 records, and all 3,270 shards rebuild with their original CRC32C and MD5.* Six shards were also rebuilt from images downloaded from `timm/imagenet-w21-wds` (across tar boundaries, at the end of a host's sequence, and with records on both filter lists), with CRC32C and MD5 equal to the originals.
## Terms
* This folder contains no images. The images come from `timm/imagenet-w21-wds`, which grants access under the ImageNet Terms of Access. In short, those terms allow use of the database only for non-commercial research and educational purposes; give no warranty; make the user responsible for their use, including any copies of copyrighted images made from the database, and require indemnifying the ImageNet team, Princeton University, Stanford University and Hugging Face; allow giving access to research associates and colleagues only after they agree to the same terms; allow access to be ended at any time; bind a for-profit employer as well; and are governed by New Jersey law. Read the full text on the dataset page before accepting.* The `license` field of every record reads "ImageNet terms (research use only)", as written by our builder.* The terms for this folder's own content (record fields, mapping and tools) are set at the repository level; they do not change the terms of the images.12345678910111213141516b9921381514d2e997476395d4391650d0fff2117615419666fa48829f58c8da1 README.mdb3e905df722f56911af04d92cbfc89dc59475cbd90bed065bd990f744e2c2c68 filters/contamination_block.parquet326f77a6a1acff522b34e2e4b912956e29f55768a0ac0bde7ac828229dd5046c filters/dedup_skip.parquet811fcbd2e3889c140c536d7218144d76e3ca878fbddbc8042b588dddb2c50f5e records/part-00000.parquet11ec75a49751a7fab6cf25d03913cdb2c3351442d196e1b233fe332a1cdfc81c records/part-00001.parqueta7d93e4a1df8dd097722724378b09c14c193b6a7b2db22442dbdc04a9f69107f records/part-00002.parquet1333b2a4a6b153395c91e99f5d06ad9681b8457b25c9b0aa0685d91bee15b12c records/part-00003.parquete0a672e84a48f98cb93ff604b956d8dfc6131f7c3001bfc3fd8e009b4ef46a76 records/part-00004.parquet382faaf45f82fa1cd359701a3d0e922de79c95879e252256d540e185df4416e1 records/part-00005.parqueta0fc63b6248c43814dbba846261806347ad1f1bca1691c2c2dc81f7c89e8a770 records/part-00006.parquet6e2095b41241ea918303e3eb5ff995427157da1b2a6fc84026a5a9f01aff1354 records/part-00007.parquet692c4d22c845f5f489e1b8f3840a718c07b49943cd8a3f7b0a2b11bafa5eaa9a shards.parquet883f446497d7b8f3109c4a3480940c011c4c7b2e47d9b48cea2b7f2bd1b90a64 timm_tars.parquet6be31a7ce466f78528a351c118088924401db6004739f9332666be2828214a23 timm_unused_samples.parquetf2cf0bde3c78fdecf9e6812b623a62674e2a64d3173ea8393b4e864d48864f75 tools/loader.pye9489e0aa7dbcaa5d9aef69d2de045dcce75aa2ec7f5d9883cadea8082e265f1 tools/tests/test_loader.py123version https://git-lfs.github.com/spec/v1oid sha256:b3e905df722f56911af04d92cbfc89dc59475cbd90bed065bd990f744e2c2c68size 7337123version https://git-lfs.github.com/spec/v1oid sha256:326f77a6a1acff522b34e2e4b912956e29f55768a0ac0bde7ac828229dd5046csize 3417240123version https://git-lfs.github.com/spec/v1oid sha256:811fcbd2e3889c140c536d7218144d76e3ca878fbddbc8042b588dddb2c50f5esize 240278230123version https://git-lfs.github.com/spec/v1oid sha256:11ec75a49751a7fab6cf25d03913cdb2c3351442d196e1b233fe332a1cdfc81csize 239399377123version https://git-lfs.github.com/spec/v1oid sha256:a7d93e4a1df8dd097722724378b09c14c193b6a7b2db22442dbdc04a9f69107fsize 237527738123version https://git-lfs.github.com/spec/v1oid sha256:1333b2a4a6b153395c91e99f5d06ad9681b8457b25c9b0aa0685d91bee15b12csize 238491880123version https://git-lfs.github.com/spec/v1oid sha256:e0a672e84a48f98cb93ff604b956d8dfc6131f7c3001bfc3fd8e009b4ef46a76size 237592334123version https://git-lfs.github.com/spec/v1oid sha256:382faaf45f82fa1cd359701a3d0e922de79c95879e252256d540e185df4416e1size 238509569123version https://git-lfs.github.com/spec/v1oid sha256:a0fc63b6248c43814dbba846261806347ad1f1bca1691c2c2dc81f7c89e8a770size 240399065123version https://git-lfs.github.com/spec/v1oid sha256:6e2095b41241ea918303e3eb5ff995427157da1b2a6fc84026a5a9f01aff1354size 238539425123version https://git-lfs.github.com/spec/v1oid sha256:692c4d22c845f5f489e1b8f3840a718c07b49943cd8a3f7b0a2b11bafa5eaa9asize 111927123version https://git-lfs.github.com/spec/v1oid sha256:883f446497d7b8f3109c4a3480940c011c4c7b2e47d9b48cea2b7f2bd1b90a64size 84275123version https://git-lfs.github.com/spec/v1oid sha256:6be31a7ce466f78528a351c118088924401db6004739f9332666be2828214a23size 6105583123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384#!/usr/bin/env python3"""Rebuild the ImageNet-21k training shards of this package from the timm images.
This folder holds every field of the 13,016,419 training records except the image bytes. Eachrecord names its image in timm/imagenet-w21-wds at revisionc08bf7ec5384ac07212a1cc1867e93fb78f5cbcc (tar file + sample key). This script fetches thoseimages and writes the training shards back, byte for byte:
* every image must have the sha256 stored in the record (``image_sha256``); * every re-serialized record must have the stored ``record_sha256``; * every finished shard must have the CRC32C and MD5 listed in ``shards.parquet``.Any mismatch stops with an error; no record is skipped or changed.
Commands rebuild write shards (all, or --shards / --hosts) to --out iterate print a summary of the records that reached training (filters applied), with their images; use ``iter_training_records`` from Python for the records themselves check-tars sha256 of local timm tars against ``timm_tars.parquet``
Images come from local tars (``--timm-dir``, the files as downloaded from Hugging Face) or arestreamed from Hugging Face (``--hf``; needs ``huggingface_hub`` and a login that has accepted theImageNet terms of access on the timm/imagenet-w21-wds page). Requirements: pyarrow; crc32c orgoogle-crc32c makes CRC32C fast (a pure-Python fallback is used otherwise, very slow).
python tools/loader.py rebuild --package . --timm-dir /data/imagenet-w21-wds --out shards/ python tools/loader.py rebuild --package . --hf --out shards/ --shards part-h000-00000.tfrecord"""from __future__ import annotations
import argparseimport hashlibimport ioimport jsonimport osimport structimport sysimport tarfilefrom collections import defaultdict
TIMM_REPO = "timm/imagenet-w21-wds"TIMM_REVISION = "c08bf7ec5384ac07212a1cc1867e93fb78f5cbcc"BYTES_FEATURES = ("query_text", "text", "neg_text", "wnid", "src", "license")
# --------------------------------------------------------------------------- CRC32Ctry: import crc32c as _c
def crc32c_update(crc: int, data) -> int: return _c.crc32c(data, crc)except ImportError: # pragma: no cover try: import google_crc32c as _g
def crc32c_update(crc: int, data) -> int: return _g.extend(crc, bytes(data)) except ImportError: _T = [] for _i in range(256): _r = _i for _ in range(8): _r = (_r >> 1) ^ 0x82F63B78 if _r & 1 else _r >> 1 _T.append(_r)
def crc32c_update(crc: int, data) -> int: r = crc ^ 0xFFFFFFFF for b in bytes(data): r = _T[(r ^ b) & 0xFF] ^ (r >> 8) return r ^ 0xFFFFFFFF
def masked_crc32c(data) -> int: c = crc32c_update(0, data) return (((c >> 15) | (c << 17)) + 0xA282EAD8) & 0xFFFFFFFF
def frame(payload: bytes) -> bytes: """One TFRecord frame: length, masked CRC of the length, payload, masked CRC of the payload.""" ln = struct.pack("<Q", len(payload)) return ln + struct.pack("<I", masked_crc32c(ln)) + payload + struct.pack("<I", masked_crc32c(payload))
# --------------------------------------------------------------------------- tf.train.Exampledef _varint(n: int) -> bytes: out = bytearray() while True: b = n & 0x7F n >>= 7 if n: out.append(b | 0x80) else: out.append(b) return bytes(out)
def _ld(field: int, payload: bytes) -> bytes: return _varint((field << 3) | 2) + _varint(len(payload)) + payload
def _bytes_feature(values: list[bytes]) -> bytes: return _ld(1, b"".join(_ld(1, v) for v in values)) # Feature.bytes_list
def _float_feature(values: list[float]) -> bytes: body = _ld(1, struct.pack(f"<{len(values)}f", *values)) if values else b"" return _ld(2, body) # Feature.float_list (packed)
def encode_record(row: dict, jpg: bytes) -> bytes: """Serialize one record as tf.train.Example, map entries in the stored feature order.""" entries = [] for name in row["feature_order"].split(","): if name == "jpg": feat = _bytes_feature([jpg]) elif name == "cand_jpg": feat = _bytes_feature([bytes(row["cand_jpg"])]) elif name == "teacher_scores": feat = _float_feature(list(row["teacher_scores"])) elif name in BYTES_FEATURES: feat = _bytes_feature([row[name].encode("utf-8")]) else: raise ValueError(f"unknown feature {name!r}") entries.append(_ld(1, _ld(1, name.encode("utf-8")) + _ld(2, feat))) return _ld(1, b"".join(entries))
# --------------------------------------------------------------------------- package filesdef _pq(): import pyarrow.dataset as ds import pyarrow.parquet as pq return ds, pq
def read_table(package: str, name: str): _, pq = _pq() return pq.read_table(os.path.join(package, name))
def _dataset(package: str): ds, _ = _pq() return ds, ds.dataset(os.path.join(package, "records"), format="parquet")
def shard_rows(package: str, shard: str) -> list[dict]: """All columns of one shard's records, in ordinal order.""" ds, dset = _dataset(package) rows = dset.to_table(filter=ds.field("shard") == shard).to_pylist() rows.sort(key=lambda r: r["ordinal"]) return rows
def image_sources(package: str, shards: list[str]) -> dict[str, dict[str, set[str]]]: """{shard: {tar: {keys}}} from two projected columns only (cheap for many shards).""" ds, dset = _dataset(package) tbl = dset.to_table(columns=["shard", "timm_tar", "timm_key"], filter=ds.field("shard").isin(shards)) out: dict[str, dict[str, set[str]]] = defaultdict(lambda: defaultdict(set)) for s, t, k in zip(*(tbl.column(c).to_pylist() for c in ("shard", "timm_tar", "timm_key"))): out[s][t].add(k) return out
class _TarCache: """Fetch each timm tar once for a group of shards; free it when no later shard needs it."""
def __init__(self, images: "TimmImages", sources: dict[str, dict[str, set[str]]], order: list[str]): self.images, self.sources = images, sources self.need: dict[str, set[str]] = defaultdict(set) self.left: dict[str, int] = defaultdict(int) for s in order: for t, keys in sources.get(s, {}).items(): self.need[t] |= keys self.left[t] += 1 self.cache: dict[str, dict[str, bytes]] = {}
def images_for(self, shard: str) -> dict[tuple[str, str], bytes]: out = {} for t in sorted(self.sources.get(shard, {})): if t not in self.cache: self.cache[t] = self.images.fetch(t, self.need[t]) out.update({(t, k): v for k, v in self.cache[t].items()}) return out
def done(self, shard: str) -> None: for t in self.sources.get(shard, {}): self.left[t] -= 1 if self.left[t] == 0: self.cache.pop(t, None)
# --------------------------------------------------------------------------- timm imagesclass TimmImages: """jpg bytes by (tar, key), from local tars or streamed from the pinned Hugging Face revision."""
def __init__(self, timm_dir: str | None = None, hf: bool = False): if not timm_dir and not hf: raise SystemExit("give --timm-dir or --hf") self.timm_dir, self.hf = timm_dir, hf
def _open(self, tar: str): if self.timm_dir: return open(os.path.join(self.timm_dir, tar), "rb") import urllib.request from huggingface_hub import get_token url = f"https://huggingface.co/datasets/{TIMM_REPO}/resolve/{TIMM_REVISION}/{tar}" req = urllib.request.Request(url) tok = get_token() if tok: req.add_unredirected_header("Authorization", f"Bearer {tok}") return io.BufferedReader(urllib.request.urlopen(req, timeout=300), 8 << 20)
def fetch(self, tar: str, keys: set[str]) -> dict[str, bytes]: """The images of the wanted keys that the tar holds (a key it lacks, or a tar that cannot be read, is reported per record by the caller).""" got: dict[str, bytes] = {} try: with self._open(tar) as f, tarfile.open(fileobj=f, mode="r|") as tf: for m in tf: if not m.isfile(): continue base, _, ext = m.name.rpartition(".") if ext == "jpg" and base in keys: got[base] = tf.extractfile(m).read() except Exception as e: # noqa: BLE001 print(f"{tar}: not read completely ({type(e).__name__}: {str(e)[:200]})", file=sys.stderr, flush=True) return got
# --------------------------------------------------------------------------- rebuilddef _by_host(package: str, shards: list[str]) -> list[list[str]]: meta = {r["shard"]: r for r in read_table(package, "shards.parquet").to_pylist()} groups: dict[int, list[str]] = defaultdict(list) for s in shards: if s not in meta: raise SystemExit(f"{s}: not a shard of this package") groups[meta[s]["build_host"]].append(s) return [sorted(v, key=lambda s: meta[s]["shard_index"]) for _, v in sorted(groups.items())]
def rebuild(package: str, shards: list[str], images: TimmImages, out_dir: str) -> list[dict]: """Rebuild the shards. A record goes into its shard only with its image found and both sha256 equal; every other record is left out and listed in its result's "problems" (shard, ordinal, field, pointer, reason), and its shard is written as <shard>.incomplete (2026-11-12: problems no longer stop the run at the first one).""" meta = {r["shard"]: r for r in read_table(package, "shards.parquet").to_pylist()} os.makedirs(out_dir, exist_ok=True) results = [] for group in _by_host(package, shards): cache = _TarCache(images, image_sources(package, group), group) for shard in group: results.append(_rebuild_one(package, shard, meta[shard], cache, out_dir)) cache.done(shard) return results
def _rebuild_one(package: str, shard: str, meta: dict, cache: "_TarCache", out_dir: str) -> dict: recs = shard_rows(package, shard) problems = []
def problem(ordinal, field, pointer, reason): problems.append({"shard": shard, "ordinal": ordinal, "field": field, "pointer": pointer, "reason": reason}) if not recs: problem(None, "records", None, "no records in this package (is its records/ file present?)") elif len(recs) != meta["records"] or [r["ordinal"] for r in recs] != list(range(len(recs))): problem(None, "records", None, f"{len(recs)} records with gaps or extras; shards.parquet says {meta['records']}") imgs = cache.images_for(shard) if recs else {} md5, crc, ok = hashlib.md5(), 0, 0 path = os.path.join(out_dir, shard) with open(path + ".partial", "wb") as f: for r in recs: ptr = {"tar": r["timm_tar"], "key": r["timm_key"]} jpg = imgs.get((r["timm_tar"], r["timm_key"])) if jpg is None: problem(r["ordinal"], "image", ptr, "not in the timm tar (or the tar could not be read)") continue if hashlib.sha256(jpg).digest() != r["image_sha256"]: problem(r["ordinal"], "image", ptr, "differs from the training image (sha256)") continue payload = encode_record(r, jpg) if hashlib.sha256(payload).digest() != r["record_sha256"]: problem(r["ordinal"], "record", ptr, "the rebuilt record differs from record_sha256") continue fr = frame(payload) f.write(fr) md5.update(fr) crc = crc32c_update(crc, fr) ok += 1 complete = not problems and crc == meta["crc32c"] and md5.hexdigest() == meta["md5"] if not problems and not complete: problem(None, "shard", None, f"shard checksum differs (crc32c {crc}, md5 {md5.hexdigest()})") final = path if complete else path + ".incomplete" os.replace(path + ".partial", final) res = {"shard": shard, "records": len(recs), "written": ok, "crc32c": crc, "md5": md5.hexdigest(), "checksums_equal": complete, "written_as": os.path.basename(final), "problems": problems} print({k: v for k, v in res.items() if k != "problems"} | {"problems": len(problems)}, flush=True) return res
def iter_training_records(package: str, shards: list[str], images: TimmImages, problems: list | None = None): """Yield the records that reached training (filters applied), each with its image bytes. A record whose image is missing or differs is skipped and appended to ``problems``; without that list, the iterator raises at the end (after every good record) when any was skipped.
The text is as stored by the builder. The OpenEmbed training code then applies its read-time normalisation (dataset instruction instead of the stored question template, first WordNet lemma, duplicate negatives dropped); that code is not part of this folder.""" found = problems if problems is not None else [] for group in _by_host(package, shards): cache = _TarCache(images, image_sources(package, group), group) for shard in group: imgs = cache.images_for(shard) for r in shard_rows(package, shard): if not r["reaches_training"]: continue jpg = imgs.get((r["timm_tar"], r["timm_key"])) if jpg is None or hashlib.sha256(jpg).digest() != r["image_sha256"]: found.append({"shard": shard, "ordinal": r["ordinal"], "field": "image", "pointer": {"tar": r["timm_tar"], "key": r["timm_key"]}, "reason": "not in the timm tar" if jpg is None else "differs from the training image (sha256)"}) continue yield {"shard": shard, "ordinal": r["ordinal"], "image": jpg, "question": r["query_text"], "answer": r["text"], "negatives": [t for t in r["neg_text"].split("\x1f") if t], "wnid": r["wnid"]} cache.done(shard) if found and problems is None: raise SystemExit(f"{len(found)} records skipped (image missing or different), e.g. {found[:3]}")
def check_tars(package: str, timm_dir: str) -> int: bad = 0 for r in read_table(package, "timm_tars.parquet").to_pylist(): p = os.path.join(timm_dir, r["tar"]) if not os.path.exists(p): continue h = hashlib.sha256() with open(p, "rb") as f: for chunk in iter(lambda: f.read(8 << 20), b""): h.update(chunk) ok = h.hexdigest() == r["sha256"] bad += not ok print(r["tar"], "ok" if ok else "SHA256 DIFFERS", flush=True) return bad
def main() -> None: ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) ap.add_argument("command", choices=["rebuild", "iterate", "check-tars"]) ap.add_argument("--package", default=".", help="this folder (records/, shards.parquet, ...)") ap.add_argument("--timm-dir", help="folder with the timm .tar files") ap.add_argument("--hf", action="store_true", help="stream the tars from Hugging Face") ap.add_argument("--out", help="output folder for rebuilt shards") ap.add_argument("--shards", default="", help="comma list of shard names") ap.add_argument("--hosts", default="", help="comma list of build hosts (0-31): all their shards") ap.add_argument("--problems", help="JSON lines, one per record that could not be rebuilt (default: " "<out>/rebuild_problems.jsonl, else ./imagenet21k_problems.jsonl)") args = ap.parse_args() if args.command == "check-tars": sys.exit(1 if check_tars(args.package, args.timm_dir) else 0) meta = read_table(args.package, "shards.parquet").to_pylist() if args.shards: shards = [s.strip() for s in args.shards.split(",") if s.strip()] elif args.hosts: hs = {int(h) for h in args.hosts.split(",")} shards = [m["shard"] for m in meta if m["build_host"] in hs] else: shards = [m["shard"] for m in meta] images = TimmImages(args.timm_dir, args.hf) probs = [] if args.command == "rebuild": if not args.out: raise SystemExit("rebuild needs --out") probs = [p for r in rebuild(args.package, shards, images, args.out) for p in r["problems"]] else: n = sum(1 for _ in iter_training_records(args.package, shards, images, probs)) print({"shards": len(shards), "records_reaching_training": n, "skipped": len(probs)}) if probs: path = args.problems or (os.path.join(args.out, "rebuild_problems.jsonl") if args.out else "imagenet21k_problems.jsonl") with open(path, "w") as fh: for p in probs: fh.write(json.dumps(p) + "\n") print(f"INCOMPLETE: {len(probs)} problems listed in {path}" + ("; their shards are written as <shard>.incomplete" if args.command == "rebuild" else ""), flush=True) sys.exit(1)
if __name__ == "__main__": main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146"""Offline tests of tools/loader.py (no network, no ImageNet data).
1. The record encoder reproduces a golden serialization. The golden bytes come from the encoder that re-created all 13,016,419 training records of this package byte for byte from their stored fields, so this pins the published loader to it.2. End to end: a synthetic package (records parquet, shards.parquet, timm_tars.parquet) and a fake timm tar; ``rebuild`` writes the shard and checks every hash; the output equals the reference bytes; a corrupted image is refused; ``iter_training_records`` leaves out records that did not reach training.
python tools/tests/test_loader.py"""from __future__ import annotations
import hashlibimport ioimport jsonimport osimport sysimport tarfileimport tempfile
HERE = os.path.dirname(os.path.abspath(__file__))sys.path.insert(0, os.path.join(HERE, ".."))import loader as L # noqa: E402
ORDER = "query_text,cand_jpg,neg_text,jpg,license,wnid,text,teacher_scores,src"GOLDEN_FRAME = bytes.fromhex( "0a01000000000000a8532f640a87020a2c0a0a71756572795f74657874121e0a1c0a1a576861742069732074686973206120" "70696374757265206f663f0a100a0863616e645f6a706712040a020a000a130a086e65675f7465787412070a050a03611f62" "0a170a036a706712100a0e0a0cffd84a50454744415441ffd90a100a076c6963656e736512050a030a014c0a150a04776e69" "64120d0a0b0a096e30303030303030310a110a047465787412090a070a057468696e670a3a0a0e746561636865725f73636f" "726573122812260a24000080bf000080bf000080bf000080bf000080bf000080bf000080bf000080bf000080bf0a1f0a0373" "726312180a160a14636c6173736966792f696d6167656e657432316b3bdb01b8")
def _row(o, key, jpg, *, question="What is this a picture of?", answer="thing", negs="a\x1fb", wnid="n00000001", reaches=True): r = {"shard": "part-h000-00000.tfrecord", "ordinal": o, "build_host": 0, "timm_tar": "imagenet_w21-train-0000.tar", "timm_key": key, "timm_sample_index": o, "image_sha256": hashlib.sha256(jpg).digest(), "image_len": len(jpg), "image_hash_multi_key": False, "feature_order": ORDER, "query_text": question, "text": answer, "neg_text": negs, "wnid": wnid, "src": "classify/imagenet21k", "license": "L", "cand_jpg": b"", "teacher_scores": [-1.0] * 9, "record_len": 0, "record_crc32c_masked": 0, "frame_offset": 0, "record_content_hash": 0, "training_input_sha256": b"\0" * 32, "dedup_skip": not reaches, "contamination_block": False, "reaches_training": reaches} payload = L.encode_record(r, jpg) r["record_sha256"] = hashlib.sha256(payload).digest() r["record_len"] = len(payload) return r, L.frame(payload)
def test_golden_encoding(): r, fr = _row(0, "k0", b"\xff\xd8JPEGDATA\xff\xd9") assert fr == GOLDEN_FRAME, "encoder differs from the golden serialization"
def _package(tmp, images): import pyarrow as pa import pyarrow.parquet as pq rows, frames = [], [] for o, (key, jpg) in enumerate(images): r, fr = _row(o, key, jpg, reaches=(o != 1)) rows.append(r) frames.append(fr) shard_bytes = b"".join(frames) os.makedirs(os.path.join(tmp, "pkg", "records")) cols = {k: [r[k] for r in rows] for k in rows[0]} schema = pa.schema([ ("shard", pa.string()), ("ordinal", pa.int32()), ("build_host", pa.int16()), ("timm_tar", pa.string()), ("timm_key", pa.string()), ("timm_sample_index", pa.int32()), ("image_sha256", pa.binary(32)), ("image_len", pa.int32()), ("image_hash_multi_key", pa.bool_()), ("feature_order", pa.string()), ("query_text", pa.string()), ("text", pa.string()), ("neg_text", pa.string()), ("wnid", pa.string()), ("src", pa.string()), ("license", pa.string()), ("cand_jpg", pa.binary()), ("teacher_scores", pa.list_(pa.float32())), ("record_len", pa.int32()), ("record_crc32c_masked", pa.uint32()), ("frame_offset", pa.int64()), ("record_content_hash", pa.int64()), ("training_input_sha256", pa.binary(32)), ("dedup_skip", pa.bool_()), ("contamination_block", pa.bool_()), ("reaches_training", pa.bool_()), ("record_sha256", pa.binary(32))]) pq.write_table(pa.table(cols, schema=schema), os.path.join(tmp, "pkg", "records", "part-00000.parquet")) pq.write_table(pa.table({ "shard": ["part-h000-00000.tfrecord"], "build_host": [0], "shard_index": [0], "records": [len(rows)], "records_reaching_training": [len(rows) - 1], "size_bytes": [len(shard_bytes)], "crc32c": pa.array([L.crc32c_update(0, shard_bytes)], pa.uint32()), "md5": [hashlib.md5(shard_bytes).hexdigest()]}), os.path.join(tmp, "pkg", "shards.parquet")) tar_path = os.path.join(tmp, "timm", "imagenet_w21-train-0000.tar") os.makedirs(os.path.dirname(tar_path)) with tarfile.open(tar_path, "w") as tf: for key, jpg in images: for ext, data in (("cls", b"0"), ("jpg", jpg), ("json", json.dumps({"class_name": "n00000001"}).encode())): ti = tarfile.TarInfo(f"{key}.{ext}") ti.size = len(data) tf.addfile(ti, io.BytesIO(data)) pq.write_table(pa.table({"tar": ["imagenet_w21-train-0000.tar"], "revision": [L.TIMM_REVISION], "sha256": [hashlib.sha256(open(tar_path, "rb").read()).hexdigest()], "size_bytes": [os.path.getsize(tar_path)], "samples": [len(images)]}), os.path.join(tmp, "pkg", "timm_tars.parquet")) return shard_bytes, tar_path
def test_end_to_end(): images = [("n00000001_1", b"\xff\xd8one\xff\xd9"), ("n00000001_2", b"\xff\xd8two\xff\xd9"), ("n00000001_3", b"\xff\xd8three\xff\xd9")] with tempfile.TemporaryDirectory() as tmp: shard_bytes, tar_path = _package(tmp, images) pkg, out = os.path.join(tmp, "pkg"), os.path.join(tmp, "out") imgs = L.TimmImages(timm_dir=os.path.dirname(tar_path)) res = L.rebuild(pkg, ["part-h000-00000.tfrecord"], imgs, out) assert res[0]["checksums_equal"] assert open(os.path.join(out, "part-h000-00000.tfrecord"), "rb").read() == shard_bytes assert L.check_tars(pkg, os.path.dirname(tar_path)) == 0 got = list(L.iter_training_records(pkg, ["part-h000-00000.tfrecord"], imgs)) assert [g["ordinal"] for g in got] == [0, 2] and got[1]["image"] == images[2][1] assert got[0]["negatives"] == ["a", "b"] # a corrupted image and a missing one: both records left out and listed, the shard written as .incomplete # (2026-11-12: the loader no longer stops at the first problem) with tarfile.open(tar_path, "w") as tf: for key, jpg in images: if key == "n00000001_3": continue data = jpg if key != "n00000001_2" else jpg + b"x" for ext, d in (("jpg", data), ("json", b"{}")): ti = tarfile.TarInfo(f"{key}.{ext}") ti.size = len(d) tf.addfile(ti, io.BytesIO(d)) out2 = os.path.join(tmp, "out2") res = L.rebuild(pkg, ["part-h000-00000.tfrecord"], imgs, out2) assert not res[0]["checksums_equal"] and res[0]["written_as"] == "part-h000-00000.tfrecord.incomplete" assert not os.path.exists(os.path.join(out2, "part-h000-00000.tfrecord")) assert sorted((p["ordinal"], p["field"]) for p in res[0]["problems"]) == [(1, "image"), (2, "image")] first = shard_bytes[:len(L.frame(L.encode_record(_row(0, images[0][0], images[0][1])[0], images[0][1])))] assert open(os.path.join(out2, "part-h000-00000.tfrecord.incomplete"), "rb").read() == first probs = [] got = list(L.iter_training_records(pkg, ["part-h000-00000.tfrecord"], imgs, probs)) assert [g["ordinal"] for g in got] == [0] and [p["ordinal"] for p in probs] == [2] try: list(L.iter_training_records(pkg, ["part-h000-00000.tfrecord"], imgs)) except SystemExit as e: assert "1 records skipped" in str(e) else: raise AssertionError("a missing image went unreported")
if __name__ == "__main__": test_golden_encoding() test_end_to_end() print("ok")1234567891011121314151617181920212223242526272829303132333435363738394041424344# mmeb-country211
The training set `mmeb/Country211` exactly as the OpenEmbed models were trained on it (both stages), as records without image bytes, with a pointer to each image's pinned public source and the sha256 and length of our training bytes.
* Registry id: `mmeb/Country211` (exact case; the folder name is lowercase). Category: classification.* 31,650 records in 16 TFRecord shards (5.69 GB).* Source: Country211 training split (OpenAI CLIP; the archive country211.tgz, md5 84988d76...): photos from YFCC100M labelled with the country they were taken in, the label written in the evaluation spelling; each image is the archive member byte for byte.
## Files
* `records.parquet`: one row per record, in shard order (`shard`, `ordinal`): every stored field (`record_key`, `dataset_id`, `wemm_type`, `task_subtype`, `modality_sig`, `query_text`, `instruction`, `target_text`, `neg_texts`, `neg_scores`, `pos_score`, `pos_rank`, `graded_score`, `target_key`, `group_key`, `license`), `provenance` (the shard and record of the earlier conversion it came from) and the sha256 and length of the serialized record (`record_sha256`: our training bytes; `record_sha256_public`: with the public provenance). For every image field (`query_image`, `target_image`, `neg_images`): sha256, length and `*_source`, a JSON pointer to the pinned source item (repository, revision, file, row or member, and the transformation our converter applied).* `filters.parquet`: per record what the training loader applied when reading it: `adapter_emitted`, `adapter_flags`, `blocked_at_read`, `dedup_skipped`.* `shards.parquet`: per shard record count, bytes, md5 and crc32c (base64) of our training shard and of the public rebuild.* `set.json`: these facts in machine-readable form.
## Rebuild
From the repository root (`pip install pyarrow huggingface_hub crc32c`; every image is the source's bytes as published, so no re-encoding and no Pillow are needed):
```python tools/openembed_data/rebuild_shards.py --out shards/ --sets mmeb/Country211```
It writes the 16 shards (5.69 GB) and checks every record's sha256 and every shard's md5 and crc32c; `--no-write` checks without writing. This set reads members of the Country211 archive (`country211.tgz`, https://openaipublic.azureedge.net/clip/data/country211.tgz, md5 84988d7644798601126c29e9877aab6a), which the script does not download: download it and extract it into the cache folder (`--cache`, default `openembed_sources/`), e.g. `tar xzf country211.tgz -C openembed_sources/`.
Provenance: the provenance strings of this set name only public sources, so the public rebuild is byte-identical to our training shards (the `*_public` values equal `record_sha256`, `md5` and `crc32c`); we checked that before release.
## Filters
At read time the training adapter emitted 31,649 of 31,650 records (0 with a flag: ); 1 were blocked and 0 skipped (per record in `filters.parquet`). These are the shards as our converter wrote them, read in place (not rebuilt). Read-time gate: `DatasetBlocklist` (the loader skips the records on the dataset's contamination blocklist).
## Verified
End to end on 2026-11-10:
* Training bytes (internal prefixes): 31,650 / 31,650 records with the recorded sha256; 16 / 16 shards with the md5 and crc32c of the shards our training read.* Public rebuild (this release): 31,650 / 31,650 records and 16 / 16 shards match the `*_public` values.* Image references: 31,650, every one fetched from its source with the recorded sha256 and length (missing 0, mismatched 0).
## Terms
License class `TP`: open annotations; the images are under third-party terms. No licence is stated for the archive; the photos come from YFCC100M (Flickr photos shared under their authors' Creative Commons licences), so each image keeps its own terms.
These records are derived from the source above and follow its terms. They are released for research use; we remove items on request.123version https://git-lfs.github.com/spec/v1oid sha256:14cfa36ac5bb6bc2fc8d61d7d6b41dbd34d9a1858f5f45fe0e6f67ade398bbb0size 40377123version https://git-lfs.github.com/spec/v1oid sha256:6a6c6e4755ec90c3ac4bc83bf5a0e68f9aa97072bd5671fdb3a248e762b6db93size 578316112345678910111213141516171819202122232425262728293031323334353637383940{ "dataset_id": "mmeb/Country211", "folder": "classification/mmeb-country211", "category": "classification", "kind": "image", "rebuildable": true, "records": 31650, "shards": 16, "image_references": 31650, "bytes_training_shards": 5685067425, "bytes_public_shards": 5685067425, "source_text": "Country211 training split (OpenAI CLIP; the archive country211.tgz, md5 84988d76...): photos from YFCC100M labelled with the country they were taken in, the label written in the evaluation spelling; each image is the archive member byte for byte.", "terms_text": "No licence is stated for the archive; the photos come from YFCC100M (Flickr photos shared under their authors' Creative Commons licences), so each image keeps its own terms.", "license_class": "TP", "license_class_meaning": "open annotations; the images are under third-party terms", "read_time_gate": { "contamination": "DatasetBlocklist", "dedup_skip_list": false, "in_overlay": true, "overlay_applied": true }, "card_counts_default_policy": { "contamination": 1, "invalid": 0, "invalid_reasons": {}, "invalid_also_on_contamination_list": 0, "merged_duplicates": 0 }, "blocked_at_read": 1, "skipped_at_read": 0, "provenance_public_prefixes": [ "openembed://stage2-data/", "openembed://" ], "in_place": true, "provenance_mapped_records": 0, "pillow": "none", "rebuild_note": "This set reads members of the Country211 archive (`country211.tgz`, https://openaipublic.azureedge.net/clip/data/country211.tgz, md5 84988d7644798601126c29e9877aab6a), which the script does not download: download it and extract it into the cache folder (`--cache`, default `openembed_sources/`), e.g. `tar xzf country211.tgz -C openembed_sources/`.", "problems": {}}123version https://git-lfs.github.com/spec/v1oid sha256:ede53065beacc405d3dbd38ab05d562250b0eada1e08a4fbf1d110b6de4a0397size 40851234567891011121314151617181920212223242526272829303132333435{ "date": "2026-11-10", "train": { "records": 31650, "record_ok": 31650, "record_bad": 0, "image_missing": 0, "image_bad": 0, "shards": 16, "shards_expected": 16, "shards_ok": 16, "ordinals_contiguous": true, "bytes_downloaded": 0, "seconds": 150.3, "bad_examples": [], "pass": true }, "public": { "records": 31650, "record_ok": 31650, "record_bad": 0, "image_missing": 0, "image_bad": 0, "shards": 16, "shards_expected": 16, "shards_ok": 16, "ordinals_contiguous": true, "bytes_downloaded": 0, "seconds": 150.3, "bad_examples": [], "pass": true }, "bytes_downloaded": 0, "pass": true}1234567891011121314151617181920212223242526272829303132333435363738394041424344# mmeb-hatefulmemes
The MMEB-train subset `HatefulMemes` exactly as the OpenEmbed models were trained on it (both stages), as records without image bytes plus the information needed to rebuild the training shards byte for byte.
* Registry id: `mmeb/HatefulMemes` (exact case; the folder name is lowercase). Category: classification.* 8,500 records in 16 TFRecord shards (0.43 GB); 8,500 image references.* Source of the images: TIGER-Lab/MMEB-train at revision `76dd0a440b6d4c02776830a804443fffbb2d0bfa`, `images_zip/HatefulMemes.zip` (0.42 GB); each image is a member of that zip, byte for byte.
## Files
* `records.parquet`: one row per record, in shard order (`shard`, `ordinal`). Every stored field of the record (`record_key`, `dataset_id`, `wemm_type`, `task_subtype`, `modality_sig`, `query_text`, `instruction`, `target_text`, `neg_texts`, `neg_scores`, `pos_score`, `pos_rank`, `graded_score`, `target_key`, `group_key`, `license`) as stored; the provenance as `provenance_source` and `provenance_ordinal` (the shard and record of the July 2026 conversion the record came from) and `mmeb_train_row` (its row in MMEB-train); for every image field (`query_image`, `target_image`, `neg_images`) its sha256, length, zip and member; and the sha256 and length of the serialized record (`record_sha256` for our training bytes, `record_sha256_public` for the bytes with the public provenance prefix, see below).* `filters.parquet`: per record what the training loader applied when it read the record: `adapter_emitted` (the adapter turned it into a training row), `adapter_flags` (fixes or warnings it counted), `blocked_at_read` (contamination block at read time) and `dedup_skipped` (read-time duplicate skip list).* `shards.parquet`: per shard its record count, bytes, md5 and crc32c (base64, as storage listings report them), for our training shard and for the public rebuild.* `set.json`: these facts in machine-readable form.
## Rebuild
From the repository root (Python 3.9+, `pip install pyarrow huggingface_hub crc32c`; anonymous Hub access works):
```python tools/mmeb_train/rebuild_shards.py --out shards/ --sets mmeb/HatefulMemes```
It downloads `images_zip/HatefulMemes.zip`, puts every image back, re-serializes every record (tf.train.Example, the RecordV2 schema of the training code), writes the shards under `shards/` (0.42 GB) and checks every record's sha256 and every shard's md5 and crc32c. `--no-write` checks without writing; `--delete-zips` removes the zip afterwards.
Provenance: each record names the shard of the July 2026 conversion it came from. Our training shards carry our internal storage prefix in that string; the release writes `openembed://july-conversion/` instead, so the rebuilt shards equal our training shards in every other byte and are checked against the `*_public` values. With the internal prefix the rebuild is byte-identical to the training shards (`record_sha256`, `md5`, `crc32c`); we checked that before release.
## Filters
At read time nothing was removed: all 8,500 records were emitted by the training adapter with no flag, none was blocked and none skipped. Removals happened when these shards were built (contamination with the evaluation sets is removed at that point): from 8,500 records of the July conversion, none removed. Read-time gate: `applied_at_build`.
## Verified
End to end on 2026-11-10 (the zip downloaded anonymously from the Hub, 0.42 GB):
* Training bytes (internal prefix): 8,500 / 8,500 records with the recorded sha256; 16 / 16 shards with the md5 and crc32c of the shards our training read.* Public rebuild (this release): 8,500 / 8,500 records and 16 / 16 shards match the `*_public` values.* Image references: 8,500, every one found in the zip with the recorded sha256 and length (missing 0, mismatched 0).
## Terms
License class `NC`: non-commercial or research-only terms, or terms that restrict redistribution. Distributed under Facebook's Hateful Memes dataset license agreement: use for the stated research purpose, no transfer of the dataset to third parties; the images are licensed from Getty Images.
MMEB-train re-hosts this subset; its repository tag does not change the terms of the original dataset. These records are derived from it and follow the same terms. They are released for research use; we remove items on request. The images are not redistributed here: they are fetched from MMEB-train.123version https://git-lfs.github.com/spec/v1oid sha256:0f94ab2dd6e1680e9789c1ec04c3695e38d42d54d219d4738c835ef76051b0a7size 6152123version https://git-lfs.github.com/spec/v1oid sha256:e5d91b86d2825fe639a619508afa7248f77b0dc20e68590765782f0f43cf2d96size 129971312345678910111213141516171819202122232425262728293031323334{ "dataset_id": "mmeb/HatefulMemes", "folder": "classification/mmeb-hatefulmemes", "category": "classification", "records": 8500, "shards": 16, "image_references": 8500, "bytes_training_shards": 425187228, "bytes_public_shards": 424711226, "source": { "repo": "TIGER-Lab/MMEB-train", "revision": "76dd0a440b6d4c02776830a804443fffbb2d0bfa", "config": "HatefulMemes", "images_zip": "images_zip/HatefulMemes.zip", "zip_bytes": 420237691 }, "provenance_public_prefix": "openembed://july-conversion/", "license_class": "NC", "license_class_meaning": "non-commercial or research-only terms, or terms that restrict redistribution", "terms": "Distributed under Facebook's Hateful Memes dataset license agreement: use for the stated research purpose, no transfer of the dataset to third parties; the images are licensed from Getty Images.", "read_time_gate": { "contamination": "applied_at_build", "blocked_at_read": 0, "dedup_skip_list": false }, "build": { "raw_records": 8500, "contamination": 0, "invalid": 0, "invalid_reasons": {}, "merged_duplicates": 0, "invalid_also_on_contamination_list": 0 }}123version https://git-lfs.github.com/spec/v1oid sha256:a2b3fa2133ef711b92d8b4fae77082fc90cb9a9f8388ad9dfb80f818d0e9bf0asize 45081234567891011121314151617181920212223242526272829303132333435363738394041{ "date": "2026-11-10", "train": { "records": 8500, "record_ok": 8500, "record_bad": 0, "image_missing": 0, "image_bad": 0, "shards": 16, "shards_expected": 16, "shards_ok": 16, "ordinals_contiguous": true, "zips": [ "images_zip/HatefulMemes.zip" ], "bytes_downloaded": 420237691, "seconds": 10.2, "bad_examples": [], "pass": true }, "public": { "records": 8500, "record_ok": 8500, "record_bad": 0, "image_missing": 0, "image_bad": 0, "shards": 16, "shards_expected": 16, "shards_ok": 16, "ordinals_contiguous": true, "zips": [ "images_zip/HatefulMemes.zip" ], "bytes_downloaded": 0, "seconds": 0.8, "bad_examples": [], "pass": true }, "bytes_downloaded": 420237691, "pass": true}1234567891011121314151617181920212223242526272829303132333435363738394041424344# mmeb-imagenet-1k
The MMEB-train subset `ImageNet-1K` exactly as the OpenEmbed models were trained on it (both stages), as records without image bytes plus the information needed to rebuild the training shards byte for byte.
* Registry id: `mmeb/ImageNet-1K` (exact case; the folder name is lowercase). Category: classification.* 100,000 records in 16 TFRecord shards (3.99 GB); 100,000 image references.* Source of the images: TIGER-Lab/MMEB-train at revision `76dd0a440b6d4c02776830a804443fffbb2d0bfa`, `images_zip/ImageNet_1K.zip` (3.90 GB); each image is a member of that zip, byte for byte.
## Files
* `records.parquet`: one row per record, in shard order (`shard`, `ordinal`). Every stored field of the record (`record_key`, `dataset_id`, `wemm_type`, `task_subtype`, `modality_sig`, `query_text`, `instruction`, `target_text`, `neg_texts`, `neg_scores`, `pos_score`, `pos_rank`, `graded_score`, `target_key`, `group_key`, `license`) as stored; the provenance as `provenance_source` and `provenance_ordinal` (the shard and record of the July 2026 conversion the record came from) and `mmeb_train_row` (its row in MMEB-train); for every image field (`query_image`, `target_image`, `neg_images`) its sha256, length, zip and member; and the sha256 and length of the serialized record (`record_sha256` for our training bytes, `record_sha256_public` for the bytes with the public provenance prefix, see below).* `filters.parquet`: per record what the training loader applied when it read the record: `adapter_emitted` (the adapter turned it into a training row), `adapter_flags` (fixes or warnings it counted), `blocked_at_read` (contamination block at read time) and `dedup_skipped` (read-time duplicate skip list).* `shards.parquet`: per shard its record count, bytes, md5 and crc32c (base64, as storage listings report them), for our training shard and for the public rebuild.* `set.json`: these facts in machine-readable form.
## Rebuild
From the repository root (Python 3.9+, `pip install pyarrow huggingface_hub crc32c`; anonymous Hub access works):
```python tools/mmeb_train/rebuild_shards.py --out shards/ --sets mmeb/ImageNet-1K```
It downloads `images_zip/ImageNet_1K.zip`, puts every image back, re-serializes every record (tf.train.Example, the RecordV2 schema of the training code), writes the shards under `shards/` (3.98 GB) and checks every record's sha256 and every shard's md5 and crc32c. `--no-write` checks without writing; `--delete-zips` removes the zip afterwards.
Provenance: each record names the shard of the July 2026 conversion it came from. Our training shards carry our internal storage prefix in that string; the release writes `openembed://july-conversion/` instead, so the rebuilt shards equal our training shards in every other byte and are checked against the `*_public` values. With the internal prefix the rebuild is byte-identical to the training shards (`record_sha256`, `md5`, `crc32c`); we checked that before release.
## Filters
At read time nothing was removed: all 100,000 records were emitted by the training adapter with no flag, none was blocked and none skipped. Removals happened when these shards were built (contamination with the evaluation sets is removed at that point): from 100,000 records of the July conversion, none removed. Read-time gate: `applied_at_build`.
## Verified
End to end on 2026-11-10 (the zip downloaded anonymously from the Hub, 3.90 GB):
* Training bytes (internal prefix): 100,000 / 100,000 records with the recorded sha256; 16 / 16 shards with the md5 and crc32c of the shards our training read.* Public rebuild (this release): 100,000 / 100,000 records and 16 / 16 shards match the `*_public` values.* Image references: 100,000, every one found in the zip with the recorded sha256 and length (missing 0, mismatched 0).
## Terms
License class `NC`: non-commercial or research-only terms, or terms that restrict redistribution. ImageNet terms of access: non-commercial research and educational use; access may be shared only with colleagues who first accept the same terms; ImageNet does not own the images.
MMEB-train re-hosts this subset; its repository tag does not change the terms of the original dataset. These records are derived from it and follow the same terms. They are released for research use; we remove items on request. The images are not redistributed here: they are fetched from MMEB-train..gitattributesAdded+64
README.mdAdded+642
classification/country211-valid/README.mdAdded+44
classification/country211-valid/filters.parquetAdded+3
classification/country211-valid/records.parquetAdded+3
classification/country211-valid/set.jsonAdded+40
classification/country211-valid/shards.parquetAdded+3
classification/country211-valid/verification.jsonAdded+35
classification/geode-country/README.mdAdded+44
classification/geode-country/filters.parquetAdded+3
classification/geode-country/records.parquetAdded+3
classification/geode-country/set.jsonAdded+39
classification/geode-country/shards.parquetAdded+3
classification/geode-country/verification.jsonAdded+45
classification/geode-obj/README.mdAdded+44
classification/geode-obj/filters.parquetAdded+3
classification/geode-obj/records.parquetAdded+3
classification/geode-obj/set.jsonAdded+39
classification/geode-obj/shards.parquetAdded+3
classification/geode-obj/verification.jsonAdded+45
classification/imagenet-21k/README.mdAdded+144
classification/imagenet-21k/SHA256SUMS.txtAdded+16
classification/imagenet-21k/filters/contamination_block.parquetAdded+3
classification/imagenet-21k/filters/dedup_skip.parquetAdded+3
classification/imagenet-21k/records/part-00000.parquetAdded+3
classification/imagenet-21k/records/part-00001.parquetAdded+3
classification/imagenet-21k/records/part-00002.parquetAdded+3
classification/imagenet-21k/records/part-00003.parquetAdded+3
classification/imagenet-21k/records/part-00004.parquetAdded+3
classification/imagenet-21k/records/part-00005.parquetAdded+3
classification/imagenet-21k/records/part-00006.parquetAdded+3
classification/imagenet-21k/records/part-00007.parquetAdded+3
classification/imagenet-21k/shards.parquetAdded+3
classification/imagenet-21k/timm_tars.parquetAdded+3
classification/imagenet-21k/timm_unused_samples.parquetAdded+3
classification/imagenet-21k/tools/loader.pyAdded+384
classification/imagenet-21k/tools/tests/test_loader.pyAdded+146
classification/mmeb-country211/README.mdAdded+44
classification/mmeb-country211/filters.parquetAdded+3
classification/mmeb-country211/records.parquetAdded+3
classification/mmeb-country211/set.jsonAdded+40
classification/mmeb-country211/shards.parquetAdded+3
classification/mmeb-country211/verification.jsonAdded+35
classification/mmeb-hatefulmemes/README.mdAdded+44
classification/mmeb-hatefulmemes/filters.parquetAdded+3
classification/mmeb-hatefulmemes/records.parquetAdded+3
classification/mmeb-hatefulmemes/set.jsonAdded+34
classification/mmeb-hatefulmemes/shards.parquetAdded+3
classification/mmeb-hatefulmemes/verification.jsonAdded+41
classification/mmeb-imagenet-1k/README.mdAdded+44