Datasets:
File size: 3,877 Bytes
63acf84 9ab45af 63acf84 91f8bf9 63acf84 9ab45af 63acf84 9ab45af 63acf84 9ab45af 63acf84 6cb696b 63acf84 9ab45af 63acf84 3cee00c 9ab45af b6d27b4 9ab45af 3cee00c d18591b 9ab45af d18591b 9ab45af 3cee00c 63acf84 b3d4ae4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
---
license: cc
pretty_name: DCLM-Deduped
task_categories:
- text-generation
language:
- en
size_categories:
- 100B<n<1T
configs:
- config_name: default
data_files:
- split: train
path: data/*/*/*
---
# DCLM-Deduped
[DCLM](https://huggingface.co/datasets/mlfoundations/dclm-baseline-1.0) is a recently released high quality dataset that uses model-based quality filtering to filter a large subset of common-crawl for similarity to OpenHermes and other instruction-tuning datasets. For reference see the [DCLM paper](https://arxiv.org/pdf/2406.11794).
The original authors of DCLM did not release fully deduplicated version of their dataset, claiming that full deduplication did not improve performance. The released version was partially deduplicated in shards.
Nevertheless, when performing our own deduplication of DCLM for [Zyda-2](https://huggingface.co/datasets/Zyphra/Zyda-2), we noticed that DCLM contained a large fraction of duplicates. Specifically, the dataset appears to consist of approximately 80% duplicates.
We also analyzed clusters of duplicates, and we found there is a big drop off in number of clusters of sizes bigger than 100, although there are still clusters with extreme number of duplicates (up to a million), see figure below.
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65455aca468722e935103b17/0SCG4UnFE2ADQXKl9HCx9.png)
The lack of impact on downstream performance given this large duplication proportion is perplexing. However, in our own ablations we also replicated this fact. It seems that performing, on average, 5 epochs over the DCLM 'core dataset' is not harmful to language modelling. Nevertheless, the full impacts of this level of duplication on language models are not clear beyond evaluation scores.
As such, we release a fully deduplicated version of DCLM in case it is of interest to the community. DCLM-deduped consists of approximately 750B tokens. If you are planning to pretrain on less than this amount of DCLM tokens it is perhaps safer to use this version than the original DCLM.
## Breakdown by component
| Dataset | Documents (millions) | gpt-neox tokens (billions) |
| --- | --- | --- |
| DCLM baseline | 2949.3 | 3854.9 |
| DCLM full-deduped | 615.2 | 750.3 |
Fully downloaded dataset is roughly 2TB in size in parquet format.
## How to download
To download, one can use `datasets` library directly:
```
import datasets
ds = datasets.load_dataset("Zyphra/dclm-dedup", split="train")
```
## Deduplication Details
We deduplicated DCLM using the approximate minhash LSH method implemented in NeMo Curator with the following parameters: minhash with signature size of 128 computed on character-based 25-grams signatures and split into 8 bands, giving roughly 85% Jaccard similarity threshold. We then constructed an undirected graph with nodes being documents and edges being duplicates, and found connected components in it, which provided us with clusters of duplicates. From each cluster, we selected a random document to keep and removed the rest.
The deduplication process is closely related to how we created our [Zyda-2](https://huggingface.co/datasets/Zyphra/Zyda-2) dataset, for which we released full reproduction [tutorial](https://github.com/NVIDIA/NeMo-Curator/tree/main/tutorials/zyda2-tutorial). Instead of doing careful cross-deduplication between components of Zyda-2, we only focused on DCLM itself, aggressively removing duplicated documents.
### Dataset Description
- **Curated by:** Zyphra (deduplicated from DCLM)
- **Language(s) (NLP):** Primarily English
- **License:** CC-BY-4
## Licensing Information
We are releasing this dataset under the terms of [cc-by-4](https://choosealicense.com/licenses/cc-by-4.0/), the same license as the original DCLM dataset. |