dusersad12 commited on
Commit
876da2c
·
verified ·
1 Parent(s): 1d06164

Publish cleaned verl parquet (39179 rows) + cleaning report

Browse files
README.md CHANGED
@@ -8,61 +8,64 @@ tags:
8
  - verl
9
  - reinforcement-learning
10
  size_categories:
11
- - 1K<n<10K
12
  configs:
13
  - config_name: default
14
  data_files:
15
  - split: train
16
- path: data/train.jsonl
17
- - split: validation
18
- path: data/val.jsonl
19
  ---
20
 
21
  # DeepScaleR-Verl-Clean
22
 
23
- Cleaned, deduplicated export of the **agentica-org/DeepScaleR-Preview-Dataset**
24
- (https://huggingface.co/datasets/agentica-org/DeepScaleR-Preview-Dataset), formatted for
25
- verl-based GRPO training. Source dataset is MIT-licensed; this derived subset keeps the
26
- same license.
27
 
28
- ## Splits
29
 
30
- | Split | File | Rows |
31
- |---|---|---|
32
- | Train | `data/train.jsonl` | 1950 |
33
- | Validation | `data/val.jsonl` | 50 |
34
 
35
- ## Cleaning
36
 
37
- The raw export contained 2100 lines. Lines were rejected in the following order
38
- (first match wins), leaving 2000 usable rows:
39
 
40
- 1. **`foreign_source`** — 15 lines whose `data_source` was not `DeepScaleR`
41
- (entries that slipped in from the merged pool).
42
- 2. **`missing_field`** — 25 lines whose `answer` or `solution` was absent or blank.
43
- 3. **`duplicate`** — 60 lines whose problem text already appeared on an earlier
44
- surviving line; only the first occurrence is kept.
 
 
 
 
 
 
 
45
 
46
- Surviving rows were sorted by problem text (ascending, plain string comparison, ignoring
47
- surrounding whitespace), numbered 0..1999, and every row whose index is divisible by 40
48
- was assigned to validation, the rest to train. Row order inside each file is ascending
49
- `extra_info.index`. Problems, answers and solutions are carried over verbatim from the
50
- source - no reformatting or re-derivation.
51
 
52
  ## Schema (verl)
53
 
54
- Each JSON Lines row:
55
 
56
- ```json
57
- {
58
- "data_source": "DeepScaleR",
59
- "prompt": [{"role": "user", "content": "<problem text>"}],
60
- "ability": "math",
61
- "reward_model": {"style": "rule", "ground_truth": "<answer>"},
62
- "extra_info": {"index": 0, "solution": "<reference solution>"}
63
- }
64
- ```
65
 
66
- See `dataset_report.json` in this repository for the full accounting of the cleaning run,
67
- including the rejection counts per reason and the SHA-256 digests of the parquet files that
68
- back this dataset.
 
 
8
  - verl
9
  - reinforcement-learning
10
  size_categories:
11
+ - 10K<n<100K
12
  configs:
13
  - config_name: default
14
  data_files:
15
  - split: train
16
+ path: data/verl_deepscaler_clean_39179.parquet
 
 
17
  ---
18
 
19
  # DeepScaleR-Verl-Clean
20
 
21
+ A single cleaned, deduplicated, verl-ready parquet built from four partial dumps of the
22
+ DeepScaleR math dataset (`agentica-org/DeepScaleR-Preview-Dataset`, MIT licensed). It is
23
+ meant for rule-based-reward GRPO/RL training with the
24
+ [verl](https://github.com/volcengine/verl) framework.
25
 
26
+ ## Files
27
 
28
+ | File | Rows |
29
+ |---|---|
30
+ | `data/verl_deepscaler_clean_39179.parquet` | 39179 |
31
+ | `data/cleaning_report.json` | full paper trail of every dropped row |
32
 
33
+ ## How it was built
34
 
35
+ Sources were read in priority order (`deepscaler_part1.jsonl`, `deepscaler_part2.jsonl`,
36
+ `deepscaler_export.json`, `deepscaler_legacy.jsonl`; within a file, earlier rows win):
37
 
38
+ 1. **Validity** - a row is garbage unless its statement *and* its answer are both present
39
+ and non-blank after trimming. Invalid rows are removed *before* deduplication, so a
40
+ broken copy can never steal the slot of a good copy. Rows whose statement is unusable
41
+ are recorded as `missing_problem`, rows with a usable statement but no answer as
42
+ `missing_answer`. A missing `solution` is not garbage: it is stored as an empty string.
43
+ 2. **Identity / deduplication** - identity is the trimmed statement text. Only the first
44
+ occurrence (by source priority, then row order) is kept; every later copy is dropped as
45
+ `duplicate`, including legacy copies that carry stale answers.
46
+ 3. **Ordering / indexing** - survivors are sorted by statement text ascending (plain
47
+ code-point ordering) and numbered 0..N-1; `extra_info.index` equals the row's position
48
+ and the parquet is physically in that order. Prompts carry the trimmed statement and
49
+ `reward_model.ground_truth` the trimmed answer.
50
 
51
+ Totals: 43608 input rows -> 39179 kept, 4390 dropped as duplicates, 39 dropped as invalid.
52
+ See `data/cleaning_report.json` for the per-row detail of everything that was thrown away.
 
 
 
53
 
54
  ## Schema (verl)
55
 
56
+ Five columns, in this order:
57
 
58
+ | Column | Content |
59
+ |---|---|
60
+ | `data_source` | `"DeepScaleR"` |
61
+ | `prompt` | `[{"role": "user", "content": "<trimmed problem statement>"}]` |
62
+ | `ability` | `"math"` |
63
+ | `reward_model` | `{"style": "rule", "ground_truth": "<trimmed answer>"}` |
64
+ | `extra_info` | `{"index": <row position>, "solution": "<solution, or empty string>"}` |
65
+
66
+ ## Usage
67
 
68
+ ```python
69
+ from datasets import load_dataset
70
+ ds = load_dataset("dusersad12/DeepScaleR-Verl-Clean", split="train")
71
+ ```
data/cleaning_report.json ADDED
The diff for this file is too large to render. See raw diff
 
data/train.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
data/val.jsonl DELETED
The diff for this file is too large to render. See raw diff
 
data/verl_deepscaler_clean_39179.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5c72a5e8b4dcd5203845a632d56f0a8f306b87c2f6cef3d6cafd453ebe71748
3
+ size 6523404
dataset_report.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "raw_rows": 2100,
3
- "kept_rows": 2000,
4
- "dropped": {
5
- "foreign_source": 15,
6
- "missing_field": 25,
7
- "duplicate": 60
8
- },
9
- "train_rows": 1950,
10
- "val_rows": 50,
11
- "manifest_check": {
12
- "discrepancies": [
13
- {
14
- "field": "valid_unique_problems",
15
- "manifest_value": 2050,
16
- "observed_value": 2000
17
- },
18
- {
19
- "field": "known_duplicate_entries",
20
- "manifest_value": 75,
21
- "observed_value": 60
22
- }
23
- ]
24
- },
25
- "sha256": {
26
- "verl_deepscaler_train.parquet": "e51b4f3dc20da2a8eef9c75797a2df481510e4232983041daa74dc551bd529fa",
27
- "verl_deepscaler_val.parquet": "83e0271fe9c292a4de453f11ea7936f081796503ed0986649cea3e46e65cc348"
28
- }
29
- }