essobi commited on
Commit
f266479
·
verified ·
1 Parent(s): c902dab

Dataset card

Browse files
Files changed (1) hide show
  1. README.md +79 -0
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - dclm
9
+ - synthetic-data
10
+ - pretraining
11
+ - format-aware
12
+ pretty_name: DCLM Cross-Over Source
13
+ ---
14
+
15
+ # DCLM Cross-Over Source
16
+
17
+ Subset of [DCLM-Baseline](https://huggingface.co/datasets/mlfoundations/dclm-baseline-1.0)
18
+ selected for synthetic augmentation with format-aware prompt routing.
19
+
20
+ ## Selection
21
+
22
+ - Picked every 3th shard (3 of 27938 shards)
23
+ - Word count filter: 50-8000
24
+ - Per-site cap: 10,000
25
+ - Format detection: skip prompts that duplicate native document format
26
+
27
+ ## Stats
28
+
29
+ | Metric | Value |
30
+ |--------|-------|
31
+ | Source docs scanned | 255,841 |
32
+ | Selected | 251,661 |
33
+ | Total words | 196,694,035 |
34
+ | Avg words/doc | 781 |
35
+ | Length filtered | 4,180 |
36
+ | Site capped | 0 |
37
+ | All formats native | 0 |
38
+ | Output shards | 3 |
39
+
40
+ ## Prompt Applicability
41
+
42
+ | Prompt | Applicable | Would Skip |
43
+ |--------|-----------|------------|
44
+ | FAQ | 250,245 | 1,416 |
45
+ | Math | 250,428 | 1,233 |
46
+ | Table | 251,632 | 29 |
47
+ | Tutorial | 239,300 | 12,361 |
48
+
49
+ ## Schema
50
+
51
+ | Field | Type | Description |
52
+ |-------|------|-------------|
53
+ | `id` | str | Stable hash |
54
+ | `text` | str | Document text |
55
+ | `url` | str | Source URL |
56
+ | `quality_score` | float | DCLM fastText score |
57
+ | `word_count` | int | Word count |
58
+ | `apply_prompts` | str (JSON list) | Prompts to run |
59
+ | `skip_prompts` | str (JSON list) | Prompts to skip |
60
+ | `num_applicable_prompts` | int | How many prompts apply |
61
+
62
+ ## Usage
63
+
64
+ ```python
65
+ from datasets import load_dataset
66
+ import json
67
+
68
+ ds = load_dataset("essobi/dclm-crossover-source", split="train")
69
+
70
+ # Docs for FAQ prompt only
71
+ faq_docs = ds.filter(lambda x: "faq" in json.loads(x["apply_prompts"]))
72
+
73
+ # Docs suitable for all 4 prompts (best megadoc candidates)
74
+ full = ds.filter(lambda x: x["num_applicable_prompts"] == 4)
75
+ ```
76
+
77
+ ## License
78
+
79
+ CC-BY-4.0