|
--- |
|
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. |