xinpeng commited on
Commit
9e9804a
·
verified ·
1 Parent(s): 2779a4f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +24 -36
README.md CHANGED
@@ -1,38 +1,26 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: chosen
5
- list:
6
- - name: content
7
- dtype: string
8
- - name: role
9
- dtype: string
10
- - name: rejected
11
- list:
12
- - name: content
13
- dtype: string
14
- - name: role
15
- dtype: string
16
- - name: prompt
17
- list:
18
- - name: content
19
- dtype: string
20
- - name: role
21
- dtype: string
22
- splits:
23
- - name: train
24
- num_bytes: 211091290
25
- num_examples: 160800
26
- - name: test
27
- num_bytes: 11300518
28
- num_examples: 8552
29
- download_size: 127353690
30
- dataset_size: 222391808
31
- configs:
32
- - config_name: default
33
- data_files:
34
- - split: train
35
- path: data/train-*
36
- - split: test
37
- path: data/test-*
38
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - trl
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  ---
5
+
6
+ # HH-RLHF-Harmless-Base Dataset
7
+
8
+ ## Summary
9
+
10
+ The HH-RLHF-Harmless-Base dataset is a processed version of [Anthropic's HH-RLHF](https://huggingface.co/datasets/Anthropic/hh-rlhf) dataset, specifically curated to train models using the [TRL library](https://github.com/huggingface/trl) for preference learning and alignment tasks. It contains pairs of text samples, each labeled as either "chosen" or "rejected," based on human preferences regarding the harmlessness of the responses. This dataset enables models to learn human preferences in generating harmless responses, enhancing their ability to assist users effectively.
11
+
12
+ ## Data Structure
13
+
14
+ - **Format**: [Conversational](https://huggingface.co/docs/trl/main/dataset_formats#conversational)
15
+ - **Type**: [Preference](https://huggingface.co/docs/trl/main/dataset_formats#preference)
16
+
17
+ Columns:
18
+ - `"prompt"`: The user query.
19
+ - `"chosen"`: A response deemed harmless by human evaluators.
20
+ - `"rejected"`: A response considered less harmless or harmful.
21
+
22
+ This structure allows models to learn to prefer the _chosen_ response over the _rejected_ one, thereby aligning with human preferences in harmlessness.
23
+
24
+ ## Generation script
25
+
26
+ The script used to generate this dataset can be found [here](https://github.com/huggingface/trl/blob/main/examples/datasets/hh-rlhf-harmless-base.py).