lv12 commited on
Commit
add1bfd
·
verified ·
1 Parent(s): 97407e5

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +311 -60
README.md CHANGED
@@ -1,62 +1,313 @@
1
  ---
2
- dataset_info:
3
- - config_name: coco
4
- features:
5
- - name: id
6
- dtype: int64
7
- - name: text
8
- dtype: string
9
- - name: modality
10
- dtype: string
11
- - name: image
12
- dtype: image
13
- splits:
14
- - name: train
15
- num_bytes: 1253593405
16
- num_examples: 30000
17
- - name: valid
18
- num_bytes: 209321632
19
- num_examples: 5000
20
- - name: test
21
- num_bytes: 103633645
22
- num_examples: 2500
23
- download_size: 1565300489
24
- dataset_size: 1566548682
25
- - config_name: fineweb
26
- features:
27
- - name: id
28
- dtype: int64
29
- - name: text
30
- dtype: string
31
- - name: modality
32
- dtype: string
33
- splits:
34
- - name: train
35
- num_bytes: 1729723315
36
- num_examples: 30000
37
- - name: valid
38
- num_bytes: 295066500
39
- num_examples: 5000
40
- - name: test
41
- num_bytes: 144710687
42
- num_examples: 2500
43
- download_size: 1231877337
44
- dataset_size: 2169500502
45
- configs:
46
- - config_name: coco
47
- data_files:
48
- - split: train
49
- path: coco/train-*
50
- - split: valid
51
- path: coco/valid-*
52
- - split: test
53
- path: coco/test-*
54
- - config_name: fineweb
55
- data_files:
56
- - split: train
57
- path: fineweb/train-*
58
- - split: valid
59
- path: fineweb/valid-*
60
- - split: test
61
- path: fineweb/test-*
62
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ - image-to-text
6
+ - audio-classification
7
+ - zero-shot-classification
8
+ language:
9
+ - en
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 100K<n<1M
14
+ pretty_name: MultiModal Dataset
15
+ tags:
16
+ - multimodal
17
+ - vision-language
18
+ - audio-language
19
+ - text
20
+ - images
21
+ - audio
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  ---
23
+
24
+ # Dataset Card for MultiModal Dataset
25
+
26
+ ## Table of Contents
27
+ - [Dataset Description](#dataset-description)
28
+ - [Dataset Summary](#dataset-summary)
29
+ - [Supported Tasks](#supported-tasks)
30
+ - [Languages](#languages)
31
+ - [Dataset Structure](#dataset-structure)
32
+ - [Data Instances](#data-instances)
33
+ - [Data Fields](#data-fields)
34
+ - [Data Splits](#data-splits)
35
+ - [Dataset Creation](#dataset-creation)
36
+ - [Curation Rationale](#curation-rationale)
37
+ - [Source Data](#source-data)
38
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
39
+ - [Additional Information](#additional-information)
40
+ - [Dataset Curators](#dataset-curators)
41
+ - [Licensing Information](#licensing-information)
42
+ - [Citation Information](#citation-information)
43
+
44
+ ## Dataset Description
45
+
46
+ ### Dataset Summary
47
+
48
+ MultiModal Dataset is a curated collection of **112,500 samples** spanning three modalities: text, images, and audio. It combines high-quality web content, image-caption pairs from COCO 2017, and audio samples from AudioSet to enable comprehensive multimodal model training and evaluation.
49
+
50
+ The dataset is organized into three subsets:
51
+ - **fineweb**: 37,500 high-quality web text samples (>8,192 tokens each)
52
+ - **coco**: 37,500 image-caption pairs from COCO 2017 (512x512 resolution)
53
+ - **audioset**: 37,500 audio samples with human-annotated labels
54
+
55
+ All subsets follow a consistent 80/13/7 train/validation/test split for reproducible evaluation across modalities.
56
+
57
+ ### Supported Tasks
58
+
59
+ - **Text Generation**: Long-form text generation using the fineweb subset
60
+ - **Image Captioning**: Generate descriptions for images using the coco subset
61
+ - **Audio Classification**: Classify audio events using the audioset subset
62
+ - **Multimodal Pretraining**: Train models that understand multiple modalities
63
+ - **Cross-Modal Retrieval**: Retrieve relevant content across modalities
64
+ - **Zero-Shot Classification**: Evaluate zero-shot capabilities across modalities
65
+
66
+ ### Languages
67
+
68
+ English (en)
69
+
70
+ ## Dataset Structure
71
+
72
+ ### Data Instances
73
+
74
+ **FineWeb (text) example:**
75
+ \`\`\`json
76
+ {
77
+ "id": 42,
78
+ "text": "The history of artificial intelligence begins with ancient myths and stories of artificial beings endowed with intelligence or consciousness by master craftsmen. The seeds of modern AI were planted by classical philosophers who attempted to describe human thinking as a symbolic system...",
79
+ "modality": "text"
80
+ }
81
+ \`\`\`
82
+
83
+ **COCO (image+text) example:**
84
+ \`\`\`json
85
+ {
86
+ "id": 156,
87
+ "text": "A person riding a bicycle on a city street during sunset",
88
+ "image": "<PIL.Image.Image image mode=RGB size=512x512>",
89
+ "modality": "image"
90
+ }
91
+ \`\`\`
92
+
93
+ **AudioSet (audio+text) example:**
94
+ \`\`\`json
95
+ {
96
+ "id": 89,
97
+ "text": "Speech, Music, Piano",
98
+ "audio": {
99
+ "array": [0.001, -0.002, 0.003, ...],
100
+ "sampling_rate": 16000
101
+ },
102
+ "modality": "audio"
103
+ }
104
+ \`\`\`
105
+
106
+ ### Data Fields
107
+
108
+ #### FineWeb Subset
109
+
110
+ | Field | Type | Description |
111
+ |-------|------|-------------|
112
+ | id | int | Unique sample identifier |
113
+ | text | string | High-quality web content (>8,192 tokens) |
114
+ | modality | string | Always "text" |
115
+
116
+ #### COCO Subset
117
+
118
+ | Field | Type | Description |
119
+ |-------|------|-------------|
120
+ | id | int | Unique sample identifier |
121
+ | text | string | Human-written image caption |
122
+ | image | PIL.Image | RGB image at 512x512 resolution |
123
+ | modality | string | Always "image" |
124
+
125
+ #### AudioSet Subset
126
+
127
+ | Field | Type | Description |
128
+ |-------|------|-------------|
129
+ | id | int | Unique sample identifier |
130
+ | text | string | Comma-separated human-annotated labels |
131
+ | audio | dict | Audio data with 'array' (float32 numpy array) and 'sampling_rate' (16000 Hz) |
132
+ | modality | string | Always "audio" |
133
+
134
+ ### Data Splits
135
+
136
+ All three subsets use identical split ratios:
137
+
138
+ | Subset | Train | Validation | Test | Total |
139
+ |--------|-------|------------|------|-------|
140
+ | fineweb | 30,000 | 5,000 | 2,500 | 37,500 |
141
+ | coco | 30,000 | 5,000 | 2,500 | 37,500 |
142
+ | audioset | 30,000 | 5,000 | 2,500 | 37,500 |
143
+ | **TOTAL** | **90,000** | **15,000** | **7,500** | **112,500** |
144
+
145
+ **Split methodology**: Samples are deterministically assigned using index-based partitioning:
146
+ - Train: First 80% of samples (indices 0 to 0.8×N)
147
+ - Validation: Next 13% of samples (indices 0.8×N to 0.93×N)
148
+ - Test: Final 7% of samples (indices 0.93×N to N)
149
+
150
+ This ensures reproducible splits across different loading sessions.
151
+
152
+ ## Dataset Creation
153
+
154
+ ### Curation Rationale
155
+
156
+ This dataset was created to address the need for a unified multimodal benchmark that:
157
+
158
+ 1. **Provides high-quality data across modalities**: Each subset is sourced from established, well-curated datasets
159
+ 2. **Maintains consistent splits**: Identical split ratios enable fair cross-modal comparison
160
+ 3. **Scales appropriately**: 30K-37.5K samples per modality balances diversity with computational feasibility
161
+ 4. **Focuses on quality over quantity**: FineWeb filters for long-form content (>8K tokens), COCO provides human-verified captions, AudioSet uses expert-annotated labels
162
+
163
+ ### Source Data
164
+
165
+ #### Initial Data Collection and Normalization
166
+
167
+ **FineWeb (Text)**
168
+ - **Source**: [NoahEJ/fineweb-sample-100BT_over-8192-tokens](https://huggingface.co/datasets/NoahEJ/fineweb-sample-100BT_over-8192-tokens)
169
+ - **Original Size**: 100 billion tokens
170
+ - **Filtering**: Only documents with >8,192 tokens
171
+ - **Rationale**: Long-form content for training models on extended context
172
+
173
+ **COCO 2017 (Images)**
174
+ - **Source**: [wangherr/coco2017_train_512x_image_caption_depth](https://huggingface.co/datasets/wangherr/coco2017_train_512x_image_caption_depth)
175
+ - **Original Size**: 118,287 training images
176
+ - **Preprocessing**: Resized to 512×512, depth information available
177
+ - **Rationale**: Standardized resolution for efficient training, human-verified captions
178
+
179
+ **AudioSet (Audio)**
180
+ - **Source**: [agkphysics/AudioSet](https://huggingface.co/datasets/agkphysics/AudioSet)
181
+ - **Original Size**: 2 million 10-second clips
182
+ - **Processing**: Labels converted from list to comma-separated string
183
+ - **Rationale**: Diverse sound events with expert human annotations
184
+
185
+ #### Who are the source language producers?
186
+
187
+ - **FineWeb**: Web content creators (blog posts, articles, documentation)
188
+ - **COCO**: Human annotators hired through crowdsourcing platforms
189
+ - **AudioSet**: Ontology developed by Google Research, labels verified by human experts
190
+
191
+ ### Annotations
192
+
193
+ #### Annotation process
194
+
195
+ - **FineWeb**: No additional annotation (uses original web content)
196
+ - **COCO**: Professional annotators wrote 5 captions per image, this dataset uses 1 caption per image
197
+ - **AudioSet**: Trained annotators labeled audio clips following a hierarchical ontology of 632 sound event classes
198
+
199
+ #### Who are the annotators?
200
+
201
+ - **COCO**: Crowdworkers via Amazon Mechanical Turk
202
+ - **AudioSet**: Expert annotators trained on the AudioSet ontology
203
+
204
+ ### Personal and Sensitive Information
205
+
206
+ - **FineWeb**: May contain publicly available personal information from web sources
207
+ - **COCO**: Images sourced from Flickr; may contain people but no identifying metadata is included
208
+ - **AudioSet**: Audio clips from YouTube; may contain speech but no transcriptions or speaker identities
209
+
210
+ Users should be aware of potential biases and sensitive content when deploying models trained on this data.
211
+
212
+ ## Considerations for Using the Data
213
+
214
+ ### Social Impact of Dataset
215
+
216
+ **Positive Impacts:**
217
+ - Enables research in multimodal AI and cross-modal understanding
218
+ - Provides standardized benchmarks for reproducible research
219
+ - Supports development of assistive technologies (image captioning for visually impaired, audio classification for hearing impaired)
220
+
221
+ **Potential Risks:**
222
+ - Models trained on web data (FineWeb) may reproduce biases present in internet content
223
+ - COCO images may not represent global diversity equitably
224
+ - AudioSet may over-represent certain acoustic environments
225
+
226
+ ### Discussion of Biases
227
+
228
+ - **Geographic bias**: COCO images predominantly from North America and Europe
229
+ - **Language bias**: All text in English limits multilingual applicability
230
+ - **Domain bias**: FineWeb reflects biases in web content (tech-heavy, Western-centric)
231
+ - **Acoustic bias**: AudioSet may over-represent Western musical genres and urban soundscapes
232
+
233
+ Users should evaluate fairness and bias when deploying models trained on this dataset.
234
+
235
+ ### Other Known Limitations
236
+
237
+ - **Fixed splits**: Test set may become saturated if widely used for benchmarking
238
+ - **Resolution limit**: COCO images fixed at 512×512 (original COCO is variable resolution)
239
+ - **Audio duration**: AudioSet clips are typically ~10 seconds (may not represent longer acoustic events)
240
+ - **Text length**: FineWeb samples vary in length despite >8K token minimum
241
+
242
+ ## Additional Information
243
+
244
+ ### Dataset Curators
245
+
246
+ This dataset was curated and compiled by lv12 using memory-efficient data processing pipelines.
247
+
248
+ ### Licensing Information
249
+
250
+ **Overall License**: MIT License
251
+
252
+ **Source Dataset Licenses**:
253
+ - **FineWeb**: [ODC-By 1.0 License](https://huggingface.co/datasets/HuggingFaceFW/fineweb)
254
+ - **COCO 2017**: [Creative Commons Attribution 4.0 International License](https://cocodataset.org/#termsofuse)
255
+ - **AudioSet**: [Creative Commons Attribution 4.0 International License](https://research.google.com/audioset/download.html)
256
+
257
+ Users must comply with all source dataset licenses when using this collection.
258
+
259
+ ### Citation Information
260
+
261
+ If you use this dataset, please cite the original source datasets:
262
+
263
+ \`\`\`bibtex
264
+ @misc{fineweb2024,
265
+ title={FineWeb: decanting the web for the finest text data at scale},
266
+ author={Penedo, Guilherme and Cappelli, Alessandro and Cojocaru, Liviu and Alobeidli, Hynek and Pannier, Baptiste and Almazrouei, Ebtesam and Launay, Julien},
267
+ year={2024},
268
+ publisher={Hugging Face},
269
+ url={https://huggingface.co/datasets/HuggingFaceFW/fineweb}
270
+ }
271
+
272
+ @inproceedings{lin2014microsoft,
273
+ title={Microsoft coco: Common objects in context},
274
+ author={Lin, Tsung-Yi and Maire, Michael and Belongie, Serge and Hays, James and Perona, Pietro and Ramanan, Deva and Doll{\'a}r, Piotr and Zitnick, C Lawrence},
275
+ booktitle={Computer Vision--ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13},
276
+ pages={740--755},
277
+ year={2014},
278
+ organization={Springer}
279
+ }
280
+
281
+ @inproceedings{gemmeke2017audio,
282
+ title={Audio set: An ontology and human-labeled dataset for audio events},
283
+ author={Gemmeke, Jort F and Ellis, Daniel PW and Freedman, Dylan and Jansen, Aren and Lawrence, Wade and Moore, R Channing and Plakal, Manoj and Ritter, Marvin},
284
+ booktitle={2017 IEEE international conference on acoustics, speech and signal processing (ICASSP)},
285
+ pages={776--780},
286
+ year={2017},
287
+ organization={IEEE}
288
+ }
289
+ \`\`\`
290
+
291
+ ### Contributions
292
+
293
+ Thanks to the creators of FineWeb, COCO, and AudioSet for making their datasets publicly available.
294
+
295
+ ---
296
+
297
+ ## Quick Start
298
+
299
+ \`\`\`python
300
+ from datasets import load_dataset
301
+
302
+ # Load a specific subset and split
303
+ ds = load_dataset("lv12/MultiModalDataset", "coco", split="train")
304
+
305
+ # Iterate through samples
306
+ for sample in ds.take(5):
307
+ print(f"ID: {sample['id']}")
308
+ print(f"Text: {sample['text']}")
309
+ print(f"Modality: {sample['modality']}")
310
+ print("---")
311
+ \`\`\`
312
+
313
+ For more examples, see the [Dataset Structure](#dataset-structure) section.