Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10M - 100M
License:
Add README
Browse files
README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- pretraining-data
|
| 9 |
+
- data-curation
|
| 10 |
+
- web-scraping
|
| 11 |
+
size_categories:
|
| 12 |
+
- 10M<n<100M
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# ReScraper-Data
|
| 16 |
+
|
| 17 |
+
Data released with ReScraper, a 0.6B refiner that replaces the heuristic HTML-to-text stack of a
|
| 18 |
+
pretraining data pipeline with a single small language model.
|
| 19 |
+
|
| 20 |
+
- **Model:** [`cx-cmu/ReScraper`](https://huggingface.co/cx-cmu/ReScraper)
|
| 21 |
+
- **Code:** [`cxcscmu/ReScraper`](https://github.com/cxcscmu/ReScraper)
|
| 22 |
+
|
| 23 |
+
All four subsets come from the same source pool: the 10% raw-HTML sample of the DCLM pool
|
| 24 |
+
(`dclm-pool-400m-1x-html-jsonl-step3a-10pct`), 18,025,558 pages over 10,319 shards.
|
| 25 |
+
|
| 26 |
+
## Subsets
|
| 27 |
+
|
| 28 |
+
| Path | Rows | Size | What it is |
|
| 29 |
+
|---|---:|---:|---|
|
| 30 |
+
| `data/ReScraper-Corpus/` | 10,056,105 | 12.4 GB | The curated pretraining corpus: model output after the post-filter and Bloom-filter deduplication. 7.44B GPT-NeoX-20B tokens. |
|
| 31 |
+
| `data/ReScraper-Pool-Output/` | 10,646,236 | 13.3 GB | The refiner's raw output over the whole pool, before deduplication. Use this to study the model's behaviour page by page. |
|
| 32 |
+
| `data/ReScraper-SFT-Stage1/` | 1,383,115 | 3.9 GB | Stage 1 training set: extraction plus the operation decision. |
|
| 33 |
+
| `data/ReScraper-SFT-Stage2/` | 131,484 | 0.4 GB | Stage 2 training set, which upweights `<rewrite>` so the model learns that operation. |
|
| 34 |
+
|
| 35 |
+
Files are Parquet, split into roughly 1 GB parts named
|
| 36 |
+
`<subset>-en-part-XXXX-of-YYYY.parquet`.
|
| 37 |
+
|
| 38 |
+
## Schema
|
| 39 |
+
|
| 40 |
+
**Corpus and pool output**
|
| 41 |
+
|
| 42 |
+
| Field | Type | Meaning |
|
| 43 |
+
|---|---|---|
|
| 44 |
+
| `text` | string | the cleaned page |
|
| 45 |
+
| `operation` | string | the operation the model chose: `<keep>`, `<edit>` or `<rewrite>` (deleted pages are not materialized) |
|
| 46 |
+
| `bff_contained_ngram_count_before_dedupe` | int | deduplication bookkeeping (corpus only) |
|
| 47 |
+
|
| 48 |
+
**SFT sets**
|
| 49 |
+
|
| 50 |
+
| Field | Type | Meaning |
|
| 51 |
+
|---|---|---|
|
| 52 |
+
| `input` | string | the rendered page, one block per line with `<lid:n>` line ids |
|
| 53 |
+
| `output` | string | the target program: an `<extract>` block of line removals followed by the operation tag |
|
| 54 |
+
|
| 55 |
+
## Loading
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from datasets import load_dataset
|
| 59 |
+
|
| 60 |
+
corpus = load_dataset("cx-cmu/ReScraper-Data", data_dir="data/ReScraper-Corpus", split="train")
|
| 61 |
+
sft = load_dataset("cx-cmu/ReScraper-Data", data_dir="data/ReScraper-SFT-Stage1", split="train")
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
To reproduce pretraining, tokenize the corpus with the GPT-NeoX-20B tokenizer; the code
|
| 65 |
+
repository has the tokenization and pretraining scripts.
|
| 66 |
+
|
| 67 |
+
## License
|
| 68 |
+
|
| 69 |
+
Apache 2.0. The underlying pages come from Common Crawl via the DCLM pool and keep their
|
| 70 |
+
original terms.
|