File size: 3,607 Bytes
0ab294e
7e3efa6
 
 
 
 
0ab294e
be43274
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
abe2e02
 
 
 
 
 
 
 
 
 
 
 
 
 
46f144c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43da957
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8143ed6
0ab294e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7e3efa6
 
 
 
8143ed6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0ab294e
be43274
 
 
 
abe2e02
 
 
 
46f144c
 
 
 
43da957
 
 
 
0ab294e
 
 
 
8143ed6
 
 
 
5e78c39
 
7e3efa6
a1f3505
 
 
 
 
 
1d91418
a1f3505
99c14bb
 
 
 
 
 
 
a1f3505
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
---
language:
- en
license: odc-by
task_categories:
- text2text-generation
dataset_info:
- config_name: Commercial-Flan-Collection-SNI
  features:
  - name: inputs
    dtype: string
  - name: targets
    dtype: string
  - name: user_parent
    dtype: string
  - name: assistant_parent
    dtype: int64
  - name: sha256
    dtype: string
  splits:
  - name: train
    num_bytes: 831464242.212652
    num_examples: 270970
  download_size: 495528717
  dataset_size: 831464242.212652
- config_name: all
  features:
  - name: inputs
    dtype: string
  - name: targets
    dtype: string
  - name: sha256
    dtype: string
  splits:
  - name: train
    num_bytes: 12929219074.0
    num_examples: 5422366
  download_size: 7993530510
  dataset_size: 12929219074.0
- config_name: flan
  features:
  - name: inputs
    dtype: string
  - name: targets
    dtype: string
  - name: task
    dtype: string
  - name: sha256
    dtype: string
  splits:
  - name: train
    num_bytes: 895686276.9988031
    num_examples: 633211
  download_size: 552537280
  dataset_size: 895686276.9988031
- config_name: flan-v2
  features:
  - name: inputs
    dtype: string
  - name: targets
    dtype: string
  - name: task_name
    dtype: string
  - name: task_source
    dtype: string
  - name: template_type
    dtype: string
  - name: template_idx
    dtype: int64
  - name: sha256
    dtype: string
  splits:
  - name: train
    num_bytes: 11345947198.707159
    num_examples: 4708060
  download_size: 6892653722
  dataset_size: 11345947198.707159
- config_name: niv2_submix_original
  features:
  - name: inputs
    dtype: string
  - name: targets
    dtype: string
  - name: task_source
    dtype: string
  - name: task_name
    dtype: string
  - name: template_type
    dtype: string
  - name: sha256
    dtype: string
  splits:
  - name: train
    num_bytes: 2259110556.8104787
    num_examples: 849729
  download_size: 1406102153
  dataset_size: 2259110556.8104787
- config_name: t0_submix_original
  features:
  - name: inputs
    dtype: string
  - name: targets
    dtype: string
  - name: task_source
    dtype: string
  - name: task_name
    dtype: string
  - name: template_type
    dtype: string
  - name: sha256
    dtype: string
  splits:
  - name: train
    num_bytes: 771692762.3727111
    num_examples: 305764
  download_size: 464190712
  dataset_size: 771692762.3727111
configs:
- config_name: Commercial-Flan-Collection-SNI
  data_files:
  - split: train
    path: Commercial-Flan-Collection-SNI/train-*
- config_name: all
  data_files:
  - split: train
    path: all/train-*
- config_name: flan
  data_files:
  - split: train
    path: flan/train-*
- config_name: flan-v2
  data_files:
  - split: train
    path: flan-v2/train-*
- config_name: niv2_submix_original
  data_files:
  - split: train
    path: niv2_submix_original/train-*
- config_name: t0_submix_original
  data_files:
  - split: train
    path: t0_submix_original/train-*
tags:
- flan
---



# flan subsets: deduped

> [!IMPORTANT]
> see config `all` for the aggregated & deduped dataset

- all configs/subsets have columns `inputs` and `targets`
- deduped on `inputs`
- filtered for lang `en` if contents more than 5 chars.
  - filter out any row with less than 1 char for either column
- `clean-text` applied to both columns

## dedup command 

deduped with:

```sh
python -m text_dedup.minhash \
  --path $ds_name \
  --name $dataset_config \
  --split $data_split \
  --cache_dir "./cache" \
  --output $out_dir \
  --column $text_column \
  --ngram 3 --threshold 0.6 \
  --hash_func xxh3 --hash_bits 32 --num_perm 192 \
  --batch_size 50000
```