WenxingZhu commited on
Commit
cd9018c
·
verified ·
1 Parent(s): 8716cdf

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +151 -0
README.md ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Multimodal Embedding 100M
3
+ license: cc-by-4.0
4
+ size_categories:
5
+ - 100M<n<1B
6
+ task_categories:
7
+ - feature-extraction
8
+ - sentence-similarity
9
+ tags:
10
+ - multimodal
11
+ - embeddings
12
+ - vector-search
13
+ - nearest-neighbors
14
+ - ann-benchmark
15
+ - laion
16
+ - parquet
17
+ - xet
18
+ ---
19
+
20
+ # Multimodal Embedding 100M
21
+
22
+ This dataset contains a 100M-row multimodal embedding corpus derived from LAION-400M-style embedding data. It is intended for large-scale vector database ingestion, ANN index construction, nearest-neighbor search, and retrieval benchmark experiments.
23
+
24
+ The dataset is stored as Parquet files and organized to keep each directory below Hugging Face's per-directory file-count limit.
25
+
26
+ ## Dataset Summary
27
+
28
+ | Split | Rows | Files | Path |
29
+ | --- | ---: | ---: | --- |
30
+ | `train` | 100,000,000 | 16,824 | `train/shard-00/*.parquet` ... `train/shard-09/*.parquet` |
31
+ | `test` | 10,000 | 2 | `test/*.parquet` |
32
+ | `neighbors` | 10,000 | 1 | `neighbors/neighbors.parquet` |
33
+
34
+ Total: 100,020,000 rows across 16,827 Parquet files.
35
+
36
+ ## Directory Layout
37
+
38
+ ```text
39
+ .
40
+ ├── train/
41
+ │ ├── shard-00/
42
+ │ ├── shard-01/
43
+ │ ├── shard-02/
44
+ │ ├── shard-03/
45
+ │ ├── shard-04/
46
+ │ ├── shard-05/
47
+ │ ├── shard-06/
48
+ │ ├── shard-07/
49
+ │ ├── shard-08/
50
+ │ └── shard-09/
51
+ ├── test/
52
+ └── neighbors/
53
+ ```
54
+
55
+ Train shard file distribution:
56
+
57
+ | Shard | Files |
58
+ | --- | ---: |
59
+ | `shard-00` | 1,683 |
60
+ | `shard-01` | 1,683 |
61
+ | `shard-02` | 1,683 |
62
+ | `shard-03` | 1,683 |
63
+ | `shard-04` | 1,683 |
64
+ | `shard-05` | 1,683 |
65
+ | `shard-06` | 1,683 |
66
+ | `shard-07` | 1,683 |
67
+ | `shard-08` | 1,683 |
68
+ | `shard-09` | 1,677 |
69
+
70
+ ## Schema
71
+
72
+ ### `train` and `test`
73
+
74
+ | Column | Type | Description |
75
+ | --- | --- | --- |
76
+ | `id` | `int64` | Numeric sample id. |
77
+ | `key` | `string` | Original sample key. |
78
+ | `emb` | `fixed_size_list<float>[4096]` | 4096-dimensional embedding vector. |
79
+
80
+ ### `neighbors`
81
+
82
+ | Column | Type | Description |
83
+ | --- | --- | --- |
84
+ | `id` | `int64` | Query/sample id. |
85
+ | `neighbors` | `list<int64>` | 100 nearest-neighbor ids for the query/sample. |
86
+ | `scores` | `list<float>` | 100 similarity scores aligned with `neighbors`. |
87
+
88
+ ## Loading
89
+
90
+ For large-scale use, streaming mode is recommended:
91
+
92
+ ```python
93
+ from datasets import load_dataset
94
+
95
+ data_files = {
96
+ "train": "train/shard-*/*.parquet",
97
+ "test": "test/*.parquet",
98
+ "neighbors": "neighbors/*.parquet",
99
+ }
100
+
101
+ ds = load_dataset(
102
+ "WenxingZhu/multimodal-embedding-100M",
103
+ data_files=data_files,
104
+ streaming=True,
105
+ )
106
+
107
+ row = next(iter(ds["train"]))
108
+ print(row["id"], row["key"], len(row["emb"]))
109
+ ```
110
+
111
+ To load a small evaluation split without streaming:
112
+
113
+ ```python
114
+ from datasets import load_dataset
115
+
116
+ test = load_dataset(
117
+ "WenxingZhu/multimodal-embedding-100M",
118
+ data_files={"test": "test/*.parquet"},
119
+ split="test",
120
+ )
121
+
122
+ print(test)
123
+ ```
124
+
125
+ ## Intended Uses
126
+
127
+ - Large-scale vector database ingestion and indexing tests.
128
+ - ANN search and recall evaluation.
129
+ - Embedding storage and retrieval system benchmarking.
130
+ - Multimodal embedding pipeline validation.
131
+
132
+ ## Limitations
133
+
134
+ - This repository contains embeddings and nearest-neighbor metadata, not original images or captions.
135
+ - The embeddings are provided as precomputed vectors; the model and preprocessing pipeline used to generate them should be validated before comparing results across datasets.
136
+ - Users should verify that the dataset is suitable for their benchmark methodology, especially when using the `neighbors` split as retrieval ground truth.
137
+
138
+ ## License and Attribution
139
+
140
+ The original LAION-400M metadata dataset is distributed under CC-BY 4.0. Users are responsible for complying with the applicable license terms and for validating downstream usage requirements.
141
+
142
+ If you use this dataset in a benchmark or experiment, please cite the original LAION-400M work:
143
+
144
+ ```bibtex
145
+ @article{schuhmann2021laion400m,
146
+ title={LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairs},
147
+ author={Schuhmann, Christoph and Vencu, Richard and Beaumont, Romain and Kaczmarczyk, Robert and Mullis, Clayton and Katta, Aarush and Coombes, Theo and Jitsev, Jenia and Komatsuzaki, Aran},
148
+ journal={arXiv preprint arXiv:2111.02114},
149
+ year={2021}
150
+ }
151
+ ```