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
- .gitattributes +64 -0
- README.md +642 -0
- classification/country211-valid/README.md +44 -0
- classification/country211-valid/filters.parquet +3 -0
- classification/country211-valid/records.parquet +3 -0
- classification/country211-valid/set.json +40 -0
- classification/country211-valid/shards.parquet +3 -0
- classification/country211-valid/verification.json +35 -0
- classification/geode-country/README.md +44 -0
- classification/geode-country/filters.parquet +3 -0
- classification/geode-country/records.parquet +3 -0
- classification/geode-country/set.json +39 -0
- classification/geode-country/shards.parquet +3 -0
- classification/geode-country/verification.json +45 -0
- classification/geode-obj/README.md +44 -0
- classification/geode-obj/filters.parquet +3 -0
- classification/geode-obj/records.parquet +3 -0
- classification/geode-obj/set.json +39 -0
- classification/geode-obj/shards.parquet +3 -0
- classification/geode-obj/verification.json +45 -0
- classification/imagenet-21k/README.md +144 -0
- classification/imagenet-21k/SHA256SUMS.txt +16 -0
- classification/imagenet-21k/filters/contamination_block.parquet +3 -0
- classification/imagenet-21k/filters/dedup_skip.parquet +3 -0
- classification/imagenet-21k/records/part-00000.parquet +3 -0
- classification/imagenet-21k/records/part-00001.parquet +3 -0
- classification/imagenet-21k/records/part-00002.parquet +3 -0
- classification/imagenet-21k/records/part-00003.parquet +3 -0
- classification/imagenet-21k/records/part-00004.parquet +3 -0
- classification/imagenet-21k/records/part-00005.parquet +3 -0
- classification/imagenet-21k/records/part-00006.parquet +3 -0
- classification/imagenet-21k/records/part-00007.parquet +3 -0
- classification/imagenet-21k/shards.parquet +3 -0
- classification/imagenet-21k/timm_tars.parquet +3 -0
- classification/imagenet-21k/timm_unused_samples.parquet +3 -0
- classification/imagenet-21k/tools/loader.py +384 -0
- classification/imagenet-21k/tools/tests/test_loader.py +146 -0
- classification/mmeb-country211/README.md +44 -0
- classification/mmeb-country211/filters.parquet +3 -0
- classification/mmeb-country211/records.parquet +3 -0
- classification/mmeb-country211/set.json +40 -0
- classification/mmeb-country211/shards.parquet +3 -0
- classification/mmeb-country211/verification.json +35 -0
- classification/mmeb-hatefulmemes/README.md +44 -0
- classification/mmeb-hatefulmemes/filters.parquet +3 -0
- classification/mmeb-hatefulmemes/records.parquet +3 -0
- classification/mmeb-hatefulmemes/set.json +34 -0
- classification/mmeb-hatefulmemes/shards.parquet +3 -0
- classification/mmeb-hatefulmemes/verification.json +41 -0
- classification/mmeb-imagenet-1k/README.md +44 -0
.gitattributes
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
training/tree/v2data/mined/mmeb/ChartQA/sidecar.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
training/tree/v2data/mined/mmeb/DocVQA/sidecar.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
training/tree/v2data/mined/mmeb/InfographicsVQA/sidecar.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
training/tree/v2data/mined/mmeb/TextVQA/sidecar.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,642 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
pretty_name: OpenEmbed training data (private pilot)
|
| 4 |
+
configs:
|
| 5 |
+
- config_name: country211-valid
|
| 6 |
+
data_files:
|
| 7 |
+
- split: train
|
| 8 |
+
path: classification/country211-valid/records.parquet
|
| 9 |
+
- config_name: geode-country
|
| 10 |
+
data_files:
|
| 11 |
+
- split: train
|
| 12 |
+
path: classification/geode-country/records.parquet
|
| 13 |
+
- config_name: geode-obj
|
| 14 |
+
data_files:
|
| 15 |
+
- split: train
|
| 16 |
+
path: classification/geode-obj/records.parquet
|
| 17 |
+
- config_name: imagenet-21k
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path: classification/imagenet-21k/records/*.parquet
|
| 21 |
+
- config_name: mmeb-country211
|
| 22 |
+
data_files:
|
| 23 |
+
- split: train
|
| 24 |
+
path: classification/mmeb-country211/records.parquet
|
| 25 |
+
- config_name: mmeb-hatefulmemes
|
| 26 |
+
data_files:
|
| 27 |
+
- split: train
|
| 28 |
+
path: classification/mmeb-hatefulmemes/records.parquet
|
| 29 |
+
- config_name: mmeb-imagenet-1k
|
| 30 |
+
data_files:
|
| 31 |
+
- split: train
|
| 32 |
+
path: classification/mmeb-imagenet-1k/records.parquet
|
| 33 |
+
- config_name: mmeb-n24news
|
| 34 |
+
data_files:
|
| 35 |
+
- split: train
|
| 36 |
+
path: classification/mmeb-n24news/records.parquet
|
| 37 |
+
- config_name: mmeb-sun397
|
| 38 |
+
data_files:
|
| 39 |
+
- split: train
|
| 40 |
+
path: classification/mmeb-sun397/records.parquet
|
| 41 |
+
- config_name: mmeb-voc2007
|
| 42 |
+
data_files:
|
| 43 |
+
- split: train
|
| 44 |
+
path: classification/mmeb-voc2007/records.parquet
|
| 45 |
+
- config_name: osv5m-country
|
| 46 |
+
data_files:
|
| 47 |
+
- split: train
|
| 48 |
+
path: classification/osv5m-country/records.parquet
|
| 49 |
+
- config_name: places365
|
| 50 |
+
data_files:
|
| 51 |
+
- split: train
|
| 52 |
+
path: classification/places365/records.parquet
|
| 53 |
+
- config_name: uco3d-full
|
| 54 |
+
data_files:
|
| 55 |
+
- split: train
|
| 56 |
+
path: classification/uco3d-full/records.parquet
|
| 57 |
+
- config_name: colpali-arxivqa-hn
|
| 58 |
+
data_files:
|
| 59 |
+
- split: train
|
| 60 |
+
path: documents/colpali-arxivqa-hn/records.parquet
|
| 61 |
+
- config_name: colpali-docvqa
|
| 62 |
+
data_files:
|
| 63 |
+
- split: train
|
| 64 |
+
path: documents/colpali-docvqa/records.parquet
|
| 65 |
+
- config_name: colpali-infovqa
|
| 66 |
+
data_files:
|
| 67 |
+
- split: train
|
| 68 |
+
path: documents/colpali-infovqa/records.parquet
|
| 69 |
+
- config_name: colpali-pdf-hn
|
| 70 |
+
data_files:
|
| 71 |
+
- split: train
|
| 72 |
+
path: documents/colpali-pdf-hn/records.parquet
|
| 73 |
+
- config_name: colpali-tatdqa
|
| 74 |
+
data_files:
|
| 75 |
+
- split: train
|
| 76 |
+
path: documents/colpali-tatdqa/records.parquet
|
| 77 |
+
- config_name: colpali-train
|
| 78 |
+
data_files:
|
| 79 |
+
- split: train
|
| 80 |
+
path: documents/colpali-train/records.parquet
|
| 81 |
+
- config_name: docbank-pages
|
| 82 |
+
data_files:
|
| 83 |
+
- split: train
|
| 84 |
+
path: documents/docbank-pages/records.parquet
|
| 85 |
+
- config_name: docbank-spans
|
| 86 |
+
data_files:
|
| 87 |
+
- split: train
|
| 88 |
+
path: documents/docbank-spans/records.parquet
|
| 89 |
+
- config_name: docmatix-ir-hn
|
| 90 |
+
data_files:
|
| 91 |
+
- split: train
|
| 92 |
+
path: documents/docmatix-ir-hn/records.parquet
|
| 93 |
+
- config_name: docvqa-q2page
|
| 94 |
+
data_files:
|
| 95 |
+
- split: train
|
| 96 |
+
path: documents/docvqa-q2page/records.parquet
|
| 97 |
+
- config_name: infoseek
|
| 98 |
+
data_files:
|
| 99 |
+
- split: train
|
| 100 |
+
path: documents/infoseek/records.parquet
|
| 101 |
+
- config_name: infoseek-text
|
| 102 |
+
data_files:
|
| 103 |
+
- split: train
|
| 104 |
+
path: documents/infoseek-text/records.parquet
|
| 105 |
+
- config_name: mmeb-edis
|
| 106 |
+
data_files:
|
| 107 |
+
- split: train
|
| 108 |
+
path: documents/mmeb-edis/records.parquet
|
| 109 |
+
- config_name: mmeb-oven
|
| 110 |
+
data_files:
|
| 111 |
+
- split: train
|
| 112 |
+
path: documents/mmeb-oven/records.parquet
|
| 113 |
+
- config_name: mmeb-webqa
|
| 114 |
+
data_files:
|
| 115 |
+
- split: train
|
| 116 |
+
path: documents/mmeb-webqa/records.parquet
|
| 117 |
+
- config_name: mmeb-wiki-ss-nq
|
| 118 |
+
data_files:
|
| 119 |
+
- split: train
|
| 120 |
+
path: documents/mmeb-wiki-ss-nq/records.parquet
|
| 121 |
+
- config_name: oven-text
|
| 122 |
+
data_files:
|
| 123 |
+
- split: train
|
| 124 |
+
path: documents/oven-text/records.parquet
|
| 125 |
+
- config_name: vdr-de-hn
|
| 126 |
+
data_files:
|
| 127 |
+
- split: train
|
| 128 |
+
path: documents/vdr-de-hn/records.parquet
|
| 129 |
+
- config_name: vdr-en-hn
|
| 130 |
+
data_files:
|
| 131 |
+
- split: train
|
| 132 |
+
path: documents/vdr-en-hn/records.parquet
|
| 133 |
+
- config_name: vdr-es-hn
|
| 134 |
+
data_files:
|
| 135 |
+
- split: train
|
| 136 |
+
path: documents/vdr-es-hn/records.parquet
|
| 137 |
+
- config_name: vdr-fr-hn
|
| 138 |
+
data_files:
|
| 139 |
+
- split: train
|
| 140 |
+
path: documents/vdr-fr-hn/records.parquet
|
| 141 |
+
- config_name: vdr-it-hn
|
| 142 |
+
data_files:
|
| 143 |
+
- split: train
|
| 144 |
+
path: documents/vdr-it-hn/records.parquet
|
| 145 |
+
- config_name: visrag-arxivqa
|
| 146 |
+
data_files:
|
| 147 |
+
- split: train
|
| 148 |
+
path: documents/visrag-arxivqa/records.parquet
|
| 149 |
+
- config_name: visrag-chartqa
|
| 150 |
+
data_files:
|
| 151 |
+
- split: train
|
| 152 |
+
path: documents/visrag-chartqa/records.parquet
|
| 153 |
+
- config_name: visrag-infovqa
|
| 154 |
+
data_files:
|
| 155 |
+
- split: train
|
| 156 |
+
path: documents/visrag-infovqa/records.parquet
|
| 157 |
+
- config_name: visrag-mpdocvqa
|
| 158 |
+
data_files:
|
| 159 |
+
- split: train
|
| 160 |
+
path: documents/visrag-mpdocvqa/records.parquet
|
| 161 |
+
- config_name: visrag-plotqa
|
| 162 |
+
data_files:
|
| 163 |
+
- split: train
|
| 164 |
+
path: documents/visrag-plotqa/records.parquet
|
| 165 |
+
- config_name: visrag-slidevqa
|
| 166 |
+
data_files:
|
| 167 |
+
- split: train
|
| 168 |
+
path: documents/visrag-slidevqa/records.parquet
|
| 169 |
+
- config_name: anyedit
|
| 170 |
+
data_files:
|
| 171 |
+
- split: train
|
| 172 |
+
path: editing/anyedit/records.parquet
|
| 173 |
+
- config_name: aurora
|
| 174 |
+
data_files:
|
| 175 |
+
- split: train
|
| 176 |
+
path: editing/aurora/records.parquet
|
| 177 |
+
- config_name: crispedit
|
| 178 |
+
data_files:
|
| 179 |
+
- split: train
|
| 180 |
+
path: editing/crispedit/records.parquet
|
| 181 |
+
- config_name: gptimageedit-hqedit
|
| 182 |
+
data_files:
|
| 183 |
+
- split: train
|
| 184 |
+
path: editing/gptimageedit-hqedit/records.parquet
|
| 185 |
+
- config_name: gptimageedit-omniedit
|
| 186 |
+
data_files:
|
| 187 |
+
- split: train
|
| 188 |
+
path: editing/gptimageedit-omniedit/records.parquet
|
| 189 |
+
- config_name: gptimageedit-ultraedit
|
| 190 |
+
data_files:
|
| 191 |
+
- split: train
|
| 192 |
+
path: editing/gptimageedit-ultraedit/records.parquet
|
| 193 |
+
- config_name: hqedit
|
| 194 |
+
data_files:
|
| 195 |
+
- split: train
|
| 196 |
+
path: editing/hqedit/records.parquet
|
| 197 |
+
- config_name: humanedit
|
| 198 |
+
data_files:
|
| 199 |
+
- split: train
|
| 200 |
+
path: editing/humanedit/records.parquet
|
| 201 |
+
- config_name: imgedit
|
| 202 |
+
data_files:
|
| 203 |
+
- split: train
|
| 204 |
+
path: editing/imgedit/records.parquet
|
| 205 |
+
- config_name: ip2p
|
| 206 |
+
data_files:
|
| 207 |
+
- split: train
|
| 208 |
+
path: editing/ip2p/records.parquet
|
| 209 |
+
- config_name: magicbrush
|
| 210 |
+
data_files:
|
| 211 |
+
- split: train
|
| 212 |
+
path: editing/magicbrush/records.parquet
|
| 213 |
+
- config_name: mmeb-cirr
|
| 214 |
+
data_files:
|
| 215 |
+
- split: train
|
| 216 |
+
path: editing/mmeb-cirr/records.parquet
|
| 217 |
+
- config_name: mmeb-fashioniq
|
| 218 |
+
data_files:
|
| 219 |
+
- split: train
|
| 220 |
+
path: editing/mmeb-fashioniq/records.parquet
|
| 221 |
+
- config_name: mmeb-nights
|
| 222 |
+
data_files:
|
| 223 |
+
- split: train
|
| 224 |
+
path: editing/mmeb-nights/records.parquet
|
| 225 |
+
- config_name: nein
|
| 226 |
+
data_files:
|
| 227 |
+
- split: train
|
| 228 |
+
path: editing/nein/records.parquet
|
| 229 |
+
- config_name: nhredit
|
| 230 |
+
data_files:
|
| 231 |
+
- split: train
|
| 232 |
+
path: editing/nhredit/records.parquet
|
| 233 |
+
- config_name: nhredit2
|
| 234 |
+
data_files:
|
| 235 |
+
- split: train
|
| 236 |
+
path: editing/nhredit2/records.parquet
|
| 237 |
+
- config_name: omniedit
|
| 238 |
+
data_files:
|
| 239 |
+
- split: train
|
| 240 |
+
path: editing/omniedit/records.parquet
|
| 241 |
+
- config_name: pica
|
| 242 |
+
data_files:
|
| 243 |
+
- split: train
|
| 244 |
+
path: editing/pica/records.parquet
|
| 245 |
+
- config_name: picobanana
|
| 246 |
+
data_files:
|
| 247 |
+
- split: train
|
| 248 |
+
path: editing/picobanana/records.parquet
|
| 249 |
+
- config_name: pipe
|
| 250 |
+
data_files:
|
| 251 |
+
- split: train
|
| 252 |
+
path: editing/pipe/records.parquet
|
| 253 |
+
- config_name: refedit
|
| 254 |
+
data_files:
|
| 255 |
+
- split: train
|
| 256 |
+
path: editing/refedit/records.parquet
|
| 257 |
+
- config_name: scaleedit
|
| 258 |
+
data_files:
|
| 259 |
+
- split: train
|
| 260 |
+
path: editing/scaleedit/records.parquet
|
| 261 |
+
- config_name: seededit
|
| 262 |
+
data_files:
|
| 263 |
+
- split: train
|
| 264 |
+
path: editing/seededit/records.parquet
|
| 265 |
+
- config_name: ultraedit-v2
|
| 266 |
+
data_files:
|
| 267 |
+
- split: train
|
| 268 |
+
path: editing/ultraedit-v2/records.parquet
|
| 269 |
+
- config_name: unicedit
|
| 270 |
+
data_files:
|
| 271 |
+
- split: train
|
| 272 |
+
path: editing/unicedit/records.parquet
|
| 273 |
+
- config_name: weave
|
| 274 |
+
data_files:
|
| 275 |
+
- split: train
|
| 276 |
+
path: editing/weave/records.parquet
|
| 277 |
+
- config_name: mmeb-mscoco-grd
|
| 278 |
+
data_files:
|
| 279 |
+
- split: train
|
| 280 |
+
path: grounding/mmeb-mscoco-grd/records.parquet
|
| 281 |
+
- config_name: mmeb-visual7w-pointing
|
| 282 |
+
data_files:
|
| 283 |
+
- split: train
|
| 284 |
+
path: grounding/mmeb-visual7w-pointing/records.parquet
|
| 285 |
+
- config_name: mmeb-mscoco-i2t
|
| 286 |
+
data_files:
|
| 287 |
+
- split: train
|
| 288 |
+
path: image_text/mmeb-mscoco-i2t/records.parquet
|
| 289 |
+
- config_name: mmeb-mscoco-t2i
|
| 290 |
+
data_files:
|
| 291 |
+
- split: train
|
| 292 |
+
path: image_text/mmeb-mscoco-t2i/records.parquet
|
| 293 |
+
- config_name: mmeb-visdial
|
| 294 |
+
data_files:
|
| 295 |
+
- split: train
|
| 296 |
+
path: image_text/mmeb-visdial/records.parquet
|
| 297 |
+
- config_name: mmeb-visualnews-i2t
|
| 298 |
+
data_files:
|
| 299 |
+
- split: train
|
| 300 |
+
path: image_text/mmeb-visualnews-i2t/records.parquet
|
| 301 |
+
- config_name: mmeb-visualnews-t2i
|
| 302 |
+
data_files:
|
| 303 |
+
- split: train
|
| 304 |
+
path: image_text/mmeb-visualnews-t2i/records.parquet
|
| 305 |
+
- config_name: visualnews-i2t
|
| 306 |
+
data_files:
|
| 307 |
+
- split: train
|
| 308 |
+
path: image_text/visualnews-i2t/records.parquet
|
| 309 |
+
- config_name: visualnews-t2i
|
| 310 |
+
data_files:
|
| 311 |
+
- split: train
|
| 312 |
+
path: image_text/visualnews-t2i/records.parquet
|
| 313 |
+
- config_name: allnli
|
| 314 |
+
data_files:
|
| 315 |
+
- split: train
|
| 316 |
+
path: text/allnli/records.parquet
|
| 317 |
+
- config_name: fever
|
| 318 |
+
data_files:
|
| 319 |
+
- split: train
|
| 320 |
+
path: text/fever/records.parquet
|
| 321 |
+
- config_name: gooaq
|
| 322 |
+
data_files:
|
| 323 |
+
- split: train
|
| 324 |
+
path: text/gooaq/records.parquet
|
| 325 |
+
- config_name: hotpotqa
|
| 326 |
+
data_files:
|
| 327 |
+
- split: train
|
| 328 |
+
path: text/hotpotqa/records.parquet
|
| 329 |
+
- config_name: msmarco-passage
|
| 330 |
+
data_files:
|
| 331 |
+
- split: train
|
| 332 |
+
path: text/msmarco-passage/records.parquet
|
| 333 |
+
- config_name: msmarco-v21
|
| 334 |
+
data_files:
|
| 335 |
+
- split: train
|
| 336 |
+
path: text/msmarco-v21/records.parquet
|
| 337 |
+
- config_name: nq
|
| 338 |
+
data_files:
|
| 339 |
+
- split: train
|
| 340 |
+
path: text/nq/records.parquet
|
| 341 |
+
- config_name: paq
|
| 342 |
+
data_files:
|
| 343 |
+
- split: train
|
| 344 |
+
path: text/paq/records.parquet
|
| 345 |
+
- config_name: quora-dup
|
| 346 |
+
data_files:
|
| 347 |
+
- split: train
|
| 348 |
+
path: text/quora-dup/records.parquet
|
| 349 |
+
- config_name: trivia-qa
|
| 350 |
+
data_files:
|
| 351 |
+
- split: train
|
| 352 |
+
path: text/trivia-qa/records.parquet
|
| 353 |
+
- config_name: cauldron-dvqa
|
| 354 |
+
data_files:
|
| 355 |
+
- split: train
|
| 356 |
+
path: vqa/cauldron-dvqa/records.parquet
|
| 357 |
+
- config_name: cauldron-st-vqa
|
| 358 |
+
data_files:
|
| 359 |
+
- split: train
|
| 360 |
+
path: vqa/cauldron-st-vqa/records.parquet
|
| 361 |
+
- config_name: cauldron-vqav2
|
| 362 |
+
data_files:
|
| 363 |
+
- split: train
|
| 364 |
+
path: vqa/cauldron-vqav2/records.parquet
|
| 365 |
+
- config_name: docmatix
|
| 366 |
+
data_files:
|
| 367 |
+
- split: train
|
| 368 |
+
path: vqa/docmatix/records.parquet
|
| 369 |
+
- config_name: lov-ai2d
|
| 370 |
+
data_files:
|
| 371 |
+
- split: train
|
| 372 |
+
path: vqa/lov-ai2d/records.parquet
|
| 373 |
+
- config_name: lov-tqa
|
| 374 |
+
data_files:
|
| 375 |
+
- split: train
|
| 376 |
+
path: vqa/lov-tqa/records.parquet
|
| 377 |
+
- config_name: mapqa
|
| 378 |
+
data_files:
|
| 379 |
+
- split: train
|
| 380 |
+
path: vqa/mapqa/records.parquet
|
| 381 |
+
- config_name: mmeb-a-okvqa
|
| 382 |
+
data_files:
|
| 383 |
+
- split: train
|
| 384 |
+
path: vqa/mmeb-a-okvqa/records.parquet
|
| 385 |
+
- config_name: mmeb-chartqa
|
| 386 |
+
data_files:
|
| 387 |
+
- split: train
|
| 388 |
+
path: vqa/mmeb-chartqa/records.parquet
|
| 389 |
+
- config_name: mmeb-docvqa
|
| 390 |
+
data_files:
|
| 391 |
+
- split: train
|
| 392 |
+
path: vqa/mmeb-docvqa/records.parquet
|
| 393 |
+
- config_name: mmeb-gqa
|
| 394 |
+
data_files:
|
| 395 |
+
- split: train
|
| 396 |
+
path: vqa/mmeb-gqa/records.parquet
|
| 397 |
+
- config_name: mmeb-infographicsvqa
|
| 398 |
+
data_files:
|
| 399 |
+
- split: train
|
| 400 |
+
path: vqa/mmeb-infographicsvqa/records.parquet
|
| 401 |
+
- config_name: mmeb-ok-vqa
|
| 402 |
+
data_files:
|
| 403 |
+
- split: train
|
| 404 |
+
path: vqa/mmeb-ok-vqa/records.parquet
|
| 405 |
+
- config_name: mmeb-scienceqa
|
| 406 |
+
data_files:
|
| 407 |
+
- split: train
|
| 408 |
+
path: vqa/mmeb-scienceqa/records.parquet
|
| 409 |
+
- config_name: mmeb-textvqa
|
| 410 |
+
data_files:
|
| 411 |
+
- split: train
|
| 412 |
+
path: vqa/mmeb-textvqa/records.parquet
|
| 413 |
+
- config_name: mmeb-visual7w
|
| 414 |
+
data_files:
|
| 415 |
+
- split: train
|
| 416 |
+
path: vqa/mmeb-visual7w/records.parquet
|
| 417 |
+
- config_name: mmeb-vizwiz
|
| 418 |
+
data_files:
|
| 419 |
+
- split: train
|
| 420 |
+
path: vqa/mmeb-vizwiz/records.parquet
|
| 421 |
+
---
|
| 422 |
+
|
| 423 |
+
# OpenEmbed training data — private pilot
|
| 424 |
+
|
| 425 |
+
Status: private pilot for preparing the data release. Not for distribution. Datasets are added one at a time.
|
| 426 |
+
|
| 427 |
+
## How the data are released
|
| 428 |
+
|
| 429 |
+
Like Recap-DataComp-1B, each dataset ships its training records without image bytes: the text fields (queries,
|
| 430 |
+
targets, instructions, labels, negatives), the pairing, the filter lists, a pointer to each image in its original
|
| 431 |
+
source at a pinned revision, and the sha256 of the image bytes used in training. A loader fetches the images from the
|
| 432 |
+
original source and rebuilds the training records. Each dataset's README states which case applies:
|
| 433 |
+
|
| 434 |
+
- exact: the rebuilt records are byte-identical to the training records (checked by sha256);
|
| 435 |
+
- approximate: the source image is the same picture, but our training copy was re-encoded or resized, so the rebuilt
|
| 436 |
+
image differs slightly from the training copy;
|
| 437 |
+
- shipped: the images are included because the source can no longer provide them.
|
| 438 |
+
|
| 439 |
+
Each dataset's README names the source, its revision and its terms. Users obtain the images from the original sources
|
| 440 |
+
under those terms.
|
| 441 |
+
|
| 442 |
+
To request the removal of an item, open a discussion on this repository.
|
| 443 |
+
|
| 444 |
+
## Layout
|
| 445 |
+
|
| 446 |
+
One folder per task category, one sub-folder per dataset; shared tools in `tools/`. `teacher/` holds the cached
|
| 447 |
+
teacher embeddings that stage 2 distilled from, in the same sub-folders as the datasets (see `teacher/README.md`).
|
| 448 |
+
`training/` holds what the training code reads besides the shards (see "Training on the rebuilt data" below).
|
| 449 |
+
|
| 450 |
+
| folder | task | form of a training pair |
|
| 451 |
+
|---|---|---|
|
| 452 |
+
| `classification/` | classification | image → class name, with confusable classes as negatives |
|
| 453 |
+
| `vqa/` | visual question answering | image + question → answer |
|
| 454 |
+
| `image_text/` | image–text retrieval | caption ↔ image |
|
| 455 |
+
| `grounding/` | grounding | image + referring expression → region crop |
|
| 456 |
+
| `documents/` | knowledge and document retrieval | question → document page or knowledge entity |
|
| 457 |
+
| `editing/` | image editing and composed image retrieval | image + edit instruction → edited image |
|
| 458 |
+
| `text/` | text retrieval | text → text |
|
| 459 |
+
|
| 460 |
+
The web-pool data (used only by the 9B model) will be kept in a separate repository.
|
| 461 |
+
|
| 462 |
+
## Getting the files
|
| 463 |
+
|
| 464 |
+
You do not need the whole repository. Download the folder of each dataset you want and the shared `tools/` folder,
|
| 465 |
+
keeping their paths, for example:
|
| 466 |
+
|
| 467 |
+
```
|
| 468 |
+
pip install -U huggingface_hub
|
| 469 |
+
hf auth login # while this repository is private
|
| 470 |
+
hf download UCSC-VLAA/OpenEmbed-Data-pilot --repo-type dataset --local-dir openembed-data \
|
| 471 |
+
--include "vqa/mmeb-gqa/*" --include "tools/*"
|
| 472 |
+
cd openembed-data
|
| 473 |
+
```
|
| 474 |
+
|
| 475 |
+
The commands in the dataset READMEs run from this folder (their "repository root"). Add
|
| 476 |
+
`--include "teacher/vqa/mmeb-gqa/*"` for the dataset's teacher embeddings. ImageNet-21k carries its own loader
|
| 477 |
+
(`classification/imagenet-21k/tools/`) and runs from its own folder. Each dataset's README gives its rebuild command
|
| 478 |
+
and the Python packages it needs.
|
| 479 |
+
|
| 480 |
+
## Rebuilding many datasets at once
|
| 481 |
+
|
| 482 |
+
`tools/openembed_data/build.py` runs each dataset's own loader and checks, and sums up the run. It reads the index
|
| 483 |
+
`tools/openembed_data/datasets.json`. With `tools/` downloaded as above:
|
| 484 |
+
|
| 485 |
+
```
|
| 486 |
+
python tools/openembed_data/build.py list # every dataset: case, records, download, what it needs
|
| 487 |
+
python tools/openembed_data/build.py fetch --sets vqa,text --teacher
|
| 488 |
+
python tools/openembed_data/build.py rebuild --sets vqa,text --out shards/ --cache cache/
|
| 489 |
+
```
|
| 490 |
+
|
| 491 |
+
`--sets` takes dataset ids (`mmeb/GQA`), folders (`vqa/mmeb-gqa`), categories (`vqa`), or `all`; `rebuild --fetch`
|
| 492 |
+
downloads the folders it is missing. Each dataset ends as one of:
|
| 493 |
+
- pass;
|
| 494 |
+
- incomplete: records left out, each one listed;
|
| 495 |
+
- failed: see its log;
|
| 496 |
+
- needs: a login, an archive to put into the cache by hand, or a package.
|
| 497 |
+
|
| 498 |
+
The exit status is 1 unless every dataset asked for passed. Logs, problem lists and `summary.json` go to
|
| 499 |
+
`<out>/_build/`.
|
| 500 |
+
|
| 501 |
+
## Training on the rebuilt data
|
| 502 |
+
|
| 503 |
+
`training/` holds what the OpenEmbed training code reads besides the shards: per dataset its card and shard manifest,
|
| 504 |
+
the contamination block lists, the duplicate skip lists, the mined hard negatives of four MMEB sets, and the index of
|
| 505 |
+
the teacher store (`training/README.md` describes each). After `build.py rebuild --out shards/`, download `training/`
|
| 506 |
+
(and, for stage 2, the `teacher/` folders of the datasets you distill), then install into a `gs://` folder of yours:
|
| 507 |
+
|
| 508 |
+
```
|
| 509 |
+
hf download UCSC-VLAA/OpenEmbed-Data-pilot --repo-type dataset --local-dir . --include "training/*"
|
| 510 |
+
python tools/openembed_data/install_training.py --shards shards/ --to gs://YOUR-BUCKET/openembed-data
|
| 511 |
+
```
|
| 512 |
+
|
| 513 |
+
The installer checks every shard against the training data (byte count and CRC-32C where the rebuild is exact, the
|
| 514 |
+
record count where images are re-encoded from their source), places the shards, the metadata and the teacher vectors
|
| 515 |
+
where the training code looks for them, uploads them with one `gcloud storage rsync`, and prints two lines for the
|
| 516 |
+
training launcher: `OPENEMBED_DATA` and `OPENEMBED_SKIP` (the datasets it left out). Then run a recipe of the training
|
| 517 |
+
code (`recipes/` there).
|
| 518 |
+
|
| 519 |
+
## Datasets so far (104)
|
| 520 |
+
|
| 521 |
+
| dataset | folder | case | records | licence class |
|
| 522 |
+
|---|---|---|---|---|
|
| 523 |
+
| `ext/country211_valid` | `classification/country211-valid/` | exact | 10,550 | TP |
|
| 524 |
+
| `ext/geode_country` | `classification/geode-country/` | exact | 61,922 | P |
|
| 525 |
+
| `ext/geode_obj` | `classification/geode-obj/` | exact | 61,925 | P |
|
| 526 |
+
| `cls/imagenet21k` | `classification/imagenet-21k/` | exact (images from timm/imagenet-w21-wds) | 13,016,419 | NC |
|
| 527 |
+
| `mmeb/Country211` | `classification/mmeb-country211/` | exact | 31,650 | TP |
|
| 528 |
+
| `mmeb/HatefulMemes` | `classification/mmeb-hatefulmemes/` | exact (see note) | 8,500 | NC |
|
| 529 |
+
| `mmeb/ImageNet-1K` | `classification/mmeb-imagenet-1k/` | exact (see note) | 100,000 | NC |
|
| 530 |
+
| `mmeb/N24News` | `classification/mmeb-n24news/` | exact (see note) | 48,544 | NS |
|
| 531 |
+
| `mmeb/SUN397` | `classification/mmeb-sun397/` | exact (see note) | 19,666 | NC |
|
| 532 |
+
| `mmeb/VOC2007` | `classification/mmeb-voc2007/` | exact (see note) | 7,844 | TP |
|
| 533 |
+
| `ext/osv5m_country` | `classification/osv5m-country/` | exact | 48,483 | P |
|
| 534 |
+
| `cls/places365` | `classification/places365/` | exact | 1,802,452 | NC |
|
| 535 |
+
| `ext/uco3d_full` | `classification/uco3d-full/` | exact | 141,884 | P |
|
| 536 |
+
| `visdoc/colpali_arxivqa_hn` | `documents/colpali-arxivqa-hn/` | exact | 7,932 | NS |
|
| 537 |
+
| `visdoc/colpali_docvqa` | `documents/colpali-docvqa/` | exact | 39,276 | NS |
|
| 538 |
+
| `visdoc/colpali_infovqa` | `documents/colpali-infovqa/` | exact | 10,037 | NS |
|
| 539 |
+
| `visdoc/colpali_pdf_hn` | `documents/colpali-pdf-hn/` | exact | 45,676 | NS |
|
| 540 |
+
| `visdoc/colpali_tatdqa` | `documents/colpali-tatdqa/` | exact | 12,409 | NS |
|
| 541 |
+
| `doc/colpali_train` | `documents/colpali-train/` | exact | 7,609 | NS |
|
| 542 |
+
| `doc/docbank_pages` | `documents/docbank-pages/` | identifiers only | 248,673 | ND |
|
| 543 |
+
| `doc/docbank_spans` | `documents/docbank-spans/` | identifiers only | 612,913 | ND |
|
| 544 |
+
| `visdoc/docmatix_ir_hn` | `documents/docmatix-ir-hn/` | exact | 999,996 | P |
|
| 545 |
+
| `doc/docvqa_q2page` | `documents/docvqa-q2page/` | exact | 110,582 | NS |
|
| 546 |
+
| `kb/infoseek` | `documents/infoseek/` | exact | 124,490 | P |
|
| 547 |
+
| `kb/infoseek_text` | `documents/infoseek-text/` | exact | 141,251 | P |
|
| 548 |
+
| `mmeb/EDIS` | `documents/mmeb-edis/` | exact | 57,288 | NC |
|
| 549 |
+
| `mmeb/OVEN` | `documents/mmeb-oven/` | exact | 132,565 | P |
|
| 550 |
+
| `mmeb/WebQA` | `documents/mmeb-webqa/` | exact | 17,165 | TP |
|
| 551 |
+
| `mmeb/Wiki-SS-NQ` | `documents/mmeb-wiki-ss-nq/` | exact | 40,365 | P |
|
| 552 |
+
| `kb/oven_text` | `documents/oven-text/` | exact | 150,749 | P |
|
| 553 |
+
| `visdoc/vdr_de_hn` | `documents/vdr-de-hn/` | exact | 58,211 | P |
|
| 554 |
+
| `visdoc/vdr_en_hn` | `documents/vdr-en-hn/` | exact | 53,497 | P |
|
| 555 |
+
| `visdoc/vdr_es_hn` | `documents/vdr-es-hn/` | exact | 58,734 | P |
|
| 556 |
+
| `visdoc/vdr_fr_hn` | `documents/vdr-fr-hn/` | exact | 55,251 | P |
|
| 557 |
+
| `visdoc/vdr_it_hn` | `documents/vdr-it-hn/` | exact | 54,938 | P |
|
| 558 |
+
| `visdoc/visrag_arxivqa` | `documents/visrag-arxivqa/` | exact | 22,454 | NS |
|
| 559 |
+
| `visdoc/visrag_chartqa` | `documents/visrag-chartqa/` | exact | 4,216 | NS |
|
| 560 |
+
| `visdoc/visrag_infovqa` | `documents/visrag-infovqa/` | exact | 17,655 | NS |
|
| 561 |
+
| `visdoc/visrag_mpdocvqa` | `documents/visrag-mpdocvqa/` | exact | 10,553 | NS |
|
| 562 |
+
| `visdoc/visrag_plotqa` | `documents/visrag-plotqa/` | exact | 55,440 | NS |
|
| 563 |
+
| `visdoc/visrag_slidevqa` | `documents/visrag-slidevqa/` | exact | 8,158 | NS |
|
| 564 |
+
| `edit/anyedit` | `editing/anyedit/` | approximate (images re-encoded from the source; ours where unmatched) | 2,115,953 | P |
|
| 565 |
+
| `edit/aurora` | `editing/aurora/` | approximate (images re-encoded from the source; ours where unmatched) | 169,179 | P |
|
| 566 |
+
| `edit/crispedit` | `editing/crispedit/` | approximate (images re-encoded from the source; ours where unmatched) | 2,176,812 | P |
|
| 567 |
+
| `edit/gptimageedit_hqedit` | `editing/gptimageedit-hqedit/` | approximate (images re-encoded from the source; ours where unmatched) | 89,585 | P |
|
| 568 |
+
| `edit/gptimageedit_omniedit` | `editing/gptimageedit-omniedit/` | approximate (images re-encoded from the source; ours where unmatched) | 967,424 | P |
|
| 569 |
+
| `edit/gptimageedit_ultraedit` | `editing/gptimageedit-ultraedit/` | approximate (images re-encoded from the source; ours where unmatched) | 100,008 | P |
|
| 570 |
+
| `edit/hqedit` | `editing/hqedit/` | approximate (images re-encoded from the source; ours where unmatched) | 197,330 | NC |
|
| 571 |
+
| `edit/humanedit` | `editing/humanedit/` | approximate (images re-encoded from the source; ours where unmatched) | 5,751 | P |
|
| 572 |
+
| `edit/imgedit` | `editing/imgedit/` | approximate (images re-encoded from the source; ours where unmatched) | 640,176 | P |
|
| 573 |
+
| `edit/ip2p` | `editing/ip2p/` | approximate (images re-encoded from the source; ours where unmatched) | 313,010 | NS |
|
| 574 |
+
| `edit/magicbrush` | `editing/magicbrush/` | approximate (images re-encoded from the source; ours where unmatched) | 8,634 | P |
|
| 575 |
+
| `mmeb/CIRR` | `editing/mmeb-cirr/` | exact (see note) | 25,892 | NC |
|
| 576 |
+
| `mmeb/FashionIQ` | `editing/mmeb-fashioniq/` | exact | 15,775 | TP |
|
| 577 |
+
| `mmeb/NIGHTS` | `editing/mmeb-nights/` | exact (see note) | 15,941 | P |
|
| 578 |
+
| `edit/nein` | `editing/nein/` | approximate (images re-encoded from the source; ours where unmatched) | 685,550 | P |
|
| 579 |
+
| `edit/nhredit` | `editing/nhredit/` | approximate (images re-encoded from the source; ours where unmatched) | 265,056 | P |
|
| 580 |
+
| `edit/nhredit2` | `editing/nhredit2/` | approximate (images re-encoded from the source; ours where unmatched) | 320,990 | P |
|
| 581 |
+
| `edit/omniedit` | `editing/omniedit/` | approximate (images re-encoded from the source; ours where unmatched) | 1,197,338 | P |
|
| 582 |
+
| `edit/pica` | `editing/pica/` | approximate (images re-encoded from the source; ours where unmatched) | 312,413 | P |
|
| 583 |
+
| `edit/picobanana` | `editing/picobanana/` | approximate (images re-encoded from the source; ours where unmatched) | 490,761 | NC |
|
| 584 |
+
| `edit/pipe` | `editing/pipe/` | approximate (images re-encoded from the source; ours where unmatched) | 882,292 | P |
|
| 585 |
+
| `edit/refedit` | `editing/refedit/` | approximate (images re-encoded from the source; ours where unmatched) | 17,901 | NS |
|
| 586 |
+
| `edit/scaleedit` | `editing/scaleedit/` | approximate (images re-encoded from the source; ours where unmatched) | 4,455,692 | NC |
|
| 587 |
+
| `edit/seededit` | `editing/seededit/` | approximate (images re-encoded from the source; ours where unmatched) | 1,487,789 | NC |
|
| 588 |
+
| `edit/ultraedit_v2` | `editing/ultraedit-v2/` | approximate (images re-encoded from the source; ours where unmatched) | 3,996,699 | P |
|
| 589 |
+
| `edit/unicedit` | `editing/unicedit/` | approximate (images re-encoded from the source; ours where unmatched) | 1,679,962 | P |
|
| 590 |
+
| `edit/weave` | `editing/weave/` | approximate (images re-encoded from the source; ours where unmatched) | 198,556 | P |
|
| 591 |
+
| `mmeb/MSCOCO_grd` | `grounding/mmeb-mscoco-grd/` | exact (see note) | 27,782 | TP |
|
| 592 |
+
| `mmeb/Visual7W-Pointing` | `grounding/mmeb-visual7w-pointing/` | exact | 93,803 | NS |
|
| 593 |
+
| `mmeb/MSCOCO_i2t` | `image_text/mmeb-mscoco-i2t/` | exact (see note) | 99,997 | TP |
|
| 594 |
+
| `mmeb/MSCOCO_t2i` | `image_text/mmeb-mscoco-t2i/` | exact (see note) | 50,000 | TP |
|
| 595 |
+
| `mmeb/VisDial` | `image_text/mmeb-visdial/` | exact (see note) | 99,196 | TP |
|
| 596 |
+
| `mmeb/VisualNews_i2t` | `image_text/mmeb-visualnews-i2t/` | exact (see note) | 99,883 | NS |
|
| 597 |
+
| `mmeb/VisualNews_t2i` | `image_text/mmeb-visualnews-t2i/` | exact (see note) | 49,938 | NS |
|
| 598 |
+
| `ext/visualnews_i2t` | `image_text/visualnews-i2t/` | exact | 1,236,464 | NS |
|
| 599 |
+
| `ext/visualnews_t2i` | `image_text/visualnews-t2i/` | exact | 1,236,464 | NS |
|
| 600 |
+
| `text/allnli` | `text/allnli/` | exact (text only) | 55,345 | P |
|
| 601 |
+
| `text/fever` | `text/fever/` | exact (text only) | 186,580 | P |
|
| 602 |
+
| `text/gooaq` | `text/gooaq/` | exact (text only) | 1,210,960 | NC |
|
| 603 |
+
| `text/hotpotqa` | `text/hotpotqa/` | exact (text only) | 169,022 | P |
|
| 604 |
+
| `text/msmarco_passage` | `text/msmarco-passage/` | exact (text only) | 299,997 | NC |
|
| 605 |
+
| `text/msmarco_v21` | `text/msmarco-v21/` | exact (text only) | 499,865 | NC |
|
| 606 |
+
| `text/nq` | `text/nq/` | exact (text only) | 99,239 | P |
|
| 607 |
+
| `text/paq` | `text/paq/` | exact (text only) | 1,199,997 | P |
|
| 608 |
+
| `text/quora_dup` | `text/quora-dup/` | exact (text only) | 99,997 | NC |
|
| 609 |
+
| `text/trivia_qa` | `text/trivia-qa/` | exact (text only) | 77,082 | P |
|
| 610 |
+
| `ext/cauldron_dvqa` | `vqa/cauldron-dvqa/` | exact | 255,000 | NC |
|
| 611 |
+
| `ext/cauldron_st_vqa` | `vqa/cauldron-st-vqa/` | exact | 23,083 | NS |
|
| 612 |
+
| `ext/cauldron_vqav2` | `vqa/cauldron-vqav2/` | exact | 253,457 | TP |
|
| 613 |
+
| `ext/docmatix` | `vqa/docmatix/` | exact | 47,228 | P |
|
| 614 |
+
| `ext/lov_ai2d` | `vqa/lov-ai2d/` | exact | 7,438 | P |
|
| 615 |
+
| `ext/lov_tqa` | `vqa/lov-tqa/` | exact | 29,834 | NC |
|
| 616 |
+
| `ext/mapqa` | `vqa/mapqa/` | exact | 78,056 | P |
|
| 617 |
+
| `mmeb/A-OKVQA` | `vqa/mmeb-a-okvqa/` | exact (see note) | 17,052 | TP |
|
| 618 |
+
| `mmeb/ChartQA` | `vqa/mmeb-chartqa/` | exact (see note) | 28,127 | TP |
|
| 619 |
+
| `mmeb/DocVQA` | `vqa/mmeb-docvqa/` | exact (see note) | 39,460 | NS |
|
| 620 |
+
| `mmeb/GQA` | `vqa/mmeb-gqa/` | exact | 47,981 | NS |
|
| 621 |
+
| `mmeb/InfographicsVQA` | `vqa/mmeb-infographicsvqa/` | exact (see note) | 23,944 | NC |
|
| 622 |
+
| `mmeb/OK-VQA` | `vqa/mmeb-ok-vqa/` | exact (see note) | 9,007 | NS |
|
| 623 |
+
| `mmeb/ScienceQA` | `vqa/mmeb-scienceqa/` | exact | 4,622 | NC |
|
| 624 |
+
| `mmeb/TextVQA` | `vqa/mmeb-textvqa/` | exact | 31,303 | P |
|
| 625 |
+
| `mmeb/Visual7W` | `vqa/mmeb-visual7w/` | exact (see note) | 69,756 | NS |
|
| 626 |
+
| `mmeb/VizWiz` | `vqa/mmeb-vizwiz/` | exact | 20,519 | P |
|
| 627 |
+
|
| 628 |
+
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.
|
| 629 |
+
|
| 630 |
+
## Citation
|
| 631 |
+
|
| 632 |
+
If you use these data, please cite the paper, and the original datasets you use (each dataset's README names its
|
| 633 |
+
source):
|
| 634 |
+
|
| 635 |
+
```bibtex
|
| 636 |
+
@article{liu2026openembed,
|
| 637 |
+
title = {{OpenEmbed}: A Family of Frontier Multimodal Embedding Models with Open Data, Code, and Weights},
|
| 638 |
+
author = {Liu, Yanqing and Zhang, Letian and Yao, Huaxiu and Zheng, Zeyu and Zhou, Yuyin and Xie, Cihang},
|
| 639 |
+
journal = {arXiv preprint arXiv:XXXX.XXXXX},
|
| 640 |
+
year = {2026}
|
| 641 |
+
}
|
| 642 |
+
```
|
classification/country211-valid/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# country211-valid
|
| 2 |
+
|
| 3 |
+
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.
|
| 4 |
+
|
| 5 |
+
* Registry id: `ext/country211_valid` (exact case; the folder name is lowercase). Category: classification.
|
| 6 |
+
* 10,550 records in 16 TFRecord shards (1.91 GB).
|
| 7 |
+
* 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.
|
| 8 |
+
|
| 9 |
+
## Files
|
| 10 |
+
|
| 11 |
+
* `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).
|
| 12 |
+
* `filters.parquet`: per record what the training loader applied when reading it: `adapter_emitted`, `adapter_flags`, `blocked_at_read`, `dedup_skipped`.
|
| 13 |
+
* `shards.parquet`: per shard record count, bytes, md5 and crc32c (base64) of our training shard and of the public rebuild.
|
| 14 |
+
* `set.json`: these facts in machine-readable form.
|
| 15 |
+
|
| 16 |
+
## Rebuild
|
| 17 |
+
|
| 18 |
+
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):
|
| 19 |
+
|
| 20 |
+
```
|
| 21 |
+
python tools/openembed_data/rebuild_shards.py --out shards/ --sets ext/country211_valid
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
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/`.
|
| 25 |
+
|
| 26 |
+
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.
|
| 27 |
+
|
| 28 |
+
## Filters
|
| 29 |
+
|
| 30 |
+
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).
|
| 31 |
+
|
| 32 |
+
## Verified
|
| 33 |
+
|
| 34 |
+
End to end on 2026-11-10:
|
| 35 |
+
|
| 36 |
+
* 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.
|
| 37 |
+
* Public rebuild (this release): 10,550 / 10,550 records and 16 / 16 shards match the `*_public` values.
|
| 38 |
+
* Image references: 10,550, every one fetched from its source with the recorded sha256 and length (missing 0, mismatched 0).
|
| 39 |
+
|
| 40 |
+
## Terms
|
| 41 |
+
|
| 42 |
+
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.
|
| 43 |
+
|
| 44 |
+
These records are derived from the source above and follow its terms. They are released for research use; we remove items on request.
|
classification/country211-valid/filters.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f41338d0841f67208dd9fe7ac8881a90abc21c66e88ac1cdfab871952bb7d793
|
| 3 |
+
size 6863
|
classification/country211-valid/records.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96dee2f728fc36a7cd5377fa5a89a1cffcccdbecfdb610e8571539d0b6909e5b
|
| 3 |
+
size 1963923
|
classification/country211-valid/set.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "ext/country211_valid",
|
| 3 |
+
"folder": "classification/country211-valid",
|
| 4 |
+
"category": "classification",
|
| 5 |
+
"kind": "image",
|
| 6 |
+
"rebuildable": true,
|
| 7 |
+
"records": 10550,
|
| 8 |
+
"shards": 16,
|
| 9 |
+
"image_references": 10550,
|
| 10 |
+
"bytes_training_shards": 1905576087,
|
| 11 |
+
"bytes_public_shards": 1905576087,
|
| 12 |
+
"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.",
|
| 13 |
+
"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.",
|
| 14 |
+
"license_class": "TP",
|
| 15 |
+
"license_class_meaning": "open annotations; the images are under third-party terms",
|
| 16 |
+
"read_time_gate": {
|
| 17 |
+
"contamination": "DatasetBlocklist",
|
| 18 |
+
"dedup_skip_list": false,
|
| 19 |
+
"in_overlay": false,
|
| 20 |
+
"overlay_applied": false
|
| 21 |
+
},
|
| 22 |
+
"card_counts_default_policy": {
|
| 23 |
+
"contamination": 0,
|
| 24 |
+
"invalid": 0,
|
| 25 |
+
"invalid_reasons": {},
|
| 26 |
+
"invalid_also_on_contamination_list": 0,
|
| 27 |
+
"merged_duplicates": 0
|
| 28 |
+
},
|
| 29 |
+
"blocked_at_read": 0,
|
| 30 |
+
"skipped_at_read": 0,
|
| 31 |
+
"provenance_public_prefixes": [
|
| 32 |
+
"openembed://stage2-data/",
|
| 33 |
+
"openembed://"
|
| 34 |
+
],
|
| 35 |
+
"in_place": true,
|
| 36 |
+
"provenance_mapped_records": 0,
|
| 37 |
+
"pillow": "none",
|
| 38 |
+
"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/`.",
|
| 39 |
+
"problems": {}
|
| 40 |
+
}
|
classification/country211-valid/shards.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32210a792e21d26a619fb656e23e2d93fb48d6ff26c168e2931949f398998cc3
|
| 3 |
+
size 4108
|
classification/country211-valid/verification.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-11-10",
|
| 3 |
+
"train": {
|
| 4 |
+
"records": 10550,
|
| 5 |
+
"record_ok": 10550,
|
| 6 |
+
"record_bad": 0,
|
| 7 |
+
"image_missing": 0,
|
| 8 |
+
"image_bad": 0,
|
| 9 |
+
"shards": 16,
|
| 10 |
+
"shards_expected": 16,
|
| 11 |
+
"shards_ok": 16,
|
| 12 |
+
"ordinals_contiguous": true,
|
| 13 |
+
"bytes_downloaded": 0,
|
| 14 |
+
"seconds": 1.0,
|
| 15 |
+
"bad_examples": [],
|
| 16 |
+
"pass": true
|
| 17 |
+
},
|
| 18 |
+
"public": {
|
| 19 |
+
"records": 10550,
|
| 20 |
+
"record_ok": 10550,
|
| 21 |
+
"record_bad": 0,
|
| 22 |
+
"image_missing": 0,
|
| 23 |
+
"image_bad": 0,
|
| 24 |
+
"shards": 16,
|
| 25 |
+
"shards_expected": 16,
|
| 26 |
+
"shards_ok": 16,
|
| 27 |
+
"ordinals_contiguous": true,
|
| 28 |
+
"bytes_downloaded": 0,
|
| 29 |
+
"seconds": 0.9,
|
| 30 |
+
"bad_examples": [],
|
| 31 |
+
"pass": true
|
| 32 |
+
},
|
| 33 |
+
"bytes_downloaded": 0,
|
| 34 |
+
"pass": true
|
| 35 |
+
}
|
classification/geode-country/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# geode-country
|
| 2 |
+
|
| 3 |
+
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.
|
| 4 |
+
|
| 5 |
+
* Registry id: `ext/geode_country` (exact case; the folder name is lowercase). Category: classification.
|
| 6 |
+
* 61,922 records in 169 TFRecord shards (67.96 GB).
|
| 7 |
+
* 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.
|
| 8 |
+
|
| 9 |
+
## Files
|
| 10 |
+
|
| 11 |
+
* `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).
|
| 12 |
+
* `filters.parquet`: per record what the training loader applied when reading it: `adapter_emitted`, `adapter_flags`, `blocked_at_read`, `dedup_skipped`.
|
| 13 |
+
* `shards.parquet`: per shard record count, bytes, md5 and crc32c (base64) of our training shard and of the public rebuild.
|
| 14 |
+
* `set.json`: these facts in machine-readable form.
|
| 15 |
+
|
| 16 |
+
## Rebuild
|
| 17 |
+
|
| 18 |
+
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):
|
| 19 |
+
|
| 20 |
+
```
|
| 21 |
+
python tools/openembed_data/rebuild_shards.py --out shards/ --sets ext/geode_country
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
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.
|
| 25 |
+
|
| 26 |
+
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.
|
| 27 |
+
|
| 28 |
+
## Filters
|
| 29 |
+
|
| 30 |
+
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).
|
| 31 |
+
|
| 32 |
+
## Verified
|
| 33 |
+
|
| 34 |
+
End to end on 2026-11-10:
|
| 35 |
+
|
| 36 |
+
* 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.
|
| 37 |
+
* Public rebuild (this release): 61,922 / 61,922 records and 169 / 169 shards match the `*_public` values.
|
| 38 |
+
* Image references: 61,922, every one fetched from its source with the recorded sha256 and length (missing 0, mismatched 0).
|
| 39 |
+
|
| 40 |
+
## Terms
|
| 41 |
+
|
| 42 |
+
License class `P`: permissive: the publisher's licence allows use and redistribution. CC BY 4.0 per the Hub card.
|
| 43 |
+
|
| 44 |
+
These records are derived from the source above and follow its terms. They are released for research use; we remove items on request.
|
classification/geode-country/filters.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd01fe4c664d896fc0e0cab7b6eba2910544edf9707f7960de9fa03c30151474
|
| 3 |
+
size 19012
|
classification/geode-country/records.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4a46b0dc7355beffa559d1a0c024bc8e517c7fd1bc7206a0579a1c97ff1500c
|
| 3 |
+
size 9877738
|
classification/geode-country/set.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "ext/geode_country",
|
| 3 |
+
"folder": "classification/geode-country",
|
| 4 |
+
"category": "classification",
|
| 5 |
+
"kind": "image",
|
| 6 |
+
"rebuildable": true,
|
| 7 |
+
"records": 61922,
|
| 8 |
+
"shards": 169,
|
| 9 |
+
"image_references": 61922,
|
| 10 |
+
"bytes_training_shards": 67960120401,
|
| 11 |
+
"bytes_public_shards": 67960120401,
|
| 12 |
+
"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.",
|
| 13 |
+
"terms_text": "CC BY 4.0 per the Hub card.",
|
| 14 |
+
"license_class": "P",
|
| 15 |
+
"license_class_meaning": "permissive: the publisher's licence allows use and redistribution",
|
| 16 |
+
"read_time_gate": {
|
| 17 |
+
"contamination": "DatasetBlocklist",
|
| 18 |
+
"dedup_skip_list": false,
|
| 19 |
+
"in_overlay": false,
|
| 20 |
+
"overlay_applied": false
|
| 21 |
+
},
|
| 22 |
+
"card_counts_default_policy": {
|
| 23 |
+
"contamination": 0,
|
| 24 |
+
"invalid": 0,
|
| 25 |
+
"invalid_reasons": {},
|
| 26 |
+
"invalid_also_on_contamination_list": 0,
|
| 27 |
+
"merged_duplicates": 0
|
| 28 |
+
},
|
| 29 |
+
"blocked_at_read": 0,
|
| 30 |
+
"skipped_at_read": 0,
|
| 31 |
+
"provenance_public_prefixes": [
|
| 32 |
+
"openembed://stage2-data/",
|
| 33 |
+
"openembed://"
|
| 34 |
+
],
|
| 35 |
+
"in_place": true,
|
| 36 |
+
"provenance_mapped_records": 0,
|
| 37 |
+
"pillow": "none",
|
| 38 |
+
"problems": {}
|
| 39 |
+
}
|
classification/geode-country/shards.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bca8a875da9b35254ec4fee59950602a58cd7b1232cf5535c4cdb6f0d34c999b
|
| 3 |
+
size 13418
|
classification/geode-country/verification.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-11-10",
|
| 3 |
+
"train": {
|
| 4 |
+
"records": 61922,
|
| 5 |
+
"record_ok": 61922,
|
| 6 |
+
"record_bad": 0,
|
| 7 |
+
"image_missing": 0,
|
| 8 |
+
"image_bad": 0,
|
| 9 |
+
"shards": 169,
|
| 10 |
+
"shards_expected": 169,
|
| 11 |
+
"shards_ok": 169,
|
| 12 |
+
"ordinals_contiguous": true,
|
| 13 |
+
"bytes_downloaded": 0,
|
| 14 |
+
"seconds": 1616.4,
|
| 15 |
+
"prepass": {
|
| 16 |
+
"tasks": 672,
|
| 17 |
+
"images": 61922,
|
| 18 |
+
"reread_factor": 69.96
|
| 19 |
+
},
|
| 20 |
+
"bad_examples": [],
|
| 21 |
+
"pass": true
|
| 22 |
+
},
|
| 23 |
+
"public": {
|
| 24 |
+
"records": 61922,
|
| 25 |
+
"record_ok": 61922,
|
| 26 |
+
"record_bad": 0,
|
| 27 |
+
"image_missing": 0,
|
| 28 |
+
"image_bad": 0,
|
| 29 |
+
"shards": 169,
|
| 30 |
+
"shards_expected": 169,
|
| 31 |
+
"shards_ok": 169,
|
| 32 |
+
"ordinals_contiguous": true,
|
| 33 |
+
"bytes_downloaded": 0,
|
| 34 |
+
"seconds": 1616.4,
|
| 35 |
+
"prepass": {
|
| 36 |
+
"tasks": 672,
|
| 37 |
+
"images": 61922,
|
| 38 |
+
"reread_factor": 69.96
|
| 39 |
+
},
|
| 40 |
+
"bad_examples": [],
|
| 41 |
+
"pass": true
|
| 42 |
+
},
|
| 43 |
+
"bytes_downloaded": 0,
|
| 44 |
+
"pass": true
|
| 45 |
+
}
|
classification/geode-obj/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# geode-obj
|
| 2 |
+
|
| 3 |
+
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.
|
| 4 |
+
|
| 5 |
+
* Registry id: `ext/geode_obj` (exact case; the folder name is lowercase). Category: classification.
|
| 6 |
+
* 61,925 records in 169 TFRecord shards (67.97 GB).
|
| 7 |
+
* 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.
|
| 8 |
+
|
| 9 |
+
## Files
|
| 10 |
+
|
| 11 |
+
* `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).
|
| 12 |
+
* `filters.parquet`: per record what the training loader applied when reading it: `adapter_emitted`, `adapter_flags`, `blocked_at_read`, `dedup_skipped`.
|
| 13 |
+
* `shards.parquet`: per shard record count, bytes, md5 and crc32c (base64) of our training shard and of the public rebuild.
|
| 14 |
+
* `set.json`: these facts in machine-readable form.
|
| 15 |
+
|
| 16 |
+
## Rebuild
|
| 17 |
+
|
| 18 |
+
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):
|
| 19 |
+
|
| 20 |
+
```
|
| 21 |
+
python tools/openembed_data/rebuild_shards.py --out shards/ --sets ext/geode_obj
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
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.
|
| 25 |
+
|
| 26 |
+
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.
|
| 27 |
+
|
| 28 |
+
## Filters
|
| 29 |
+
|
| 30 |
+
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).
|
| 31 |
+
|
| 32 |
+
## Verified
|
| 33 |
+
|
| 34 |
+
End to end on 2026-11-10:
|
| 35 |
+
|
| 36 |
+
* 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.
|
| 37 |
+
* Public rebuild (this release): 61,925 / 61,925 records and 169 / 169 shards match the `*_public` values.
|
| 38 |
+
* Image references: 61,925, every one fetched from its source with the recorded sha256 and length (missing 0, mismatched 0).
|
| 39 |
+
|
| 40 |
+
## Terms
|
| 41 |
+
|
| 42 |
+
License class `P`: permissive: the publisher's licence allows use and redistribution. CC BY 4.0 per the Hub card.
|
| 43 |
+
|
| 44 |
+
These records are derived from the source above and follow its terms. They are released for research use; we remove items on request.
|
classification/geode-obj/filters.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b9d20730016d21e8353631fc2122358c324b10f99ad1e955fa99f86d98657fc
|
| 3 |
+
size 18962
|
classification/geode-obj/records.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f610eb091d44c3236c51ef58fce5f8df4fc08eec5c6fe646a752084596cb061
|
| 3 |
+
size 9902811
|
classification/geode-obj/set.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "ext/geode_obj",
|
| 3 |
+
"folder": "classification/geode-obj",
|
| 4 |
+
"category": "classification",
|
| 5 |
+
"kind": "image",
|
| 6 |
+
"rebuildable": true,
|
| 7 |
+
"records": 61925,
|
| 8 |
+
"shards": 169,
|
| 9 |
+
"image_references": 61925,
|
| 10 |
+
"bytes_training_shards": 67969196375,
|
| 11 |
+
"bytes_public_shards": 67969196375,
|
| 12 |
+
"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.",
|
| 13 |
+
"terms_text": "CC BY 4.0 per the Hub card.",
|
| 14 |
+
"license_class": "P",
|
| 15 |
+
"license_class_meaning": "permissive: the publisher's licence allows use and redistribution",
|
| 16 |
+
"read_time_gate": {
|
| 17 |
+
"contamination": "DatasetBlocklist",
|
| 18 |
+
"dedup_skip_list": false,
|
| 19 |
+
"in_overlay": false,
|
| 20 |
+
"overlay_applied": false
|
| 21 |
+
},
|
| 22 |
+
"card_counts_default_policy": {
|
| 23 |
+
"contamination": 0,
|
| 24 |
+
"invalid": 0,
|
| 25 |
+
"invalid_reasons": {},
|
| 26 |
+
"invalid_also_on_contamination_list": 0,
|
| 27 |
+
"merged_duplicates": 0
|
| 28 |
+
},
|
| 29 |
+
"blocked_at_read": 0,
|
| 30 |
+
"skipped_at_read": 0,
|
| 31 |
+
"provenance_public_prefixes": [
|
| 32 |
+
"openembed://stage2-data/",
|
| 33 |
+
"openembed://"
|
| 34 |
+
],
|
| 35 |
+
"in_place": true,
|
| 36 |
+
"provenance_mapped_records": 0,
|
| 37 |
+
"pillow": "none",
|
| 38 |
+
"problems": {}
|
| 39 |
+
}
|
classification/geode-obj/shards.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:215ca9c104b062fa39c763adbbd96f13aa834644f625369aee0b1e0b88742de7
|
| 3 |
+
size 13413
|
classification/geode-obj/verification.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-11-10",
|
| 3 |
+
"train": {
|
| 4 |
+
"records": 61925,
|
| 5 |
+
"record_ok": 61925,
|
| 6 |
+
"record_bad": 0,
|
| 7 |
+
"image_missing": 0,
|
| 8 |
+
"image_bad": 0,
|
| 9 |
+
"shards": 169,
|
| 10 |
+
"shards_expected": 169,
|
| 11 |
+
"shards_ok": 169,
|
| 12 |
+
"ordinals_contiguous": true,
|
| 13 |
+
"bytes_downloaded": 0,
|
| 14 |
+
"seconds": 1572.3,
|
| 15 |
+
"prepass": {
|
| 16 |
+
"tasks": 672,
|
| 17 |
+
"images": 61925,
|
| 18 |
+
"reread_factor": 69.96
|
| 19 |
+
},
|
| 20 |
+
"bad_examples": [],
|
| 21 |
+
"pass": true
|
| 22 |
+
},
|
| 23 |
+
"public": {
|
| 24 |
+
"records": 61925,
|
| 25 |
+
"record_ok": 61925,
|
| 26 |
+
"record_bad": 0,
|
| 27 |
+
"image_missing": 0,
|
| 28 |
+
"image_bad": 0,
|
| 29 |
+
"shards": 169,
|
| 30 |
+
"shards_expected": 169,
|
| 31 |
+
"shards_ok": 169,
|
| 32 |
+
"ordinals_contiguous": true,
|
| 33 |
+
"bytes_downloaded": 0,
|
| 34 |
+
"seconds": 1572.3,
|
| 35 |
+
"prepass": {
|
| 36 |
+
"tasks": 672,
|
| 37 |
+
"images": 61925,
|
| 38 |
+
"reread_factor": 69.96
|
| 39 |
+
},
|
| 40 |
+
"bad_examples": [],
|
| 41 |
+
"pass": true
|
| 42 |
+
},
|
| 43 |
+
"bytes_downloaded": 0,
|
| 44 |
+
"pass": true
|
| 45 |
+
}
|
classification/imagenet-21k/README.md
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ImageNet-21k records of the OpenEmbed training data (pilot)
|
| 2 |
+
|
| 3 |
+
This folder holds the ImageNet-21k part of the OpenEmbed training mixture: 13,016,419
|
| 4 |
+
classification records (an image, a question, the WordNet label as answer, and names of
|
| 5 |
+
sibling WordNet synsets as negatives) that our builder wrote into 3,270 TFRecord shards from
|
| 6 |
+
[`timm/imagenet-w21-wds`](https://huggingface.co/datasets/timm/imagenet-w21-wds). It has every
|
| 7 |
+
field of every record **except the image bytes**, and for every record the exact image file in
|
| 8 |
+
`timm/imagenet-w21-wds` at revision `c08bf7ec5384ac07212a1cc1867e93fb78f5cbcc`. With the
|
| 9 |
+
images from that repository, `tools/loader.py` writes the 3,270 training shards back byte for
|
| 10 |
+
byte. No cleaning, filtering or sampling has to be re-run.
|
| 11 |
+
|
| 12 |
+
## Files
|
| 13 |
+
|
| 14 |
+
| File | Content | Size |
|
| 15 |
+
|---|---|---|
|
| 16 |
+
| `records/part-00000.parquet` | build hosts 0-3, 1,637,490 records | 240 MB |
|
| 17 |
+
| `records/part-00001.parquet` | build hosts 4-7, 1,631,068 records | 239 MB |
|
| 18 |
+
| `records/part-00002.parquet` | build hosts 8-11, 1,618,226 records | 238 MB |
|
| 19 |
+
| `records/part-00003.parquet` | build hosts 12-15, 1,624,642 records | 238 MB |
|
| 20 |
+
| `records/part-00004.parquet` | build hosts 16-19, 1,618,222 records | 238 MB |
|
| 21 |
+
| `records/part-00005.parquet` | build hosts 20-23, 1,624,643 records | 239 MB |
|
| 22 |
+
| `records/part-00006.parquet` | build hosts 24-27, 1,637,486 records | 240 MB |
|
| 23 |
+
| `records/part-00007.parquet` | build hosts 28-31, 1,624,642 records | 239 MB |
|
| 24 |
+
| `shards.parquet` | per training shard: build host, records, records that reached training, size, CRC32C, MD5 | small |
|
| 25 |
+
| `timm_tars.parquet` | per tar of `timm/imagenet-w21-wds` at the pinned revision: sha256, size, samples | small |
|
| 26 |
+
| `filters/dedup_skip.parquet` | 247,331 records left out as exact duplicates, with the kept copy | small |
|
| 27 |
+
| `filters/contamination_block.parquet` | 162 records left out for matching an evaluation image | small |
|
| 28 |
+
| `timm_unused_samples.parquet` | 134,857 timm samples that became no record, with the reason | small |
|
| 29 |
+
| `tools/loader.py`, `tools/tests/test_loader.py` | rebuild the shards; offline tests | small |
|
| 30 |
+
| `SHA256SUMS.txt` | sha256 of every file in this folder | small |
|
| 31 |
+
|
| 32 |
+
Rows of `records/` are in shard order (`shard`, then `ordinal`); part k holds the shards of
|
| 33 |
+
build hosts 4k to 4k+3.
|
| 34 |
+
|
| 35 |
+
## Record columns
|
| 36 |
+
|
| 37 |
+
* `shard`, `ordinal`: the training shard and the record's position in it.
|
| 38 |
+
* `build_host`: the converter process (0-31) that wrote the shard. Host h read timm tars h,
|
| 39 |
+
h+32, ..., h+2016 in that order.
|
| 40 |
+
* `timm_tar`, `timm_key`, `timm_sample_index`: the image in `timm/imagenet-w21-wds` (tar file at
|
| 41 |
+
the pinned revision, webdataset key, position among the tar's samples).
|
| 42 |
+
* `image_sha256` (raw 32 bytes), `image_len`: the jpg bytes as they are in the timm tar. The
|
| 43 |
+
builder copied them without re-encoding or resizing.
|
| 44 |
+
* `image_hash_multi_key`: the same image bytes occur under more than one key in timm (some
|
| 45 |
+
ImageNet-21k images are filed under several synsets). The record names the key the builder
|
| 46 |
+
actually read.
|
| 47 |
+
* `feature_order`, `query_text`, `text`, `neg_text`, `wnid`, `src`, `license`, `cand_jpg`,
|
| 48 |
+
`teacher_scores`: the stored fields of the record, exactly as written. `query_text` is one of
|
| 49 |
+
three question templates; `text` is the answer (first WordNet lemma of the synset);
|
| 50 |
+
`neg_text` holds up to eight names of sibling synsets separated by `\x1f`; `wnid` is the
|
| 51 |
+
WordNet id; `src` and `license` are constant strings written by the builder; `cand_jpg` is
|
| 52 |
+
empty; `teacher_scores` holds nine placeholder values (-1.0). `feature_order` is the order in
|
| 53 |
+
which the features were serialized; it is fixed per build host and needed for the byte-exact
|
| 54 |
+
rebuild.
|
| 55 |
+
* `record_sha256`, `record_len`, `record_crc32c_masked`, `frame_offset`: the serialized record
|
| 56 |
+
and its position in the shard.
|
| 57 |
+
* `record_content_hash`: blake2b-64 of the serialized record; the filter lists name records by
|
| 58 |
+
shard, ordinal and this hash.
|
| 59 |
+
* `training_input_sha256`: digest of the training input that the OpenEmbed training code built
|
| 60 |
+
from this record, for checking the code release against this data.
|
| 61 |
+
* `dedup_skip`, `contamination_block`, `reaches_training`: see Filters.
|
| 62 |
+
|
| 63 |
+
## Filters
|
| 64 |
+
|
| 65 |
+
The training reader read all 3,270 shards and left out the records on two lists:
|
| 66 |
+
|
| 67 |
+
* `filters/dedup_skip.parquet`: 247,331 records that repeat an earlier record of this dataset
|
| 68 |
+
exactly. The first copy is kept; the table names it.
|
| 69 |
+
* `filters/contamination_block.parquet`: 162 records whose image matched an image of an
|
| 70 |
+
evaluation benchmark (rule, task and match type are listed).
|
| 71 |
+
|
| 72 |
+
No record is on both lists; the other 12,768,926 records reached training (`reaches_training`).
|
| 73 |
+
Every list entry was checked against the content hash of the record at that position. The
|
| 74 |
+
contamination scan also reported 1,204 cross-type image matches that were not removed; they are
|
| 75 |
+
not listed here.
|
| 76 |
+
|
| 77 |
+
At read time the training code also normalises each record: it uses the dataset instruction
|
| 78 |
+
instead of the stored question template, keeps the first WordNet lemma of the answer and of
|
| 79 |
+
each negative, and drops duplicate negatives. These steps belong to the training code and are
|
| 80 |
+
not applied to the stored fields.
|
| 81 |
+
|
| 82 |
+
## Getting the images
|
| 83 |
+
|
| 84 |
+
1. Sign in on Hugging Face and open
|
| 85 |
+
[`timm/imagenet-w21-wds`](https://huggingface.co/datasets/timm/imagenet-w21-wds). Read the
|
| 86 |
+
ImageNet Terms of Access shown there and accept them; access is then granted automatically.
|
| 87 |
+
2. Log in on the machine that will download (`hf auth login`; with an older `huggingface_hub`,
|
| 88 |
+
`huggingface-cli login`).
|
| 89 |
+
3. Download the 2,048 tars at revision `c08bf7ec5384ac07212a1cc1867e93fb78f5cbcc`
|
| 90 |
+
(1,168,224,122,880 bytes; `timm_tars.parquet` lists each tar's sha256 and size), or let the
|
| 91 |
+
loader stream them (`--hf`).
|
| 92 |
+
|
| 93 |
+
## Rebuilding the training shards
|
| 94 |
+
|
| 95 |
+
```
|
| 96 |
+
pip install pyarrow huggingface_hub crc32c
|
| 97 |
+
python tools/tests/test_loader.py
|
| 98 |
+
python tools/loader.py check-tars --package . --timm-dir TARS # optional
|
| 99 |
+
python tools/loader.py rebuild --package . --timm-dir TARS --out SHARDS # all 3,270 shards
|
| 100 |
+
python tools/loader.py rebuild --package . --hf --out SHARDS --shards part-h000-00000.tfrecord
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
`--hosts` selects whole build hosts; host h needs tars h, h+32, ..., h+2016.
|
| 104 |
+
|
| 105 |
+
## What "exact" means here
|
| 106 |
+
|
| 107 |
+
The rebuilt shards are the files our training read, byte for byte. The loader checks every
|
| 108 |
+
image against `image_sha256`, every re-serialized record against `record_sha256`, and every
|
| 109 |
+
finished shard against the CRC32C and MD5 in `shards.parquet`. A record whose image is
|
| 110 |
+
missing or differs is left out and listed (shard, ordinal, field, pointer, reason) in
|
| 111 |
+
`rebuild_problems.jsonl`, its shard is written as `<shard>.incomplete`, and the run ends with
|
| 112 |
+
exit status 1. The text fields are stored as the builder wrote them, before the training code's
|
| 113 |
+
read-time normalisation.
|
| 114 |
+
|
| 115 |
+
## Verified counts
|
| 116 |
+
|
| 117 |
+
* 3,270 shards with 13,016,419 records (1,084,515,655,282 bytes).
|
| 118 |
+
* `timm/imagenet-w21-wds` at the pinned revision: 2,048 tars, each matching the sha256 and size
|
| 119 |
+
of the revision's file pointer; 13,151,276 samples, as listed in the repository's `_info.json`.
|
| 120 |
+
* Every record maps to its image in its build host's reading order with equal image sha256 and
|
| 121 |
+
wnid: 13,016,419 of 13,016,419. No record needed another rule and none is unmatched. 2,287,982
|
| 122 |
+
records use an image that occurs under several keys.
|
| 123 |
+
* 134,857 timm samples became no record. All of them are in 21 tars that their build host never
|
| 124 |
+
wrote (`timm_unused_samples.parquet`); inside the other 2,027 tars every sample became a record.
|
| 125 |
+
* Re-encoding the stored fields with the original image gives the original record for all
|
| 126 |
+
13,016,419 records, and all 3,270 shards rebuild with their original CRC32C and MD5.
|
| 127 |
+
* Six shards were also rebuilt from images downloaded from `timm/imagenet-w21-wds` (across tar
|
| 128 |
+
boundaries, at the end of a host's sequence, and with records on both filter lists), with
|
| 129 |
+
CRC32C and MD5 equal to the originals.
|
| 130 |
+
|
| 131 |
+
## Terms
|
| 132 |
+
|
| 133 |
+
* This folder contains no images. The images come from `timm/imagenet-w21-wds`, which grants
|
| 134 |
+
access under the ImageNet Terms of Access. In short, those terms allow use of the database
|
| 135 |
+
only for non-commercial research and educational purposes; give no warranty; make the user
|
| 136 |
+
responsible for their use, including any copies of copyrighted images made from the database,
|
| 137 |
+
and require indemnifying the ImageNet team, Princeton University, Stanford University and
|
| 138 |
+
Hugging Face; allow giving access to research associates and colleagues only after they agree
|
| 139 |
+
to the same terms; allow access to be ended at any time; bind a for-profit employer as well;
|
| 140 |
+
and are governed by New Jersey law. Read the full text on the dataset page before accepting.
|
| 141 |
+
* The `license` field of every record reads "ImageNet terms (research use only)", as written by
|
| 142 |
+
our builder.
|
| 143 |
+
* The terms for this folder's own content (record fields, mapping and tools) are set at the
|
| 144 |
+
repository level; they do not change the terms of the images.
|
classification/imagenet-21k/SHA256SUMS.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
b9921381514d2e997476395d4391650d0fff2117615419666fa48829f58c8da1 README.md
|
| 2 |
+
b3e905df722f56911af04d92cbfc89dc59475cbd90bed065bd990f744e2c2c68 filters/contamination_block.parquet
|
| 3 |
+
326f77a6a1acff522b34e2e4b912956e29f55768a0ac0bde7ac828229dd5046c filters/dedup_skip.parquet
|
| 4 |
+
811fcbd2e3889c140c536d7218144d76e3ca878fbddbc8042b588dddb2c50f5e records/part-00000.parquet
|
| 5 |
+
11ec75a49751a7fab6cf25d03913cdb2c3351442d196e1b233fe332a1cdfc81c records/part-00001.parquet
|
| 6 |
+
a7d93e4a1df8dd097722724378b09c14c193b6a7b2db22442dbdc04a9f69107f records/part-00002.parquet
|
| 7 |
+
1333b2a4a6b153395c91e99f5d06ad9681b8457b25c9b0aa0685d91bee15b12c records/part-00003.parquet
|
| 8 |
+
e0a672e84a48f98cb93ff604b956d8dfc6131f7c3001bfc3fd8e009b4ef46a76 records/part-00004.parquet
|
| 9 |
+
382faaf45f82fa1cd359701a3d0e922de79c95879e252256d540e185df4416e1 records/part-00005.parquet
|
| 10 |
+
a0fc63b6248c43814dbba846261806347ad1f1bca1691c2c2dc81f7c89e8a770 records/part-00006.parquet
|
| 11 |
+
6e2095b41241ea918303e3eb5ff995427157da1b2a6fc84026a5a9f01aff1354 records/part-00007.parquet
|
| 12 |
+
692c4d22c845f5f489e1b8f3840a718c07b49943cd8a3f7b0a2b11bafa5eaa9a shards.parquet
|
| 13 |
+
883f446497d7b8f3109c4a3480940c011c4c7b2e47d9b48cea2b7f2bd1b90a64 timm_tars.parquet
|
| 14 |
+
6be31a7ce466f78528a351c118088924401db6004739f9332666be2828214a23 timm_unused_samples.parquet
|
| 15 |
+
f2cf0bde3c78fdecf9e6812b623a62674e2a64d3173ea8393b4e864d48864f75 tools/loader.py
|
| 16 |
+
e9489e0aa7dbcaa5d9aef69d2de045dcce75aa2ec7f5d9883cadea8082e265f1 tools/tests/test_loader.py
|
classification/imagenet-21k/filters/contamination_block.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3e905df722f56911af04d92cbfc89dc59475cbd90bed065bd990f744e2c2c68
|
| 3 |
+
size 7337
|
classification/imagenet-21k/filters/dedup_skip.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:326f77a6a1acff522b34e2e4b912956e29f55768a0ac0bde7ac828229dd5046c
|
| 3 |
+
size 3417240
|
classification/imagenet-21k/records/part-00000.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:811fcbd2e3889c140c536d7218144d76e3ca878fbddbc8042b588dddb2c50f5e
|
| 3 |
+
size 240278230
|
classification/imagenet-21k/records/part-00001.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:11ec75a49751a7fab6cf25d03913cdb2c3351442d196e1b233fe332a1cdfc81c
|
| 3 |
+
size 239399377
|
classification/imagenet-21k/records/part-00002.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7d93e4a1df8dd097722724378b09c14c193b6a7b2db22442dbdc04a9f69107f
|
| 3 |
+
size 237527738
|
classification/imagenet-21k/records/part-00003.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1333b2a4a6b153395c91e99f5d06ad9681b8457b25c9b0aa0685d91bee15b12c
|
| 3 |
+
size 238491880
|
classification/imagenet-21k/records/part-00004.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0a672e84a48f98cb93ff604b956d8dfc6131f7c3001bfc3fd8e009b4ef46a76
|
| 3 |
+
size 237592334
|
classification/imagenet-21k/records/part-00005.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:382faaf45f82fa1cd359701a3d0e922de79c95879e252256d540e185df4416e1
|
| 3 |
+
size 238509569
|
classification/imagenet-21k/records/part-00006.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0fc63b6248c43814dbba846261806347ad1f1bca1691c2c2dc81f7c89e8a770
|
| 3 |
+
size 240399065
|
classification/imagenet-21k/records/part-00007.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e2095b41241ea918303e3eb5ff995427157da1b2a6fc84026a5a9f01aff1354
|
| 3 |
+
size 238539425
|
classification/imagenet-21k/shards.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:692c4d22c845f5f489e1b8f3840a718c07b49943cd8a3f7b0a2b11bafa5eaa9a
|
| 3 |
+
size 111927
|
classification/imagenet-21k/timm_tars.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:883f446497d7b8f3109c4a3480940c011c4c7b2e47d9b48cea2b7f2bd1b90a64
|
| 3 |
+
size 84275
|
classification/imagenet-21k/timm_unused_samples.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6be31a7ce466f78528a351c118088924401db6004739f9332666be2828214a23
|
| 3 |
+
size 6105583
|
classification/imagenet-21k/tools/loader.py
ADDED
|
@@ -0,0 +1,384 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Rebuild the ImageNet-21k training shards of this package from the timm images.
|
| 3 |
+
|
| 4 |
+
This folder holds every field of the 13,016,419 training records except the image bytes. Each
|
| 5 |
+
record names its image in timm/imagenet-w21-wds at revision
|
| 6 |
+
c08bf7ec5384ac07212a1cc1867e93fb78f5cbcc (tar file + sample key). This script fetches those
|
| 7 |
+
images and writes the training shards back, byte for byte:
|
| 8 |
+
|
| 9 |
+
* every image must have the sha256 stored in the record (``image_sha256``);
|
| 10 |
+
* every re-serialized record must have the stored ``record_sha256``;
|
| 11 |
+
* every finished shard must have the CRC32C and MD5 listed in ``shards.parquet``.
|
| 12 |
+
Any mismatch stops with an error; no record is skipped or changed.
|
| 13 |
+
|
| 14 |
+
Commands
|
| 15 |
+
rebuild write shards (all, or --shards / --hosts) to --out
|
| 16 |
+
iterate print a summary of the records that reached training (filters applied), with
|
| 17 |
+
their images; use ``iter_training_records`` from Python for the records themselves
|
| 18 |
+
check-tars sha256 of local timm tars against ``timm_tars.parquet``
|
| 19 |
+
|
| 20 |
+
Images come from local tars (``--timm-dir``, the files as downloaded from Hugging Face) or are
|
| 21 |
+
streamed from Hugging Face (``--hf``; needs ``huggingface_hub`` and a login that has accepted the
|
| 22 |
+
ImageNet terms of access on the timm/imagenet-w21-wds page). Requirements: pyarrow; crc32c or
|
| 23 |
+
google-crc32c makes CRC32C fast (a pure-Python fallback is used otherwise, very slow).
|
| 24 |
+
|
| 25 |
+
python tools/loader.py rebuild --package . --timm-dir /data/imagenet-w21-wds --out shards/
|
| 26 |
+
python tools/loader.py rebuild --package . --hf --out shards/ --shards part-h000-00000.tfrecord
|
| 27 |
+
"""
|
| 28 |
+
from __future__ import annotations
|
| 29 |
+
|
| 30 |
+
import argparse
|
| 31 |
+
import hashlib
|
| 32 |
+
import io
|
| 33 |
+
import json
|
| 34 |
+
import os
|
| 35 |
+
import struct
|
| 36 |
+
import sys
|
| 37 |
+
import tarfile
|
| 38 |
+
from collections import defaultdict
|
| 39 |
+
|
| 40 |
+
TIMM_REPO = "timm/imagenet-w21-wds"
|
| 41 |
+
TIMM_REVISION = "c08bf7ec5384ac07212a1cc1867e93fb78f5cbcc"
|
| 42 |
+
BYTES_FEATURES = ("query_text", "text", "neg_text", "wnid", "src", "license")
|
| 43 |
+
|
| 44 |
+
# --------------------------------------------------------------------------- CRC32C
|
| 45 |
+
try:
|
| 46 |
+
import crc32c as _c
|
| 47 |
+
|
| 48 |
+
def crc32c_update(crc: int, data) -> int:
|
| 49 |
+
return _c.crc32c(data, crc)
|
| 50 |
+
except ImportError: # pragma: no cover
|
| 51 |
+
try:
|
| 52 |
+
import google_crc32c as _g
|
| 53 |
+
|
| 54 |
+
def crc32c_update(crc: int, data) -> int:
|
| 55 |
+
return _g.extend(crc, bytes(data))
|
| 56 |
+
except ImportError:
|
| 57 |
+
_T = []
|
| 58 |
+
for _i in range(256):
|
| 59 |
+
_r = _i
|
| 60 |
+
for _ in range(8):
|
| 61 |
+
_r = (_r >> 1) ^ 0x82F63B78 if _r & 1 else _r >> 1
|
| 62 |
+
_T.append(_r)
|
| 63 |
+
|
| 64 |
+
def crc32c_update(crc: int, data) -> int:
|
| 65 |
+
r = crc ^ 0xFFFFFFFF
|
| 66 |
+
for b in bytes(data):
|
| 67 |
+
r = _T[(r ^ b) & 0xFF] ^ (r >> 8)
|
| 68 |
+
return r ^ 0xFFFFFFFF
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
def masked_crc32c(data) -> int:
|
| 72 |
+
c = crc32c_update(0, data)
|
| 73 |
+
return (((c >> 15) | (c << 17)) + 0xA282EAD8) & 0xFFFFFFFF
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
def frame(payload: bytes) -> bytes:
|
| 77 |
+
"""One TFRecord frame: length, masked CRC of the length, payload, masked CRC of the payload."""
|
| 78 |
+
ln = struct.pack("<Q", len(payload))
|
| 79 |
+
return ln + struct.pack("<I", masked_crc32c(ln)) + payload + struct.pack("<I", masked_crc32c(payload))
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
# --------------------------------------------------------------------------- tf.train.Example
|
| 83 |
+
def _varint(n: int) -> bytes:
|
| 84 |
+
out = bytearray()
|
| 85 |
+
while True:
|
| 86 |
+
b = n & 0x7F
|
| 87 |
+
n >>= 7
|
| 88 |
+
if n:
|
| 89 |
+
out.append(b | 0x80)
|
| 90 |
+
else:
|
| 91 |
+
out.append(b)
|
| 92 |
+
return bytes(out)
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def _ld(field: int, payload: bytes) -> bytes:
|
| 96 |
+
return _varint((field << 3) | 2) + _varint(len(payload)) + payload
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def _bytes_feature(values: list[bytes]) -> bytes:
|
| 100 |
+
return _ld(1, b"".join(_ld(1, v) for v in values)) # Feature.bytes_list
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
def _float_feature(values: list[float]) -> bytes:
|
| 104 |
+
body = _ld(1, struct.pack(f"<{len(values)}f", *values)) if values else b""
|
| 105 |
+
return _ld(2, body) # Feature.float_list (packed)
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
def encode_record(row: dict, jpg: bytes) -> bytes:
|
| 109 |
+
"""Serialize one record as tf.train.Example, map entries in the stored feature order."""
|
| 110 |
+
entries = []
|
| 111 |
+
for name in row["feature_order"].split(","):
|
| 112 |
+
if name == "jpg":
|
| 113 |
+
feat = _bytes_feature([jpg])
|
| 114 |
+
elif name == "cand_jpg":
|
| 115 |
+
feat = _bytes_feature([bytes(row["cand_jpg"])])
|
| 116 |
+
elif name == "teacher_scores":
|
| 117 |
+
feat = _float_feature(list(row["teacher_scores"]))
|
| 118 |
+
elif name in BYTES_FEATURES:
|
| 119 |
+
feat = _bytes_feature([row[name].encode("utf-8")])
|
| 120 |
+
else:
|
| 121 |
+
raise ValueError(f"unknown feature {name!r}")
|
| 122 |
+
entries.append(_ld(1, _ld(1, name.encode("utf-8")) + _ld(2, feat)))
|
| 123 |
+
return _ld(1, b"".join(entries))
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
# --------------------------------------------------------------------------- package files
|
| 127 |
+
def _pq():
|
| 128 |
+
import pyarrow.dataset as ds
|
| 129 |
+
import pyarrow.parquet as pq
|
| 130 |
+
return ds, pq
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def read_table(package: str, name: str):
|
| 134 |
+
_, pq = _pq()
|
| 135 |
+
return pq.read_table(os.path.join(package, name))
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
def _dataset(package: str):
|
| 139 |
+
ds, _ = _pq()
|
| 140 |
+
return ds, ds.dataset(os.path.join(package, "records"), format="parquet")
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
def shard_rows(package: str, shard: str) -> list[dict]:
|
| 144 |
+
"""All columns of one shard's records, in ordinal order."""
|
| 145 |
+
ds, dset = _dataset(package)
|
| 146 |
+
rows = dset.to_table(filter=ds.field("shard") == shard).to_pylist()
|
| 147 |
+
rows.sort(key=lambda r: r["ordinal"])
|
| 148 |
+
return rows
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
def image_sources(package: str, shards: list[str]) -> dict[str, dict[str, set[str]]]:
|
| 152 |
+
"""{shard: {tar: {keys}}} from two projected columns only (cheap for many shards)."""
|
| 153 |
+
ds, dset = _dataset(package)
|
| 154 |
+
tbl = dset.to_table(columns=["shard", "timm_tar", "timm_key"], filter=ds.field("shard").isin(shards))
|
| 155 |
+
out: dict[str, dict[str, set[str]]] = defaultdict(lambda: defaultdict(set))
|
| 156 |
+
for s, t, k in zip(*(tbl.column(c).to_pylist() for c in ("shard", "timm_tar", "timm_key"))):
|
| 157 |
+
out[s][t].add(k)
|
| 158 |
+
return out
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
class _TarCache:
|
| 162 |
+
"""Fetch each timm tar once for a group of shards; free it when no later shard needs it."""
|
| 163 |
+
|
| 164 |
+
def __init__(self, images: "TimmImages", sources: dict[str, dict[str, set[str]]], order: list[str]):
|
| 165 |
+
self.images, self.sources = images, sources
|
| 166 |
+
self.need: dict[str, set[str]] = defaultdict(set)
|
| 167 |
+
self.left: dict[str, int] = defaultdict(int)
|
| 168 |
+
for s in order:
|
| 169 |
+
for t, keys in sources.get(s, {}).items():
|
| 170 |
+
self.need[t] |= keys
|
| 171 |
+
self.left[t] += 1
|
| 172 |
+
self.cache: dict[str, dict[str, bytes]] = {}
|
| 173 |
+
|
| 174 |
+
def images_for(self, shard: str) -> dict[tuple[str, str], bytes]:
|
| 175 |
+
out = {}
|
| 176 |
+
for t in sorted(self.sources.get(shard, {})):
|
| 177 |
+
if t not in self.cache:
|
| 178 |
+
self.cache[t] = self.images.fetch(t, self.need[t])
|
| 179 |
+
out.update({(t, k): v for k, v in self.cache[t].items()})
|
| 180 |
+
return out
|
| 181 |
+
|
| 182 |
+
def done(self, shard: str) -> None:
|
| 183 |
+
for t in self.sources.get(shard, {}):
|
| 184 |
+
self.left[t] -= 1
|
| 185 |
+
if self.left[t] == 0:
|
| 186 |
+
self.cache.pop(t, None)
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
# --------------------------------------------------------------------------- timm images
|
| 190 |
+
class TimmImages:
|
| 191 |
+
"""jpg bytes by (tar, key), from local tars or streamed from the pinned Hugging Face revision."""
|
| 192 |
+
|
| 193 |
+
def __init__(self, timm_dir: str | None = None, hf: bool = False):
|
| 194 |
+
if not timm_dir and not hf:
|
| 195 |
+
raise SystemExit("give --timm-dir or --hf")
|
| 196 |
+
self.timm_dir, self.hf = timm_dir, hf
|
| 197 |
+
|
| 198 |
+
def _open(self, tar: str):
|
| 199 |
+
if self.timm_dir:
|
| 200 |
+
return open(os.path.join(self.timm_dir, tar), "rb")
|
| 201 |
+
import urllib.request
|
| 202 |
+
from huggingface_hub import get_token
|
| 203 |
+
url = f"https://huggingface.co/datasets/{TIMM_REPO}/resolve/{TIMM_REVISION}/{tar}"
|
| 204 |
+
req = urllib.request.Request(url)
|
| 205 |
+
tok = get_token()
|
| 206 |
+
if tok:
|
| 207 |
+
req.add_unredirected_header("Authorization", f"Bearer {tok}")
|
| 208 |
+
return io.BufferedReader(urllib.request.urlopen(req, timeout=300), 8 << 20)
|
| 209 |
+
|
| 210 |
+
def fetch(self, tar: str, keys: set[str]) -> dict[str, bytes]:
|
| 211 |
+
"""The images of the wanted keys that the tar holds (a key it lacks, or a tar that cannot be read, is
|
| 212 |
+
reported per record by the caller)."""
|
| 213 |
+
got: dict[str, bytes] = {}
|
| 214 |
+
try:
|
| 215 |
+
with self._open(tar) as f, tarfile.open(fileobj=f, mode="r|") as tf:
|
| 216 |
+
for m in tf:
|
| 217 |
+
if not m.isfile():
|
| 218 |
+
continue
|
| 219 |
+
base, _, ext = m.name.rpartition(".")
|
| 220 |
+
if ext == "jpg" and base in keys:
|
| 221 |
+
got[base] = tf.extractfile(m).read()
|
| 222 |
+
except Exception as e: # noqa: BLE001
|
| 223 |
+
print(f"{tar}: not read completely ({type(e).__name__}: {str(e)[:200]})", file=sys.stderr, flush=True)
|
| 224 |
+
return got
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
# --------------------------------------------------------------------------- rebuild
|
| 228 |
+
def _by_host(package: str, shards: list[str]) -> list[list[str]]:
|
| 229 |
+
meta = {r["shard"]: r for r in read_table(package, "shards.parquet").to_pylist()}
|
| 230 |
+
groups: dict[int, list[str]] = defaultdict(list)
|
| 231 |
+
for s in shards:
|
| 232 |
+
if s not in meta:
|
| 233 |
+
raise SystemExit(f"{s}: not a shard of this package")
|
| 234 |
+
groups[meta[s]["build_host"]].append(s)
|
| 235 |
+
return [sorted(v, key=lambda s: meta[s]["shard_index"]) for _, v in sorted(groups.items())]
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
def rebuild(package: str, shards: list[str], images: TimmImages, out_dir: str) -> list[dict]:
|
| 239 |
+
"""Rebuild the shards. A record goes into its shard only with its image found and both sha256 equal; every other
|
| 240 |
+
record is left out and listed in its result's "problems" (shard, ordinal, field, pointer, reason), and its shard is
|
| 241 |
+
written as <shard>.incomplete (2026-11-12: problems no longer stop the run at the first one)."""
|
| 242 |
+
meta = {r["shard"]: r for r in read_table(package, "shards.parquet").to_pylist()}
|
| 243 |
+
os.makedirs(out_dir, exist_ok=True)
|
| 244 |
+
results = []
|
| 245 |
+
for group in _by_host(package, shards):
|
| 246 |
+
cache = _TarCache(images, image_sources(package, group), group)
|
| 247 |
+
for shard in group:
|
| 248 |
+
results.append(_rebuild_one(package, shard, meta[shard], cache, out_dir))
|
| 249 |
+
cache.done(shard)
|
| 250 |
+
return results
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
def _rebuild_one(package: str, shard: str, meta: dict, cache: "_TarCache", out_dir: str) -> dict:
|
| 254 |
+
recs = shard_rows(package, shard)
|
| 255 |
+
problems = []
|
| 256 |
+
|
| 257 |
+
def problem(ordinal, field, pointer, reason):
|
| 258 |
+
problems.append({"shard": shard, "ordinal": ordinal, "field": field, "pointer": pointer, "reason": reason})
|
| 259 |
+
if not recs:
|
| 260 |
+
problem(None, "records", None, "no records in this package (is its records/ file present?)")
|
| 261 |
+
elif len(recs) != meta["records"] or [r["ordinal"] for r in recs] != list(range(len(recs))):
|
| 262 |
+
problem(None, "records", None, f"{len(recs)} records with gaps or extras; shards.parquet says {meta['records']}")
|
| 263 |
+
imgs = cache.images_for(shard) if recs else {}
|
| 264 |
+
md5, crc, ok = hashlib.md5(), 0, 0
|
| 265 |
+
path = os.path.join(out_dir, shard)
|
| 266 |
+
with open(path + ".partial", "wb") as f:
|
| 267 |
+
for r in recs:
|
| 268 |
+
ptr = {"tar": r["timm_tar"], "key": r["timm_key"]}
|
| 269 |
+
jpg = imgs.get((r["timm_tar"], r["timm_key"]))
|
| 270 |
+
if jpg is None:
|
| 271 |
+
problem(r["ordinal"], "image", ptr, "not in the timm tar (or the tar could not be read)")
|
| 272 |
+
continue
|
| 273 |
+
if hashlib.sha256(jpg).digest() != r["image_sha256"]:
|
| 274 |
+
problem(r["ordinal"], "image", ptr, "differs from the training image (sha256)")
|
| 275 |
+
continue
|
| 276 |
+
payload = encode_record(r, jpg)
|
| 277 |
+
if hashlib.sha256(payload).digest() != r["record_sha256"]:
|
| 278 |
+
problem(r["ordinal"], "record", ptr, "the rebuilt record differs from record_sha256")
|
| 279 |
+
continue
|
| 280 |
+
fr = frame(payload)
|
| 281 |
+
f.write(fr)
|
| 282 |
+
md5.update(fr)
|
| 283 |
+
crc = crc32c_update(crc, fr)
|
| 284 |
+
ok += 1
|
| 285 |
+
complete = not problems and crc == meta["crc32c"] and md5.hexdigest() == meta["md5"]
|
| 286 |
+
if not problems and not complete:
|
| 287 |
+
problem(None, "shard", None, f"shard checksum differs (crc32c {crc}, md5 {md5.hexdigest()})")
|
| 288 |
+
final = path if complete else path + ".incomplete"
|
| 289 |
+
os.replace(path + ".partial", final)
|
| 290 |
+
res = {"shard": shard, "records": len(recs), "written": ok, "crc32c": crc, "md5": md5.hexdigest(),
|
| 291 |
+
"checksums_equal": complete, "written_as": os.path.basename(final), "problems": problems}
|
| 292 |
+
print({k: v for k, v in res.items() if k != "problems"} | {"problems": len(problems)}, flush=True)
|
| 293 |
+
return res
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
def iter_training_records(package: str, shards: list[str], images: TimmImages, problems: list | None = None):
|
| 297 |
+
"""Yield the records that reached training (filters applied), each with its image bytes. A record whose image is
|
| 298 |
+
missing or differs is skipped and appended to ``problems``; without that list, the iterator raises at the end
|
| 299 |
+
(after every good record) when any was skipped.
|
| 300 |
+
|
| 301 |
+
The text is as stored by the builder. The OpenEmbed training code then applies its read-time
|
| 302 |
+
normalisation (dataset instruction instead of the stored question template, first WordNet
|
| 303 |
+
lemma, duplicate negatives dropped); that code is not part of this folder."""
|
| 304 |
+
found = problems if problems is not None else []
|
| 305 |
+
for group in _by_host(package, shards):
|
| 306 |
+
cache = _TarCache(images, image_sources(package, group), group)
|
| 307 |
+
for shard in group:
|
| 308 |
+
imgs = cache.images_for(shard)
|
| 309 |
+
for r in shard_rows(package, shard):
|
| 310 |
+
if not r["reaches_training"]:
|
| 311 |
+
continue
|
| 312 |
+
jpg = imgs.get((r["timm_tar"], r["timm_key"]))
|
| 313 |
+
if jpg is None or hashlib.sha256(jpg).digest() != r["image_sha256"]:
|
| 314 |
+
found.append({"shard": shard, "ordinal": r["ordinal"], "field": "image",
|
| 315 |
+
"pointer": {"tar": r["timm_tar"], "key": r["timm_key"]},
|
| 316 |
+
"reason": "not in the timm tar" if jpg is None else "differs from the training image (sha256)"})
|
| 317 |
+
continue
|
| 318 |
+
yield {"shard": shard, "ordinal": r["ordinal"], "image": jpg, "question": r["query_text"],
|
| 319 |
+
"answer": r["text"], "negatives": [t for t in r["neg_text"].split("\x1f") if t],
|
| 320 |
+
"wnid": r["wnid"]}
|
| 321 |
+
cache.done(shard)
|
| 322 |
+
if found and problems is None:
|
| 323 |
+
raise SystemExit(f"{len(found)} records skipped (image missing or different), e.g. {found[:3]}")
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
def check_tars(package: str, timm_dir: str) -> int:
|
| 327 |
+
bad = 0
|
| 328 |
+
for r in read_table(package, "timm_tars.parquet").to_pylist():
|
| 329 |
+
p = os.path.join(timm_dir, r["tar"])
|
| 330 |
+
if not os.path.exists(p):
|
| 331 |
+
continue
|
| 332 |
+
h = hashlib.sha256()
|
| 333 |
+
with open(p, "rb") as f:
|
| 334 |
+
for chunk in iter(lambda: f.read(8 << 20), b""):
|
| 335 |
+
h.update(chunk)
|
| 336 |
+
ok = h.hexdigest() == r["sha256"]
|
| 337 |
+
bad += not ok
|
| 338 |
+
print(r["tar"], "ok" if ok else "SHA256 DIFFERS", flush=True)
|
| 339 |
+
return bad
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
def main() -> None:
|
| 343 |
+
ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
| 344 |
+
ap.add_argument("command", choices=["rebuild", "iterate", "check-tars"])
|
| 345 |
+
ap.add_argument("--package", default=".", help="this folder (records/, shards.parquet, ...)")
|
| 346 |
+
ap.add_argument("--timm-dir", help="folder with the timm .tar files")
|
| 347 |
+
ap.add_argument("--hf", action="store_true", help="stream the tars from Hugging Face")
|
| 348 |
+
ap.add_argument("--out", help="output folder for rebuilt shards")
|
| 349 |
+
ap.add_argument("--shards", default="", help="comma list of shard names")
|
| 350 |
+
ap.add_argument("--hosts", default="", help="comma list of build hosts (0-31): all their shards")
|
| 351 |
+
ap.add_argument("--problems", help="JSON lines, one per record that could not be rebuilt (default: "
|
| 352 |
+
"<out>/rebuild_problems.jsonl, else ./imagenet21k_problems.jsonl)")
|
| 353 |
+
args = ap.parse_args()
|
| 354 |
+
if args.command == "check-tars":
|
| 355 |
+
sys.exit(1 if check_tars(args.package, args.timm_dir) else 0)
|
| 356 |
+
meta = read_table(args.package, "shards.parquet").to_pylist()
|
| 357 |
+
if args.shards:
|
| 358 |
+
shards = [s.strip() for s in args.shards.split(",") if s.strip()]
|
| 359 |
+
elif args.hosts:
|
| 360 |
+
hs = {int(h) for h in args.hosts.split(",")}
|
| 361 |
+
shards = [m["shard"] for m in meta if m["build_host"] in hs]
|
| 362 |
+
else:
|
| 363 |
+
shards = [m["shard"] for m in meta]
|
| 364 |
+
images = TimmImages(args.timm_dir, args.hf)
|
| 365 |
+
probs = []
|
| 366 |
+
if args.command == "rebuild":
|
| 367 |
+
if not args.out:
|
| 368 |
+
raise SystemExit("rebuild needs --out")
|
| 369 |
+
probs = [p for r in rebuild(args.package, shards, images, args.out) for p in r["problems"]]
|
| 370 |
+
else:
|
| 371 |
+
n = sum(1 for _ in iter_training_records(args.package, shards, images, probs))
|
| 372 |
+
print({"shards": len(shards), "records_reaching_training": n, "skipped": len(probs)})
|
| 373 |
+
if probs:
|
| 374 |
+
path = args.problems or (os.path.join(args.out, "rebuild_problems.jsonl") if args.out else "imagenet21k_problems.jsonl")
|
| 375 |
+
with open(path, "w") as fh:
|
| 376 |
+
for p in probs:
|
| 377 |
+
fh.write(json.dumps(p) + "\n")
|
| 378 |
+
print(f"INCOMPLETE: {len(probs)} problems listed in {path}" +
|
| 379 |
+
("; their shards are written as <shard>.incomplete" if args.command == "rebuild" else ""), flush=True)
|
| 380 |
+
sys.exit(1)
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
if __name__ == "__main__":
|
| 384 |
+
main()
|
classification/imagenet-21k/tools/tests/test_loader.py
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Offline tests of tools/loader.py (no network, no ImageNet data).
|
| 2 |
+
|
| 3 |
+
1. The record encoder reproduces a golden serialization. The golden bytes come from the encoder
|
| 4 |
+
that re-created all 13,016,419 training records of this package byte for byte from their
|
| 5 |
+
stored fields, so this pins the published loader to it.
|
| 6 |
+
2. End to end: a synthetic package (records parquet, shards.parquet, timm_tars.parquet) and a
|
| 7 |
+
fake timm tar; ``rebuild`` writes the shard and checks every hash; the output equals the
|
| 8 |
+
reference bytes; a corrupted image is refused; ``iter_training_records`` leaves out records
|
| 9 |
+
that did not reach training.
|
| 10 |
+
|
| 11 |
+
python tools/tests/test_loader.py
|
| 12 |
+
"""
|
| 13 |
+
from __future__ import annotations
|
| 14 |
+
|
| 15 |
+
import hashlib
|
| 16 |
+
import io
|
| 17 |
+
import json
|
| 18 |
+
import os
|
| 19 |
+
import sys
|
| 20 |
+
import tarfile
|
| 21 |
+
import tempfile
|
| 22 |
+
|
| 23 |
+
HERE = os.path.dirname(os.path.abspath(__file__))
|
| 24 |
+
sys.path.insert(0, os.path.join(HERE, ".."))
|
| 25 |
+
import loader as L # noqa: E402
|
| 26 |
+
|
| 27 |
+
ORDER = "query_text,cand_jpg,neg_text,jpg,license,wnid,text,teacher_scores,src"
|
| 28 |
+
GOLDEN_FRAME = bytes.fromhex(
|
| 29 |
+
"0a01000000000000a8532f640a87020a2c0a0a71756572795f74657874121e0a1c0a1a576861742069732074686973206120"
|
| 30 |
+
"70696374757265206f663f0a100a0863616e645f6a706712040a020a000a130a086e65675f7465787412070a050a03611f62"
|
| 31 |
+
"0a170a036a706712100a0e0a0cffd84a50454744415441ffd90a100a076c6963656e736512050a030a014c0a150a04776e69"
|
| 32 |
+
"64120d0a0b0a096e30303030303030310a110a047465787412090a070a057468696e670a3a0a0e746561636865725f73636f"
|
| 33 |
+
"726573122812260a24000080bf000080bf000080bf000080bf000080bf000080bf000080bf000080bf000080bf0a1f0a0373"
|
| 34 |
+
"726312180a160a14636c6173736966792f696d6167656e657432316b3bdb01b8")
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _row(o, key, jpg, *, question="What is this a picture of?", answer="thing", negs="a\x1fb",
|
| 38 |
+
wnid="n00000001", reaches=True):
|
| 39 |
+
r = {"shard": "part-h000-00000.tfrecord", "ordinal": o, "build_host": 0,
|
| 40 |
+
"timm_tar": "imagenet_w21-train-0000.tar", "timm_key": key, "timm_sample_index": o,
|
| 41 |
+
"image_sha256": hashlib.sha256(jpg).digest(), "image_len": len(jpg), "image_hash_multi_key": False,
|
| 42 |
+
"feature_order": ORDER, "query_text": question, "text": answer, "neg_text": negs, "wnid": wnid,
|
| 43 |
+
"src": "classify/imagenet21k", "license": "L", "cand_jpg": b"", "teacher_scores": [-1.0] * 9,
|
| 44 |
+
"record_len": 0, "record_crc32c_masked": 0, "frame_offset": 0, "record_content_hash": 0,
|
| 45 |
+
"training_input_sha256": b"\0" * 32, "dedup_skip": not reaches, "contamination_block": False,
|
| 46 |
+
"reaches_training": reaches}
|
| 47 |
+
payload = L.encode_record(r, jpg)
|
| 48 |
+
r["record_sha256"] = hashlib.sha256(payload).digest()
|
| 49 |
+
r["record_len"] = len(payload)
|
| 50 |
+
return r, L.frame(payload)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def test_golden_encoding():
|
| 54 |
+
r, fr = _row(0, "k0", b"\xff\xd8JPEGDATA\xff\xd9")
|
| 55 |
+
assert fr == GOLDEN_FRAME, "encoder differs from the golden serialization"
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
def _package(tmp, images):
|
| 59 |
+
import pyarrow as pa
|
| 60 |
+
import pyarrow.parquet as pq
|
| 61 |
+
rows, frames = [], []
|
| 62 |
+
for o, (key, jpg) in enumerate(images):
|
| 63 |
+
r, fr = _row(o, key, jpg, reaches=(o != 1))
|
| 64 |
+
rows.append(r)
|
| 65 |
+
frames.append(fr)
|
| 66 |
+
shard_bytes = b"".join(frames)
|
| 67 |
+
os.makedirs(os.path.join(tmp, "pkg", "records"))
|
| 68 |
+
cols = {k: [r[k] for r in rows] for k in rows[0]}
|
| 69 |
+
schema = pa.schema([
|
| 70 |
+
("shard", pa.string()), ("ordinal", pa.int32()), ("build_host", pa.int16()), ("timm_tar", pa.string()),
|
| 71 |
+
("timm_key", pa.string()), ("timm_sample_index", pa.int32()), ("image_sha256", pa.binary(32)),
|
| 72 |
+
("image_len", pa.int32()), ("image_hash_multi_key", pa.bool_()), ("feature_order", pa.string()),
|
| 73 |
+
("query_text", pa.string()), ("text", pa.string()), ("neg_text", pa.string()), ("wnid", pa.string()),
|
| 74 |
+
("src", pa.string()), ("license", pa.string()), ("cand_jpg", pa.binary()),
|
| 75 |
+
("teacher_scores", pa.list_(pa.float32())), ("record_len", pa.int32()),
|
| 76 |
+
("record_crc32c_masked", pa.uint32()), ("frame_offset", pa.int64()), ("record_content_hash", pa.int64()),
|
| 77 |
+
("training_input_sha256", pa.binary(32)), ("dedup_skip", pa.bool_()), ("contamination_block", pa.bool_()),
|
| 78 |
+
("reaches_training", pa.bool_()), ("record_sha256", pa.binary(32))])
|
| 79 |
+
pq.write_table(pa.table(cols, schema=schema), os.path.join(tmp, "pkg", "records", "part-00000.parquet"))
|
| 80 |
+
pq.write_table(pa.table({
|
| 81 |
+
"shard": ["part-h000-00000.tfrecord"], "build_host": [0], "shard_index": [0], "records": [len(rows)],
|
| 82 |
+
"records_reaching_training": [len(rows) - 1], "size_bytes": [len(shard_bytes)],
|
| 83 |
+
"crc32c": pa.array([L.crc32c_update(0, shard_bytes)], pa.uint32()),
|
| 84 |
+
"md5": [hashlib.md5(shard_bytes).hexdigest()]}), os.path.join(tmp, "pkg", "shards.parquet"))
|
| 85 |
+
tar_path = os.path.join(tmp, "timm", "imagenet_w21-train-0000.tar")
|
| 86 |
+
os.makedirs(os.path.dirname(tar_path))
|
| 87 |
+
with tarfile.open(tar_path, "w") as tf:
|
| 88 |
+
for key, jpg in images:
|
| 89 |
+
for ext, data in (("cls", b"0"), ("jpg", jpg), ("json", json.dumps({"class_name": "n00000001"}).encode())):
|
| 90 |
+
ti = tarfile.TarInfo(f"{key}.{ext}")
|
| 91 |
+
ti.size = len(data)
|
| 92 |
+
tf.addfile(ti, io.BytesIO(data))
|
| 93 |
+
pq.write_table(pa.table({"tar": ["imagenet_w21-train-0000.tar"], "revision": [L.TIMM_REVISION],
|
| 94 |
+
"sha256": [hashlib.sha256(open(tar_path, "rb").read()).hexdigest()],
|
| 95 |
+
"size_bytes": [os.path.getsize(tar_path)], "samples": [len(images)]}),
|
| 96 |
+
os.path.join(tmp, "pkg", "timm_tars.parquet"))
|
| 97 |
+
return shard_bytes, tar_path
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def test_end_to_end():
|
| 101 |
+
images = [("n00000001_1", b"\xff\xd8one\xff\xd9"), ("n00000001_2", b"\xff\xd8two\xff\xd9"),
|
| 102 |
+
("n00000001_3", b"\xff\xd8three\xff\xd9")]
|
| 103 |
+
with tempfile.TemporaryDirectory() as tmp:
|
| 104 |
+
shard_bytes, tar_path = _package(tmp, images)
|
| 105 |
+
pkg, out = os.path.join(tmp, "pkg"), os.path.join(tmp, "out")
|
| 106 |
+
imgs = L.TimmImages(timm_dir=os.path.dirname(tar_path))
|
| 107 |
+
res = L.rebuild(pkg, ["part-h000-00000.tfrecord"], imgs, out)
|
| 108 |
+
assert res[0]["checksums_equal"]
|
| 109 |
+
assert open(os.path.join(out, "part-h000-00000.tfrecord"), "rb").read() == shard_bytes
|
| 110 |
+
assert L.check_tars(pkg, os.path.dirname(tar_path)) == 0
|
| 111 |
+
got = list(L.iter_training_records(pkg, ["part-h000-00000.tfrecord"], imgs))
|
| 112 |
+
assert [g["ordinal"] for g in got] == [0, 2] and got[1]["image"] == images[2][1]
|
| 113 |
+
assert got[0]["negatives"] == ["a", "b"]
|
| 114 |
+
# a corrupted image and a missing one: both records left out and listed, the shard written as .incomplete
|
| 115 |
+
# (2026-11-12: the loader no longer stops at the first problem)
|
| 116 |
+
with tarfile.open(tar_path, "w") as tf:
|
| 117 |
+
for key, jpg in images:
|
| 118 |
+
if key == "n00000001_3":
|
| 119 |
+
continue
|
| 120 |
+
data = jpg if key != "n00000001_2" else jpg + b"x"
|
| 121 |
+
for ext, d in (("jpg", data), ("json", b"{}")):
|
| 122 |
+
ti = tarfile.TarInfo(f"{key}.{ext}")
|
| 123 |
+
ti.size = len(d)
|
| 124 |
+
tf.addfile(ti, io.BytesIO(d))
|
| 125 |
+
out2 = os.path.join(tmp, "out2")
|
| 126 |
+
res = L.rebuild(pkg, ["part-h000-00000.tfrecord"], imgs, out2)
|
| 127 |
+
assert not res[0]["checksums_equal"] and res[0]["written_as"] == "part-h000-00000.tfrecord.incomplete"
|
| 128 |
+
assert not os.path.exists(os.path.join(out2, "part-h000-00000.tfrecord"))
|
| 129 |
+
assert sorted((p["ordinal"], p["field"]) for p in res[0]["problems"]) == [(1, "image"), (2, "image")]
|
| 130 |
+
first = shard_bytes[:len(L.frame(L.encode_record(_row(0, images[0][0], images[0][1])[0], images[0][1])))]
|
| 131 |
+
assert open(os.path.join(out2, "part-h000-00000.tfrecord.incomplete"), "rb").read() == first
|
| 132 |
+
probs = []
|
| 133 |
+
got = list(L.iter_training_records(pkg, ["part-h000-00000.tfrecord"], imgs, probs))
|
| 134 |
+
assert [g["ordinal"] for g in got] == [0] and [p["ordinal"] for p in probs] == [2]
|
| 135 |
+
try:
|
| 136 |
+
list(L.iter_training_records(pkg, ["part-h000-00000.tfrecord"], imgs))
|
| 137 |
+
except SystemExit as e:
|
| 138 |
+
assert "1 records skipped" in str(e)
|
| 139 |
+
else:
|
| 140 |
+
raise AssertionError("a missing image went unreported")
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
if __name__ == "__main__":
|
| 144 |
+
test_golden_encoding()
|
| 145 |
+
test_end_to_end()
|
| 146 |
+
print("ok")
|
classification/mmeb-country211/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# mmeb-country211
|
| 2 |
+
|
| 3 |
+
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.
|
| 4 |
+
|
| 5 |
+
* Registry id: `mmeb/Country211` (exact case; the folder name is lowercase). Category: classification.
|
| 6 |
+
* 31,650 records in 16 TFRecord shards (5.69 GB).
|
| 7 |
+
* 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.
|
| 8 |
+
|
| 9 |
+
## Files
|
| 10 |
+
|
| 11 |
+
* `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).
|
| 12 |
+
* `filters.parquet`: per record what the training loader applied when reading it: `adapter_emitted`, `adapter_flags`, `blocked_at_read`, `dedup_skipped`.
|
| 13 |
+
* `shards.parquet`: per shard record count, bytes, md5 and crc32c (base64) of our training shard and of the public rebuild.
|
| 14 |
+
* `set.json`: these facts in machine-readable form.
|
| 15 |
+
|
| 16 |
+
## Rebuild
|
| 17 |
+
|
| 18 |
+
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):
|
| 19 |
+
|
| 20 |
+
```
|
| 21 |
+
python tools/openembed_data/rebuild_shards.py --out shards/ --sets mmeb/Country211
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
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/`.
|
| 25 |
+
|
| 26 |
+
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.
|
| 27 |
+
|
| 28 |
+
## Filters
|
| 29 |
+
|
| 30 |
+
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).
|
| 31 |
+
|
| 32 |
+
## Verified
|
| 33 |
+
|
| 34 |
+
End to end on 2026-11-10:
|
| 35 |
+
|
| 36 |
+
* 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.
|
| 37 |
+
* Public rebuild (this release): 31,650 / 31,650 records and 16 / 16 shards match the `*_public` values.
|
| 38 |
+
* Image references: 31,650, every one fetched from its source with the recorded sha256 and length (missing 0, mismatched 0).
|
| 39 |
+
|
| 40 |
+
## Terms
|
| 41 |
+
|
| 42 |
+
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.
|
| 43 |
+
|
| 44 |
+
These records are derived from the source above and follow its terms. They are released for research use; we remove items on request.
|
classification/mmeb-country211/filters.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14cfa36ac5bb6bc2fc8d61d7d6b41dbd34d9a1858f5f45fe0e6f67ade398bbb0
|
| 3 |
+
size 40377
|
classification/mmeb-country211/records.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a6c6e4755ec90c3ac4bc83bf5a0e68f9aa97072bd5671fdb3a248e762b6db93
|
| 3 |
+
size 5783161
|
classification/mmeb-country211/set.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "mmeb/Country211",
|
| 3 |
+
"folder": "classification/mmeb-country211",
|
| 4 |
+
"category": "classification",
|
| 5 |
+
"kind": "image",
|
| 6 |
+
"rebuildable": true,
|
| 7 |
+
"records": 31650,
|
| 8 |
+
"shards": 16,
|
| 9 |
+
"image_references": 31650,
|
| 10 |
+
"bytes_training_shards": 5685067425,
|
| 11 |
+
"bytes_public_shards": 5685067425,
|
| 12 |
+
"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.",
|
| 13 |
+
"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.",
|
| 14 |
+
"license_class": "TP",
|
| 15 |
+
"license_class_meaning": "open annotations; the images are under third-party terms",
|
| 16 |
+
"read_time_gate": {
|
| 17 |
+
"contamination": "DatasetBlocklist",
|
| 18 |
+
"dedup_skip_list": false,
|
| 19 |
+
"in_overlay": true,
|
| 20 |
+
"overlay_applied": true
|
| 21 |
+
},
|
| 22 |
+
"card_counts_default_policy": {
|
| 23 |
+
"contamination": 1,
|
| 24 |
+
"invalid": 0,
|
| 25 |
+
"invalid_reasons": {},
|
| 26 |
+
"invalid_also_on_contamination_list": 0,
|
| 27 |
+
"merged_duplicates": 0
|
| 28 |
+
},
|
| 29 |
+
"blocked_at_read": 1,
|
| 30 |
+
"skipped_at_read": 0,
|
| 31 |
+
"provenance_public_prefixes": [
|
| 32 |
+
"openembed://stage2-data/",
|
| 33 |
+
"openembed://"
|
| 34 |
+
],
|
| 35 |
+
"in_place": true,
|
| 36 |
+
"provenance_mapped_records": 0,
|
| 37 |
+
"pillow": "none",
|
| 38 |
+
"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/`.",
|
| 39 |
+
"problems": {}
|
| 40 |
+
}
|
classification/mmeb-country211/shards.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ede53065beacc405d3dbd38ab05d562250b0eada1e08a4fbf1d110b6de4a0397
|
| 3 |
+
size 4085
|
classification/mmeb-country211/verification.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-11-10",
|
| 3 |
+
"train": {
|
| 4 |
+
"records": 31650,
|
| 5 |
+
"record_ok": 31650,
|
| 6 |
+
"record_bad": 0,
|
| 7 |
+
"image_missing": 0,
|
| 8 |
+
"image_bad": 0,
|
| 9 |
+
"shards": 16,
|
| 10 |
+
"shards_expected": 16,
|
| 11 |
+
"shards_ok": 16,
|
| 12 |
+
"ordinals_contiguous": true,
|
| 13 |
+
"bytes_downloaded": 0,
|
| 14 |
+
"seconds": 150.3,
|
| 15 |
+
"bad_examples": [],
|
| 16 |
+
"pass": true
|
| 17 |
+
},
|
| 18 |
+
"public": {
|
| 19 |
+
"records": 31650,
|
| 20 |
+
"record_ok": 31650,
|
| 21 |
+
"record_bad": 0,
|
| 22 |
+
"image_missing": 0,
|
| 23 |
+
"image_bad": 0,
|
| 24 |
+
"shards": 16,
|
| 25 |
+
"shards_expected": 16,
|
| 26 |
+
"shards_ok": 16,
|
| 27 |
+
"ordinals_contiguous": true,
|
| 28 |
+
"bytes_downloaded": 0,
|
| 29 |
+
"seconds": 150.3,
|
| 30 |
+
"bad_examples": [],
|
| 31 |
+
"pass": true
|
| 32 |
+
},
|
| 33 |
+
"bytes_downloaded": 0,
|
| 34 |
+
"pass": true
|
| 35 |
+
}
|
classification/mmeb-hatefulmemes/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# mmeb-hatefulmemes
|
| 2 |
+
|
| 3 |
+
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.
|
| 4 |
+
|
| 5 |
+
* Registry id: `mmeb/HatefulMemes` (exact case; the folder name is lowercase). Category: classification.
|
| 6 |
+
* 8,500 records in 16 TFRecord shards (0.43 GB); 8,500 image references.
|
| 7 |
+
* 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.
|
| 8 |
+
|
| 9 |
+
## Files
|
| 10 |
+
|
| 11 |
+
* `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).
|
| 12 |
+
* `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).
|
| 13 |
+
* `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.
|
| 14 |
+
* `set.json`: these facts in machine-readable form.
|
| 15 |
+
|
| 16 |
+
## Rebuild
|
| 17 |
+
|
| 18 |
+
From the repository root (Python 3.9+, `pip install pyarrow huggingface_hub crc32c`; anonymous Hub access works):
|
| 19 |
+
|
| 20 |
+
```
|
| 21 |
+
python tools/mmeb_train/rebuild_shards.py --out shards/ --sets mmeb/HatefulMemes
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
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.
|
| 25 |
+
|
| 26 |
+
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.
|
| 27 |
+
|
| 28 |
+
## Filters
|
| 29 |
+
|
| 30 |
+
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`.
|
| 31 |
+
|
| 32 |
+
## Verified
|
| 33 |
+
|
| 34 |
+
End to end on 2026-11-10 (the zip downloaded anonymously from the Hub, 0.42 GB):
|
| 35 |
+
|
| 36 |
+
* 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.
|
| 37 |
+
* Public rebuild (this release): 8,500 / 8,500 records and 16 / 16 shards match the `*_public` values.
|
| 38 |
+
* Image references: 8,500, every one found in the zip with the recorded sha256 and length (missing 0, mismatched 0).
|
| 39 |
+
|
| 40 |
+
## Terms
|
| 41 |
+
|
| 42 |
+
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.
|
| 43 |
+
|
| 44 |
+
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.
|
classification/mmeb-hatefulmemes/filters.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f94ab2dd6e1680e9789c1ec04c3695e38d42d54d219d4738c835ef76051b0a7
|
| 3 |
+
size 6152
|
classification/mmeb-hatefulmemes/records.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5d91b86d2825fe639a619508afa7248f77b0dc20e68590765782f0f43cf2d96
|
| 3 |
+
size 1299713
|
classification/mmeb-hatefulmemes/set.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_id": "mmeb/HatefulMemes",
|
| 3 |
+
"folder": "classification/mmeb-hatefulmemes",
|
| 4 |
+
"category": "classification",
|
| 5 |
+
"records": 8500,
|
| 6 |
+
"shards": 16,
|
| 7 |
+
"image_references": 8500,
|
| 8 |
+
"bytes_training_shards": 425187228,
|
| 9 |
+
"bytes_public_shards": 424711226,
|
| 10 |
+
"source": {
|
| 11 |
+
"repo": "TIGER-Lab/MMEB-train",
|
| 12 |
+
"revision": "76dd0a440b6d4c02776830a804443fffbb2d0bfa",
|
| 13 |
+
"config": "HatefulMemes",
|
| 14 |
+
"images_zip": "images_zip/HatefulMemes.zip",
|
| 15 |
+
"zip_bytes": 420237691
|
| 16 |
+
},
|
| 17 |
+
"provenance_public_prefix": "openembed://july-conversion/",
|
| 18 |
+
"license_class": "NC",
|
| 19 |
+
"license_class_meaning": "non-commercial or research-only terms, or terms that restrict redistribution",
|
| 20 |
+
"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.",
|
| 21 |
+
"read_time_gate": {
|
| 22 |
+
"contamination": "applied_at_build",
|
| 23 |
+
"blocked_at_read": 0,
|
| 24 |
+
"dedup_skip_list": false
|
| 25 |
+
},
|
| 26 |
+
"build": {
|
| 27 |
+
"raw_records": 8500,
|
| 28 |
+
"contamination": 0,
|
| 29 |
+
"invalid": 0,
|
| 30 |
+
"invalid_reasons": {},
|
| 31 |
+
"merged_duplicates": 0,
|
| 32 |
+
"invalid_also_on_contamination_list": 0
|
| 33 |
+
}
|
| 34 |
+
}
|
classification/mmeb-hatefulmemes/shards.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2b3fa2133ef711b92d8b4fae77082fc90cb9a9f8388ad9dfb80f818d0e9bf0a
|
| 3 |
+
size 4508
|
classification/mmeb-hatefulmemes/verification.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"date": "2026-11-10",
|
| 3 |
+
"train": {
|
| 4 |
+
"records": 8500,
|
| 5 |
+
"record_ok": 8500,
|
| 6 |
+
"record_bad": 0,
|
| 7 |
+
"image_missing": 0,
|
| 8 |
+
"image_bad": 0,
|
| 9 |
+
"shards": 16,
|
| 10 |
+
"shards_expected": 16,
|
| 11 |
+
"shards_ok": 16,
|
| 12 |
+
"ordinals_contiguous": true,
|
| 13 |
+
"zips": [
|
| 14 |
+
"images_zip/HatefulMemes.zip"
|
| 15 |
+
],
|
| 16 |
+
"bytes_downloaded": 420237691,
|
| 17 |
+
"seconds": 10.2,
|
| 18 |
+
"bad_examples": [],
|
| 19 |
+
"pass": true
|
| 20 |
+
},
|
| 21 |
+
"public": {
|
| 22 |
+
"records": 8500,
|
| 23 |
+
"record_ok": 8500,
|
| 24 |
+
"record_bad": 0,
|
| 25 |
+
"image_missing": 0,
|
| 26 |
+
"image_bad": 0,
|
| 27 |
+
"shards": 16,
|
| 28 |
+
"shards_expected": 16,
|
| 29 |
+
"shards_ok": 16,
|
| 30 |
+
"ordinals_contiguous": true,
|
| 31 |
+
"zips": [
|
| 32 |
+
"images_zip/HatefulMemes.zip"
|
| 33 |
+
],
|
| 34 |
+
"bytes_downloaded": 0,
|
| 35 |
+
"seconds": 0.8,
|
| 36 |
+
"bad_examples": [],
|
| 37 |
+
"pass": true
|
| 38 |
+
},
|
| 39 |
+
"bytes_downloaded": 420237691,
|
| 40 |
+
"pass": true
|
| 41 |
+
}
|
classification/mmeb-imagenet-1k/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# mmeb-imagenet-1k
|
| 2 |
+
|
| 3 |
+
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.
|
| 4 |
+
|
| 5 |
+
* Registry id: `mmeb/ImageNet-1K` (exact case; the folder name is lowercase). Category: classification.
|
| 6 |
+
* 100,000 records in 16 TFRecord shards (3.99 GB); 100,000 image references.
|
| 7 |
+
* 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.
|
| 8 |
+
|
| 9 |
+
## Files
|
| 10 |
+
|
| 11 |
+
* `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).
|
| 12 |
+
* `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).
|
| 13 |
+
* `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.
|
| 14 |
+
* `set.json`: these facts in machine-readable form.
|
| 15 |
+
|
| 16 |
+
## Rebuild
|
| 17 |
+
|
| 18 |
+
From the repository root (Python 3.9+, `pip install pyarrow huggingface_hub crc32c`; anonymous Hub access works):
|
| 19 |
+
|
| 20 |
+
```
|
| 21 |
+
python tools/mmeb_train/rebuild_shards.py --out shards/ --sets mmeb/ImageNet-1K
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
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.
|
| 25 |
+
|
| 26 |
+
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.
|
| 27 |
+
|
| 28 |
+
## Filters
|
| 29 |
+
|
| 30 |
+
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`.
|
| 31 |
+
|
| 32 |
+
## Verified
|
| 33 |
+
|
| 34 |
+
End to end on 2026-11-10 (the zip downloaded anonymously from the Hub, 3.90 GB):
|
| 35 |
+
|
| 36 |
+
* 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.
|
| 37 |
+
* Public rebuild (this release): 100,000 / 100,000 records and 16 / 16 shards match the `*_public` values.
|
| 38 |
+
* Image references: 100,000, every one found in the zip with the recorded sha256 and length (missing 0, mismatched 0).
|
| 39 |
+
|
| 40 |
+
## Terms
|
| 41 |
+
|
| 42 |
+
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.
|
| 43 |
+
|
| 44 |
+
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.
|