Spaces:
Sleeping
Sleeping
victormiller
commited on
Update overview.py
Browse files- overview.py +11 -0
overview.py
CHANGED
@@ -263,6 +263,12 @@ data_processing_image_desc = P("Figure 1: Data processing pipeline. All the step
|
|
263 |
data_processing_overview = P("We enforce a fully transparent data processing pipeline when producing TxT360, designed to handle both web and curated datasets with precision and clarity. This transparent pipeline presents a unified framework for processing both data types, making it convenient and adaptive for users to revise and fine-tune the pipeline. ")
|
264 |
data_processing_overview2 = P("For web datasets, the pipeline focuses on extracting meaningful, high-quality text from raw web content, which is inherently noisy and varied. The process includes sophisticated filtering and deduplication techniques to clean the data and remove any redundancies or irrelevant information. On the other hand, curated datasets, which are already more structured and reliable, are processed with selective steps to maintain their integrity while integrating them seamlessly into the larger dataset.")
|
265 |
data_processing_overview3 = P("We will open-source the scripts for the whole pipeline, allowing the community to review, replicate, and build upon our processes.")
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
def overview():
|
267 |
return Div(Section(
|
268 |
|
@@ -282,6 +288,11 @@ def overview():
|
|
282 |
data_processing_overview3,
|
283 |
Img(src="images/pipeline.png"),
|
284 |
data_processing_image_desc,
|
|
|
|
|
|
|
|
|
|
|
285 |
id="inner-text",
|
286 |
)
|
287 |
)
|
|
|
263 |
data_processing_overview = P("We enforce a fully transparent data processing pipeline when producing TxT360, designed to handle both web and curated datasets with precision and clarity. This transparent pipeline presents a unified framework for processing both data types, making it convenient and adaptive for users to revise and fine-tune the pipeline. ")
|
264 |
data_processing_overview2 = P("For web datasets, the pipeline focuses on extracting meaningful, high-quality text from raw web content, which is inherently noisy and varied. The process includes sophisticated filtering and deduplication techniques to clean the data and remove any redundancies or irrelevant information. On the other hand, curated datasets, which are already more structured and reliable, are processed with selective steps to maintain their integrity while integrating them seamlessly into the larger dataset.")
|
265 |
data_processing_overview3 = P("We will open-source the scripts for the whole pipeline, allowing the community to review, replicate, and build upon our processes.")
|
266 |
+
|
267 |
+
dedup_text = P("Deduplication is crucial in language model (LM) pre-training for several reasons. It reduces the volume of training data, leading to shorter training times and potentially better accuracy. It also prevents train-test overlap, improves evaluation metrics, and minimizes the risk of memorization, which can cause test loss to increase during training. By controlling the pretraining data distribution through deduplication and selective upsampling, we avoid relying on the often inconsistent distribution of internet-sourced data.")
|
268 |
+
dedup_text1 = P("Our deduplication process began with 61.8 TB of high-quality, filtered, and compressed documents, totaling approximately 48.83 billion documents. We first performed exact deduplication using a Bloom filter, reducing the dataset by 17% to 40.21 billion documents. For global near-deduplication, we scaled methodologies from prior works like SlimPajama to handle the entire dataset, including 87 Common Crawl dumps and other curated data. This involved generating document signatures, matching them to identify near-duplicates, and clustering these to retain only one document per cluster. We prioritized retaining documents from curated sources and more recent CommonCrawl dumps. Throughout the deduplication stages, we extensively used Dask for distributed data processing.")
|
269 |
+
dedup_text2 = P("After the global near-deduplication of all 87 CommonCrawl dumps and other curated data, we removed around 85% of the total documents. This leaves us with approximately 4.24 trillion deduplicated tokens, which aligns with what FineWeb has reported for their iterative global deduplication. Along with the list of duplicated documents to delete, our deduplication code also saves some metadata about the duplicate clusters that we find. We save statistics about every duplicate cluster we find, with the document ID of the document we retain from the cluster as the key and with a value capturing the distribution of the duplicates within the cluster over the CommonCrawl dumps (identified by the first 2 digits of every document ID). This way, we always have information about the duplicates we have deleted, allowing us to upsample any data distribution we want for training.")
|
270 |
+
dedup_text3 = P("During deduplication, it is not feasible to store all the duplicate clusters we form, but we do save some samples at every size. Here are some observations we made by examining these sample duplicate clusters:")
|
271 |
+
|
272 |
def overview():
|
273 |
return Div(Section(
|
274 |
|
|
|
288 |
data_processing_overview3,
|
289 |
Img(src="images/pipeline.png"),
|
290 |
data_processing_image_desc,
|
291 |
+
H2("Global Deduplication"),
|
292 |
+
dedup_text,
|
293 |
+
dedup_text1,
|
294 |
+
dedup_text2,
|
295 |
+
dedup_text3,
|
296 |
id="inner-text",
|
297 |
)
|
298 |
)
|