File size: 2,112 Bytes
e3e0f8e
d14d720
 
 
 
 
 
e3e0f8e
 
 
d14d720
e3e0f8e
 
 
0e8958f
 
 
 
d14d720
 
0e8958f
 
e3e0f8e
d14d720
 
 
 
 
 
 
 
 
 
 
 
 
e3e0f8e
 
d14d720
 
e3e0f8e
 
d14d720
 
 
 
 
e3e0f8e
 
d14d720
 
0e8958f
 
 
 
 
 
 
 
 
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
# miles-diffusion-datasets

Prompt datasets used by the miles-diffusion training pipeline.

## Layout

```
flowgrpo_ocr/                    # OCR-style prompts from flowGRPO
├── train.jsonl                  # 19,653
└── test.jsonl                   # 1,018

flowgrpo_pickscore/              # PickScore prompts from flowGRPO
├── train.jsonl                  # 25,432
└── test.jsonl                   # 2,048

hpdv2/                           # Deduplicated prompts from HPDv2
├── train.jsonl                  # 103,672
└── test.jsonl                   # 242
```

Directory names record the upstream source so the schema stays clear when
more datasets land here later (other reward families, internal prompts, etc.).

## Format

Each `.jsonl` file has one JSON object per line:

```json
{"input": "A close-up of a medicine bottle with a clear, red warning label..."}
```

UTF-8 encoded (`ensure_ascii=False`), no escaping for non-ASCII characters.

## Usage

```bash
hf download --repo-type dataset rockdu/miles-diffusion-datasets \
    --local-dir /root/datasets/miles-diffusion-datasets

python train_diffusion.py \
    --prompt-data /root/datasets/miles-diffusion-datasets/flowgrpo_ocr/train.jsonl \
    --eval-prompt-data ocr_test /root/datasets/miles-diffusion-datasets/flowgrpo_ocr/test.jsonl \
    ...
```

## Provenance

`flowgrpo_*` directories: extracted from
[flow_grpo](https://github.com/yifan123/flow_grpo)'s
`dataset/{ocr,pickscore}/{train,test}.txt` files (one prompt per line) and
converted to `{"input": prompt}` JSONL format.

`hpdv2/`: extracted from the `prompt` field of
[`ymhao/HPDv2`](https://huggingface.co/datasets/ymhao/HPDv2) at revision
`bb0f2563e451e11c3f376b2ba93615db00e042e1`. Prompts are stripped, empty or
non-string values are dropped, and each source split is deduplicated while
preserving first occurrence. Prompts present in `train` are removed from
`test`, leaving no cross-split overlap. The source dataset is licensed under
Apache-2.0; please cite the original
[HPSv2 paper](https://arxiv.org/abs/2306.09341) when using these prompts.