zerostratos
commited on
Upload folder using huggingface_hub
Browse files- .gitattributes +14 -0
- dedup_3/c4_part1_nontoxic_dedup.json +3 -0
- dedup_3/c4_part2_nontoxic_dedup.json +3 -0
- dedup_3/c4_part3_1_nontoxic_dedup.json +3 -0
- dedup_3/c4_part3_2_nontoxic_dedup.json +3 -0
- dedup_3/c4_part3_3_nontoxic_dedup.json +3 -0
- dedup_3/c4_part3_4_nontoxic_dedup.json +3 -0
- dedup_3/c4_part3_5_nontoxic_dedup.json +3 -0
- dedup_3/c4_part4_1_nontoxic_dedup.json +3 -0
- dedup_3/c4_part4_2_nontoxic_dedup.json +3 -0
- dedup_3/c4_part4_3_nontoxic_dedup.json +3 -0
- dedup_3/c4_part4_4_nontoxic_dedup.json +3 -0
- dedup_3/c4_part4_5_nontoxic_dedup.json +3 -0
- dedup_3/c4_part4_6_nontoxic_dedup.json +3 -0
- dedup_3/c4_part4_7_nontoxic_dedup.json +3 -0
- dedup_3/log/export_c4_part1_nontoxic_dedup.jsonl_time_20241118082516.txt +200 -0
- dedup_3/log/export_c4_part1_nontoxic_dedup.jsonl_time_20241118082701.txt +188 -0
- dedup_3/log/export_c4_part1_nontoxic_dedup.jsonl_time_20241118082750.txt +292 -0
- dedup_3/log/export_c4_part1_nontoxic_dedup.jsonl_time_20241118082837.txt +123 -0
- dedup_3/log/export_c4_part1_nontoxic_dedup.jsonl_time_20241118082927.txt +0 -0
- dedup_3/process.yaml +23 -0
.gitattributes
CHANGED
@@ -79,3 +79,17 @@ c4_part6_nontoxic.csv filter=lfs diff=lfs merge=lfs -text
|
|
79 |
c4_part7_nontoxic.csv filter=lfs diff=lfs merge=lfs -text
|
80 |
c4_part8_toxic.csv filter=lfs diff=lfs merge=lfs -text
|
81 |
toxic_2/c4_part7_nontoxic.cs filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
c4_part7_nontoxic.csv filter=lfs diff=lfs merge=lfs -text
|
80 |
c4_part8_toxic.csv filter=lfs diff=lfs merge=lfs -text
|
81 |
toxic_2/c4_part7_nontoxic.cs filter=lfs diff=lfs merge=lfs -text
|
82 |
+
dedup_3/c4_part1_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
83 |
+
dedup_3/c4_part2_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
84 |
+
dedup_3/c4_part3_1_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
85 |
+
dedup_3/c4_part3_2_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
86 |
+
dedup_3/c4_part3_3_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
87 |
+
dedup_3/c4_part3_4_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
88 |
+
dedup_3/c4_part3_5_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
89 |
+
dedup_3/c4_part4_1_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
90 |
+
dedup_3/c4_part4_2_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
91 |
+
dedup_3/c4_part4_3_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
92 |
+
dedup_3/c4_part4_4_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
93 |
+
dedup_3/c4_part4_5_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
94 |
+
dedup_3/c4_part4_6_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
95 |
+
dedup_3/c4_part4_7_nontoxic_dedup.json filter=lfs diff=lfs merge=lfs -text
|
dedup_3/c4_part1_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:382d8252971fc794557f401aa5f19c86fe96a79cd44210f823cf4728a90ea036
|
3 |
+
size 313729455
|
dedup_3/c4_part2_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19ec1cda744e14770e7b65a0010e7610b6c97fc0d2ad7f95ff01c04c67057f0c
|
3 |
+
size 308692324
|
dedup_3/c4_part3_1_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64b767391cd8f5b5d49b0dee4d6bd153c9ff236717f8d28faeca1258445fbce1
|
3 |
+
size 485333981
|
dedup_3/c4_part3_2_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7fc6a4dd9767084a74714f5fa537a09132de443d6c16113aaf9ac8fdd9ab7aa6
|
3 |
+
size 482199212
|
dedup_3/c4_part3_3_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:143d937646fe14adb5cc0a15265124536bedf0079491aa639e530c8fb60b5930
|
3 |
+
size 491661681
|
dedup_3/c4_part3_4_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0e2b94b0fbe5facb7b2c365648280b01ad85262ec5e6a84f9c2d0532bf8179d7
|
3 |
+
size 491127373
|
dedup_3/c4_part3_5_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:490e6d42d9ec85a19f3223eee13960d1e85d72efcae59c65e95a65f5a71e7b37
|
3 |
+
size 492530694
|
dedup_3/c4_part4_1_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c0973d1d0311067c88015452e4dfc25a256efdc747e873d0f1b6ba25c78d96b8
|
3 |
+
size 436261388
|
dedup_3/c4_part4_2_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ffbb60b0e34f7dc1e77f49185b490b701e4e67694f14670388278881e463315b
|
3 |
+
size 433526802
|
dedup_3/c4_part4_3_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:612e32ddaa584389390e666e82e696ae2826b0c7850a4500aaf3186cd6cceda0
|
3 |
+
size 437765870
|
dedup_3/c4_part4_4_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc2cc61ecda6164fa704016ab39f9e4cc452d83b727799f50e9b59ca528cf6e3
|
3 |
+
size 430594199
|
dedup_3/c4_part4_5_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b8334982c3ae0edf1463e2c07b452eac146090b32d610e304386f0181317634c
|
3 |
+
size 438281158
|
dedup_3/c4_part4_6_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1a62d932f5ab418382800efa4acb3ae062051b71c9fb2bc8911fe0b2c8f2daf
|
3 |
+
size 438297401
|
dedup_3/c4_part4_7_nontoxic_dedup.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5c1cc48a29e3da0d368ed849f35f8a9568e674f2173b9fc23e0e34b1f0ff3809
|
3 |
+
size 434106099
|
dedup_3/log/export_c4_part1_nontoxic_dedup.jsonl_time_20241118082516.txt
ADDED
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
2024-11-18 08:25:19.739 | INFO | data_juicer.config.config:config_backup:635 - Back up the input config file [/workspace/thviet/LLMs/Monolingual/process.yaml] into the work_dir [/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup]
|
2 |
+
2024-11-18 08:25:19.780 | INFO | data_juicer.config.config:display_config:657 - Configuration table:
|
3 |
+
╒══════════════════════════╤══════════════════════════════════════════════════════════════════════════════════════╕
|
4 |
+
│ key │ values │
|
5 |
+
╞══════════════════════════╪══════════════════════════════════════════════════════════════════════════════════════╡
|
6 |
+
│ config │ [Path_fr(/workspace/thviet/LLMs/Monolingual/process.yaml)] │
|
7 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
8 |
+
│ hpo_config │ None │
|
9 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
10 |
+
│ data_probe_algo │ 'uniform' │
|
11 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
12 |
+
│ data_probe_ratio │ 1.0 │
|
13 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
14 |
+
│ project_name │ 'test-process' │
|
15 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
16 |
+
│ executor_type │ 'default' │
|
17 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
18 |
+
│ dataset_path │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup/c4_part1_nontoxic_dedup.json' │
|
19 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
20 |
+
│ generated_dataset_config │ None │
|
21 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
22 |
+
│ export_path │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup/c4_part1_nontoxic_dedup.jsonl' │
|
23 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
24 |
+
│ export_shard_size │ 0 │
|
25 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
26 |
+
│ export_in_parallel │ False │
|
27 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
28 |
+
│ keep_stats_in_res_ds │ False │
|
29 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
30 |
+
│ keep_hashes_in_res_ds │ False │
|
31 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
32 |
+
│ np │ 10 │
|
33 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
34 |
+
│ text_keys │ 'text' │
|
35 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
36 |
+
│ image_key │ 'images' │
|
37 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
38 |
+
│ image_special_token │ '<__dj__image>' │
|
39 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
40 |
+
│ audio_key │ 'audios' │
|
41 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
42 |
+
│ audio_special_token │ '<__dj__audio>' │
|
43 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
44 |
+
│ video_key │ 'videos' │
|
45 |
+
├─���────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
46 |
+
│ video_special_token │ '<__dj__video>' │
|
47 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
48 |
+
│ eoc_special_token │ '<|__dj__eoc|>' │
|
49 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
50 |
+
│ suffixes │ [] │
|
51 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
52 |
+
│ turbo │ False │
|
53 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
54 |
+
│ use_cache │ True │
|
55 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
56 |
+
│ ds_cache_dir │ '/home/thviet/.cache/huggingface/datasets' │
|
57 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
58 |
+
│ cache_compress │ None │
|
59 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
60 |
+
│ use_checkpoint │ False │
|
61 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
62 |
+
│ temp_dir │ None │
|
63 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
64 |
+
│ open_tracer │ False │
|
65 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
66 |
+
│ op_list_to_trace │ [] │
|
67 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
68 |
+
│ trace_num │ 10 │
|
69 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
70 |
+
│ op_fusion │ False │
|
71 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
72 |
+
│ process │ [{'fix_unicode_mapper': {'accelerator': None, │
|
73 |
+
│ │ 'audio_key': 'audios', │
|
74 |
+
│ │ 'cpu_required': 1, │
|
75 |
+
│ │ 'image_key': 'images', │
|
76 |
+
│ │ 'mem_required': 0, │
|
77 |
+
│ │ 'normalization': None, │
|
78 |
+
│ │ 'num_proc': 10, │
|
79 |
+
│ │ 'text_key': 'text', │
|
80 |
+
│ │ 'turbo': False, │
|
81 |
+
│ │ 'video_key': 'videos'}}, │
|
82 |
+
│ │ {'sentence_split_mapper': {'accelerator': None, │
|
83 |
+
│ │ 'audio_key': 'audios', │
|
84 |
+
│ │ 'cpu_required': 1, │
|
85 |
+
│ │ 'image_key': 'images', │
|
86 |
+
│ │ 'lang': 'vi', │
|
87 |
+
│ │ 'mem_required': 0, │
|
88 |
+
│ │ 'num_proc': 10, │
|
89 |
+
│ │ 'text_key': 'text', │
|
90 |
+
│ │ 'turbo': False, │
|
91 |
+
│ │ 'video_key': 'videos'}}, │
|
92 |
+
│ │ {'language_id_score_filter': {'accelerator': None, │
|
93 |
+
│ │ 'audio_key': 'audios', │
|
94 |
+
│ │ 'cpu_required': 1, │
|
95 |
+
│ │ 'image_key': 'images', │
|
96 |
+
│ │ 'lang': 'vi', │
|
97 |
+
│ │ 'mem_required': 0, │
|
98 |
+
│ │ 'min_score': 0.8, │
|
99 |
+
│ │ 'num_proc': 10, │
|
100 |
+
│ │ 'stats_export_path': None, │
|
101 |
+
│ │ 'text_key': 'text', │
|
102 |
+
│ │ 'turbo': False, │
|
103 |
+
│ │ 'video_key': 'videos'}}] │
|
104 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
105 |
+
│ percentiles │ [] │
|
106 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
107 |
+
│ export_original_dataset │ False │
|
108 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
109 |
+
│ save_stats_in_one_file │ False │
|
110 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
111 |
+
│ ray_address │ 'auto' │
|
112 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
113 |
+
│ debug │ False │
|
114 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
115 |
+
│ work_dir │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup' │
|
116 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
117 |
+
│ timestamp │ '20241118082516' │
|
118 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
119 |
+
│ dataset_dir │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup' │
|
120 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
121 |
+
│ add_suffix │ False │
|
122 |
+
╘══════════════════════════╧══════════════════════════════════════════════════════════════════════════════════════╛
|
123 |
+
2024-11-18 08:25:19.782 | INFO | data_juicer.core.executor:__init__:45 - Using cache compression method: [None]
|
124 |
+
2024-11-18 08:25:19.782 | INFO | data_juicer.core.executor:__init__:50 - Setting up data formatter...
|
125 |
+
2024-11-18 08:25:19.783 | INFO | data_juicer.core.executor:__init__:73 - Preparing exporter...
|
126 |
+
2024-11-18 08:25:19.783 | INFO | data_juicer.core.executor:run:150 - Loading dataset from data formatter...
|
127 |
+
|
128 |
+
2024-11-18 08:25:23.602 | INFO | data_juicer.format.formatter:unify_format:185 - Unifying the input dataset formats...
|
129 |
+
2024-11-18 08:25:23.603 | INFO | data_juicer.format.formatter:unify_format:200 - There are 73362 sample(s) in the original dataset.
|
130 |
+
|
131 |
+
2024-11-18 08:25:24.714 | INFO | data_juicer.format.formatter:unify_format:214 - 73362 samples left after filtering empty text.
|
132 |
+
2024-11-18 08:25:24.715 | INFO | data_juicer.format.mixture_formatter:load_dataset:137 - sampled 73362 from 73362
|
133 |
+
2024-11-18 08:25:24.723 | INFO | data_juicer.format.mixture_formatter:load_dataset:143 - There are 73362 in final dataset
|
134 |
+
2024-11-18 08:25:24.724 | INFO | data_juicer.core.executor:run:156 - Preparing process operators...
|
135 |
+
2024-11-18 08:25:24.725 | ERROR | __main__:<module>:19 - An error has been caught in function '<module>', process 'MainProcess' (1264240), thread 'MainThread' (140142906500928):
|
136 |
+
Traceback (most recent call last):
|
137 |
+
|
138 |
+
> File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 19, in <module>
|
139 |
+
main()
|
140 |
+
└ <function main at 0x7f74486b04c0>
|
141 |
+
|
142 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 15, in main
|
143 |
+
executor.run()
|
144 |
+
│ └ <function Executor.run at 0x7f74486b0310>
|
145 |
+
└ <data_juicer.core.executor.Executor object at 0x7f744833dbd0>
|
146 |
+
|
147 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/core/executor.py", line 157, in run
|
148 |
+
ops = load_ops(self.cfg.process, self.cfg.op_fusion)
|
149 |
+
│ │ │ │ │ │ └ False
|
150 |
+
│ │ │ │ │ └ Namespace(config=[Path_fr(/workspace/thviet/LLMs/Monolingual/process.yaml)], hpo_config=None, data_probe_algo='uniform', data...
|
151 |
+
│ │ │ │ └ <data_juicer.core.executor.Executor object at 0x7f744833dbd0>
|
152 |
+
│ │ │ └ [{'fix_unicode_mapper': {'normalization': None, 'text_key': 'text', 'image_key': 'images', 'audio_key': 'audios', 'video_key'...
|
153 |
+
│ │ └ Namespace(config=[Path_fr(/workspace/thviet/LLMs/Monolingual/process.yaml)], hpo_config=None, data_probe_algo='uniform', data...
|
154 |
+
│ └ <data_juicer.core.executor.Executor object at 0x7f744833dbd0>
|
155 |
+
└ <function load_ops at 0x7f7451883be0>
|
156 |
+
|
157 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/load.py", line 28, in load_ops
|
158 |
+
ops.append(OPERATORS.modules[op_name](**args))
|
159 |
+
│ │ │ │ │ └ {'lang': 'vi', 'text_key': 'text', 'image_key': 'images', 'audio_key': 'audios', 'video_key': 'videos', 'accelerator': None, ...
|
160 |
+
│ │ │ │ └ 'sentence_split_mapper'
|
161 |
+
│ │ │ └ <property object at 0x7f74937f6890>
|
162 |
+
│ │ └ <data_juicer.utils.registry.Registry object at 0x7f74a76a65c0>
|
163 |
+
│ └ <method 'append' of 'list' objects>
|
164 |
+
└ [<data_juicer.ops.mapper.fix_unicode_mapper.FixUnicodeMapper object at 0x7f74480dbac0>]
|
165 |
+
|
166 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/mapper/sentence_split_mapper.py", line 27, in __init__
|
167 |
+
self.model_key = prepare_model(model_type='nltk', lang=lang)
|
168 |
+
│ │ └ 'vi'
|
169 |
+
│ └ <function prepare_model at 0x7f749388eb90>
|
170 |
+
└ <data_juicer.ops.mapper.sentence_split_mapper.SentenceSplitMapper object at 0x7f74480db790>
|
171 |
+
|
172 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 625, in prepare_model
|
173 |
+
model_key()
|
174 |
+
└ functools.partial(<function prepare_nltk_model at 0x7f749388e680>, lang='vi')
|
175 |
+
|
176 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 178, in prepare_nltk_model
|
177 |
+
assert lang in nltk_to_punkt.keys(
|
178 |
+
│ │ └ <method 'keys' of 'dict' objects>
|
179 |
+
│ └ {'en': 'english', 'fr': 'french', 'pt': 'portuguese', 'es': 'spanish'}
|
180 |
+
└ 'vi'
|
181 |
+
|
182 |
+
AssertionError: lang must be one of the following: ['en', 'fr', 'pt', 'es']
|
183 |
+
Traceback (most recent call last):
|
184 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 19, in <module>
|
185 |
+
main()
|
186 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/loguru/_logger.py", line 1277, in catch_wrapper
|
187 |
+
return function(*args, **kwargs)
|
188 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 15, in main
|
189 |
+
executor.run()
|
190 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/core/executor.py", line 157, in run
|
191 |
+
ops = load_ops(self.cfg.process, self.cfg.op_fusion)
|
192 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/load.py", line 28, in load_ops
|
193 |
+
ops.append(OPERATORS.modules[op_name](**args))
|
194 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/mapper/sentence_split_mapper.py", line 27, in __init__
|
195 |
+
self.model_key = prepare_model(model_type='nltk', lang=lang)
|
196 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 625, in prepare_model
|
197 |
+
model_key()
|
198 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 178, in prepare_nltk_model
|
199 |
+
assert lang in nltk_to_punkt.keys(
|
200 |
+
AssertionError: lang must be one of the following: ['en', 'fr', 'pt', 'es']
|
dedup_3/log/export_c4_part1_nontoxic_dedup.jsonl_time_20241118082701.txt
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
2024-11-18 08:27:05.268 | INFO | data_juicer.config.config:config_backup:635 - Back up the input config file [/workspace/thviet/LLMs/Monolingual/process.yaml] into the work_dir [/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup]
|
2 |
+
2024-11-18 08:27:05.286 | INFO | data_juicer.config.config:display_config:657 - Configuration table:
|
3 |
+
╒══════════════════════════╤══════════════════════════════════════════════════════════════════════════════════════╕
|
4 |
+
│ key │ values │
|
5 |
+
╞══════════════════════════╪══════════════════════════════════════════════════════════════════════════════════════╡
|
6 |
+
│ config │ [Path_fr(/workspace/thviet/LLMs/Monolingual/process.yaml)] │
|
7 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
8 |
+
│ hpo_config │ None │
|
9 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
10 |
+
│ data_probe_algo │ 'uniform' │
|
11 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
12 |
+
│ data_probe_ratio │ 1.0 │
|
13 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
14 |
+
│ project_name │ 'test-process' │
|
15 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
16 |
+
│ executor_type │ 'default' │
|
17 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
18 |
+
│ dataset_path │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup/c4_part1_nontoxic_dedup.json' │
|
19 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
20 |
+
│ generated_dataset_config │ None │
|
21 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
22 |
+
│ export_path │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup/c4_part1_nontoxic_dedup.jsonl' │
|
23 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
24 |
+
│ export_shard_size │ 0 │
|
25 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
26 |
+
│ export_in_parallel │ False │
|
27 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
28 |
+
│ keep_stats_in_res_ds │ False │
|
29 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
30 |
+
│ keep_hashes_in_res_ds │ False │
|
31 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
32 |
+
│ np │ 10 │
|
33 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
34 |
+
│ text_keys │ 'text' │
|
35 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
36 |
+
│ image_key │ 'images' │
|
37 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
38 |
+
│ image_special_token │ '<__dj__image>' │
|
39 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
40 |
+
│ audio_key │ 'audios' │
|
41 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
42 |
+
│ audio_special_token │ '<__dj__audio>' │
|
43 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
44 |
+
│ video_key │ 'videos' │
|
45 |
+
├─���────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
46 |
+
│ video_special_token │ '<__dj__video>' │
|
47 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
48 |
+
│ eoc_special_token │ '<|__dj__eoc|>' │
|
49 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
50 |
+
│ suffixes │ [] │
|
51 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
52 |
+
│ turbo │ False │
|
53 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
54 |
+
│ use_cache │ True │
|
55 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
56 |
+
│ ds_cache_dir │ '/home/thviet/.cache/huggingface/datasets' │
|
57 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
58 |
+
│ cache_compress │ None │
|
59 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
60 |
+
│ use_checkpoint │ False │
|
61 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
62 |
+
│ temp_dir │ None │
|
63 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
64 |
+
│ open_tracer │ False │
|
65 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
66 |
+
│ op_list_to_trace │ [] │
|
67 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
68 |
+
│ trace_num │ 10 │
|
69 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
70 |
+
│ op_fusion │ False │
|
71 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
72 |
+
│ process │ [{'sentence_split_mapper': {'accelerator': None, │
|
73 |
+
│ │ 'audio_key': 'audios', │
|
74 |
+
│ │ 'cpu_required': 1, │
|
75 |
+
│ │ 'image_key': 'images', │
|
76 |
+
│ │ 'lang': 'vi', │
|
77 |
+
│ │ 'mem_required': 0, │
|
78 |
+
│ │ 'num_proc': 10, │
|
79 |
+
│ │ 'text_key': 'text', │
|
80 |
+
│ │ 'turbo': False, │
|
81 |
+
│ │ 'video_key': 'videos'}}, │
|
82 |
+
│ │ {'language_id_score_filter': {'accelerator': None, │
|
83 |
+
│ │ 'audio_key': 'audios', │
|
84 |
+
│ │ 'cpu_required': 1, │
|
85 |
+
│ │ 'image_key': 'images', │
|
86 |
+
│ │ 'lang': 'vi', │
|
87 |
+
│ │ 'mem_required': 0, │
|
88 |
+
│ │ 'min_score': 0.8, │
|
89 |
+
│ │ 'num_proc': 10, │
|
90 |
+
│ │ 'stats_export_path': None, │
|
91 |
+
│ │ 'text_key': 'text', │
|
92 |
+
│ │ 'turbo': False, │
|
93 |
+
│ │ 'video_key': 'videos'}}] │
|
94 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
95 |
+
│ percentiles │ [] │
|
96 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
97 |
+
│ export_original_dataset │ False │
|
98 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
99 |
+
│ save_stats_in_one_file │ False │
|
100 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
101 |
+
│ ray_address │ 'auto' │
|
102 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
103 |
+
│ debug │ False │
|
104 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
105 |
+
│ work_dir │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup' │
|
106 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
107 |
+
│ timestamp │ '20241118082701' │
|
108 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
109 |
+
│ dataset_dir │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup' │
|
110 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
111 |
+
│ add_suffix │ False │
|
112 |
+
╘══════════════════════════╧══════════════════════════════════════════════════════════════════════════════════════╛
|
113 |
+
2024-11-18 08:27:05.288 | INFO | data_juicer.core.executor:__init__:45 - Using cache compression method: [None]
|
114 |
+
2024-11-18 08:27:05.288 | INFO | data_juicer.core.executor:__init__:50 - Setting up data formatter...
|
115 |
+
2024-11-18 08:27:05.289 | INFO | data_juicer.core.executor:__init__:73 - Preparing exporter...
|
116 |
+
2024-11-18 08:27:05.290 | INFO | data_juicer.core.executor:run:150 - Loading dataset from data formatter...
|
117 |
+
2024-11-18 08:27:06.070 | INFO | data_juicer.format.formatter:unify_format:185 - Unifying the input dataset formats...
|
118 |
+
2024-11-18 08:27:06.071 | INFO | data_juicer.format.formatter:unify_format:200 - There are 73362 sample(s) in the original dataset.
|
119 |
+
2024-11-18 08:27:06.116 | INFO | data_juicer.format.formatter:unify_format:214 - 73362 samples left after filtering empty text.
|
120 |
+
2024-11-18 08:27:06.117 | INFO | data_juicer.format.mixture_formatter:load_dataset:137 - sampled 73362 from 73362
|
121 |
+
2024-11-18 08:27:06.121 | INFO | data_juicer.format.mixture_formatter:load_dataset:143 - There are 73362 in final dataset
|
122 |
+
2024-11-18 08:27:06.121 | INFO | data_juicer.core.executor:run:156 - Preparing process operators...
|
123 |
+
2024-11-18 08:27:06.122 | ERROR | __main__:<module>:19 - An error has been caught in function '<module>', process 'MainProcess' (1267895), thread 'MainThread' (139671646975808):
|
124 |
+
Traceback (most recent call last):
|
125 |
+
|
126 |
+
> File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 19, in <module>
|
127 |
+
main()
|
128 |
+
└ <function main at 0x7f068e26c310>
|
129 |
+
|
130 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 15, in main
|
131 |
+
executor.run()
|
132 |
+
│ └ <function Executor.run at 0x7f068e26c160>
|
133 |
+
└ <data_juicer.core.executor.Executor object at 0x7f068e1b75e0>
|
134 |
+
|
135 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/core/executor.py", line 157, in run
|
136 |
+
ops = load_ops(self.cfg.process, self.cfg.op_fusion)
|
137 |
+
│ │ │ │ │ │ └ False
|
138 |
+
│ │ │ │ │ └ Namespace(config=[Path_fr(/workspace/thviet/LLMs/Monolingual/process.yaml)], hpo_config=None, data_probe_algo='uniform', data...
|
139 |
+
│ │ │ │ └ <data_juicer.core.executor.Executor object at 0x7f068e1b75e0>
|
140 |
+
│ │ │ └ [{'sentence_split_mapper': {'lang': 'vi', 'text_key': 'text', 'image_key': 'images', 'audio_key': 'audios', 'video_key': 'vid...
|
141 |
+
│ │ └ Namespace(config=[Path_fr(/workspace/thviet/LLMs/Monolingual/process.yaml)], hpo_config=None, data_probe_algo='uniform', data...
|
142 |
+
│ └ <data_juicer.core.executor.Executor object at 0x7f068e1b75e0>
|
143 |
+
└ <function load_ops at 0x7f069843fbe0>
|
144 |
+
|
145 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/load.py", line 28, in load_ops
|
146 |
+
ops.append(OPERATORS.modules[op_name](**args))
|
147 |
+
│ │ │ │ │ └ {'lang': 'vi', 'text_key': 'text', 'image_key': 'images', 'audio_key': 'audios', 'video_key': 'videos', 'accelerator': None, ...
|
148 |
+
│ │ │ │ └ 'sentence_split_mapper'
|
149 |
+
│ │ │ └ <property object at 0x7f06da5b68e0>
|
150 |
+
│ │ └ <data_juicer.utils.registry.Registry object at 0x7f06e89465c0>
|
151 |
+
│ └ <method 'append' of 'list' objects>
|
152 |
+
└ []
|
153 |
+
|
154 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/mapper/sentence_split_mapper.py", line 27, in __init__
|
155 |
+
self.model_key = prepare_model(model_type='nltk', lang=lang)
|
156 |
+
│ │ └ 'vi'
|
157 |
+
│ └ <function prepare_model at 0x7f06da456b90>
|
158 |
+
└ <data_juicer.ops.mapper.sentence_split_mapper.SentenceSplitMapper object at 0x7f068da3f6d0>
|
159 |
+
|
160 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 625, in prepare_model
|
161 |
+
model_key()
|
162 |
+
└ functools.partial(<function prepare_nltk_model at 0x7f06da456680>, lang='vi')
|
163 |
+
|
164 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 178, in prepare_nltk_model
|
165 |
+
assert lang in nltk_to_punkt.keys(
|
166 |
+
│ │ └ <method 'keys' of 'dict' objects>
|
167 |
+
│ └ {'en': 'english', 'fr': 'french', 'pt': 'portuguese', 'es': 'spanish'}
|
168 |
+
└ 'vi'
|
169 |
+
|
170 |
+
AssertionError: lang must be one of the following: ['en', 'fr', 'pt', 'es']
|
171 |
+
Traceback (most recent call last):
|
172 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 19, in <module>
|
173 |
+
main()
|
174 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/loguru/_logger.py", line 1277, in catch_wrapper
|
175 |
+
return function(*args, **kwargs)
|
176 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 15, in main
|
177 |
+
executor.run()
|
178 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/core/executor.py", line 157, in run
|
179 |
+
ops = load_ops(self.cfg.process, self.cfg.op_fusion)
|
180 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/load.py", line 28, in load_ops
|
181 |
+
ops.append(OPERATORS.modules[op_name](**args))
|
182 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/mapper/sentence_split_mapper.py", line 27, in __init__
|
183 |
+
self.model_key = prepare_model(model_type='nltk', lang=lang)
|
184 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 625, in prepare_model
|
185 |
+
model_key()
|
186 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 178, in prepare_nltk_model
|
187 |
+
assert lang in nltk_to_punkt.keys(
|
188 |
+
AssertionError: lang must be one of the following: ['en', 'fr', 'pt', 'es']
|
dedup_3/log/export_c4_part1_nontoxic_dedup.jsonl_time_20241118082750.txt
ADDED
@@ -0,0 +1,292 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
2024-11-18 08:27:54.101 | INFO | data_juicer.config.config:config_backup:635 - Back up the input config file [/workspace/thviet/LLMs/Monolingual/process.yaml] into the work_dir [/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup]
|
2 |
+
2024-11-18 08:27:54.116 | INFO | data_juicer.config.config:display_config:657 - Configuration table:
|
3 |
+
╒══════════════════════════╤══════════════════════════════════════════════════════════════════════════════════════╕
|
4 |
+
│ key │ values │
|
5 |
+
╞══════════════════════════╪══════════════════════════════════════════════════════════════════════════════════════╡
|
6 |
+
│ config │ [Path_fr(/workspace/thviet/LLMs/Monolingual/process.yaml)] │
|
7 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
8 |
+
│ hpo_config │ None │
|
9 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
10 |
+
│ data_probe_algo │ 'uniform' │
|
11 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
12 |
+
│ data_probe_ratio │ 1.0 │
|
13 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
14 |
+
│ project_name │ 'test-process' │
|
15 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
16 |
+
│ executor_type │ 'default' │
|
17 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
18 |
+
│ dataset_path │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup/c4_part1_nontoxic_dedup.json' │
|
19 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
20 |
+
│ generated_dataset_config │ None │
|
21 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
22 |
+
│ export_path │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup/c4_part1_nontoxic_dedup.jsonl' │
|
23 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
24 |
+
│ export_shard_size │ 0 │
|
25 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
26 |
+
│ export_in_parallel │ False │
|
27 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
28 |
+
│ keep_stats_in_res_ds │ False │
|
29 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
30 |
+
│ keep_hashes_in_res_ds │ False │
|
31 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
32 |
+
│ np │ 10 │
|
33 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
34 |
+
│ text_keys │ 'text' │
|
35 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
36 |
+
│ image_key │ 'images' │
|
37 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
38 |
+
│ image_special_token │ '<__dj__image>' │
|
39 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
40 |
+
│ audio_key │ 'audios' │
|
41 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
42 |
+
│ audio_special_token │ '<__dj__audio>' │
|
43 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
44 |
+
│ video_key │ 'videos' │
|
45 |
+
├─���────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
46 |
+
│ video_special_token │ '<__dj__video>' │
|
47 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
48 |
+
│ eoc_special_token │ '<|__dj__eoc|>' │
|
49 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
50 |
+
│ suffixes │ [] │
|
51 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
52 |
+
│ turbo │ False │
|
53 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
54 |
+
│ use_cache │ True │
|
55 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
56 |
+
│ ds_cache_dir │ '/home/thviet/.cache/huggingface/datasets' │
|
57 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
58 |
+
│ cache_compress │ None │
|
59 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
60 |
+
│ use_checkpoint │ False │
|
61 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
62 |
+
│ temp_dir │ None │
|
63 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
64 |
+
│ open_tracer │ False │
|
65 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
66 |
+
│ op_list_to_trace │ [] │
|
67 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
68 |
+
│ trace_num │ 10 │
|
69 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
70 |
+
│ op_fusion │ False │
|
71 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
72 |
+
│ process │ [{'fix_unicode_mapper': {'accelerator': None, │
|
73 |
+
│ │ 'audio_key': 'audios', │
|
74 |
+
│ │ 'cpu_required': 1, │
|
75 |
+
│ │ 'image_key': 'images', │
|
76 |
+
│ │ 'mem_required': 0, │
|
77 |
+
│ │ 'normalization': None, │
|
78 |
+
│ │ 'num_proc': 10, │
|
79 |
+
│ │ 'text_key': 'text', │
|
80 |
+
│ │ 'turbo': False, │
|
81 |
+
│ │ 'video_key': 'videos'}}, │
|
82 |
+
│ │ {'sentence_split_mapper': {'accelerator': None, │
|
83 |
+
│ │ 'audio_key': 'audios', │
|
84 |
+
│ │ 'cpu_required': 1, │
|
85 |
+
│ │ 'image_key': 'images', │
|
86 |
+
│ │ 'lang': 'fr', │
|
87 |
+
│ │ 'mem_required': 0, │
|
88 |
+
│ │ 'num_proc': 10, │
|
89 |
+
│ │ 'text_key': 'text', │
|
90 |
+
│ │ 'turbo': False, │
|
91 |
+
│ │ 'video_key': 'videos'}}, │
|
92 |
+
│ │ {'language_id_score_filter': {'accelerator': None, │
|
93 |
+
│ │ 'audio_key': 'audios', │
|
94 |
+
│ │ 'cpu_required': 1, │
|
95 |
+
│ │ 'image_key': 'images', │
|
96 |
+
│ │ 'lang': 'vi', │
|
97 |
+
│ │ 'mem_required': 0, │
|
98 |
+
│ │ 'min_score': 0.8, │
|
99 |
+
│ │ 'num_proc': 10, │
|
100 |
+
│ │ 'stats_export_path': None, │
|
101 |
+
│ │ 'text_key': 'text', │
|
102 |
+
│ │ 'turbo': False, │
|
103 |
+
│ │ 'video_key': 'videos'}}] │
|
104 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
105 |
+
│ percentiles │ [] │
|
106 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
107 |
+
│ export_original_dataset │ False │
|
108 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
109 |
+
│ save_stats_in_one_file │ False │
|
110 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
111 |
+
│ ray_address │ 'auto' │
|
112 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
113 |
+
│ debug │ False │
|
114 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
115 |
+
│ work_dir │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup' │
|
116 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
117 |
+
│ timestamp │ '20241118082750' │
|
118 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
119 |
+
│ dataset_dir │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup' │
|
120 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
121 |
+
│ add_suffix │ False │
|
122 |
+
╘══════════════════════════╧══════════════════════════════════════════════════════════════════════════════════════╛
|
123 |
+
2024-11-18 08:27:54.117 | INFO | data_juicer.core.executor:__init__:45 - Using cache compression method: [None]
|
124 |
+
2024-11-18 08:27:54.117 | INFO | data_juicer.core.executor:__init__:50 - Setting up data formatter...
|
125 |
+
2024-11-18 08:27:54.118 | INFO | data_juicer.core.executor:__init__:73 - Preparing exporter...
|
126 |
+
2024-11-18 08:27:54.118 | INFO | data_juicer.core.executor:run:150 - Loading dataset from data formatter...
|
127 |
+
2024-11-18 08:27:54.947 | INFO | data_juicer.format.formatter:unify_format:185 - Unifying the input dataset formats...
|
128 |
+
2024-11-18 08:27:54.948 | INFO | data_juicer.format.formatter:unify_format:200 - There are 73362 sample(s) in the original dataset.
|
129 |
+
2024-11-18 08:27:54.998 | INFO | data_juicer.format.formatter:unify_format:214 - 73362 samples left after filtering empty text.
|
130 |
+
2024-11-18 08:27:54.999 | INFO | data_juicer.format.mixture_formatter:load_dataset:137 - sampled 73362 from 73362
|
131 |
+
2024-11-18 08:27:55.007 | INFO | data_juicer.format.mixture_formatter:load_dataset:143 - There are 73362 in final dataset
|
132 |
+
2024-11-18 08:27:55.008 | INFO | data_juicer.core.executor:run:156 - Preparing process operators...
|
133 |
+
2024-11-18 08:27:55.009 | INFO | data_juicer.utils.model_utils:prepare_nltk_model:183 - Loading nltk punkt split model...
|
134 |
+
2024-11-18 08:27:55.011 | INFO | data_juicer.utils.model_utils:check_model:74 - Model [/home/thviet/.cache/data_juicer/models/punkt.french.pickle] not found. Downloading...
|
135 |
+
/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/app/__init__.py:29: UserWarning: nltk.app package not loaded (please install Tkinter library).
|
136 |
+
warnings.warn("nltk.app package not loaded (please install Tkinter library).")
|
137 |
+
2024-11-18 08:27:57.384 | ERROR | __main__:<module>:19 - An error has been caught in function '<module>', process 'MainProcess' (1269397), thread 'MainThread' (140236351006528):
|
138 |
+
Traceback (most recent call last):
|
139 |
+
|
140 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 185, in prepare_nltk_model
|
141 |
+
nltk_model = load(check_model(model_name))
|
142 |
+
│ │ └ 'punkt.french.pickle'
|
143 |
+
│ └ <function check_model at 0x7f8a554323b0>
|
144 |
+
└ <function load at 0x7f8a13df5d80>
|
145 |
+
|
146 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/data.py", line 836, in load
|
147 |
+
opened_resource = _open(resource_url)
|
148 |
+
│ └ 'file:///home/thviet/.cache/data_juicer/models/punkt.french.pickle'
|
149 |
+
└ <function _open at 0x7f8a13df5f30>
|
150 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/data.py", line 965, in _open
|
151 |
+
return find(path_, [""]).open()
|
152 |
+
│ └ '/home/thviet/.cache/data_juicer/models/punkt.french.pickle'
|
153 |
+
└ <function find at 0x7f8a13df4d30>
|
154 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/data.py", line 579, in find
|
155 |
+
raise LookupError(resource_not_found)
|
156 |
+
└ "\n**********************************************************************\n Resource \x1b[93mhome\x1b[0m not found.\n Pleas...
|
157 |
+
|
158 |
+
LookupError:
|
159 |
+
**********************************************************************
|
160 |
+
Resource [93mhome[0m not found.
|
161 |
+
Please use the NLTK Downloader to obtain the resource:
|
162 |
+
|
163 |
+
[31m>>> import nltk
|
164 |
+
>>> nltk.download('home')
|
165 |
+
[0m
|
166 |
+
For more information see: https://www.nltk.org/data.html
|
167 |
+
|
168 |
+
Attempted to load [93m/home/thviet/.cache/data_juicer/models/punkt.french.pickle[0m
|
169 |
+
|
170 |
+
Searched in:
|
171 |
+
- ''
|
172 |
+
**********************************************************************
|
173 |
+
|
174 |
+
|
175 |
+
|
176 |
+
During handling of the above exception, another exception occurred:
|
177 |
+
|
178 |
+
|
179 |
+
Traceback (most recent call last):
|
180 |
+
|
181 |
+
> File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 19, in <module>
|
182 |
+
main()
|
183 |
+
└ <function main at 0x7f8a093c0310>
|
184 |
+
|
185 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 15, in main
|
186 |
+
executor.run()
|
187 |
+
│ └ <function Executor.run at 0x7f8a093c0160>
|
188 |
+
└ <data_juicer.core.executor.Executor object at 0x7f8a08b69750>
|
189 |
+
|
190 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/core/executor.py", line 157, in run
|
191 |
+
ops = load_ops(self.cfg.process, self.cfg.op_fusion)
|
192 |
+
│ │ │ │ │ │ └ False
|
193 |
+
│ │ │ │ │ └ Namespace(config=[Path_fr(/workspace/thviet/LLMs/Monolingual/process.yaml)], hpo_config=None, data_probe_algo='uniform', data...
|
194 |
+
│ │ │ │ └ <data_juicer.core.executor.Executor object at 0x7f8a08b69750>
|
195 |
+
│ │ │ └ [{'fix_unicode_mapper': {'normalization': None, 'text_key': 'text', 'image_key': 'images', 'audio_key': 'audios', 'video_key'...
|
196 |
+
│ │ └ Namespace(config=[Path_fr(/workspace/thviet/LLMs/Monolingual/process.yaml)], hpo_config=None, data_probe_algo='uniform', data...
|
197 |
+
│ └ <data_juicer.core.executor.Executor object at 0x7f8a08b69750>
|
198 |
+
└ <function load_ops at 0x7f8a1342fbe0>
|
199 |
+
|
200 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/load.py", line 28, in load_ops
|
201 |
+
ops.append(OPERATORS.modules[op_name](**args))
|
202 |
+
│ │ │ │ │ └ {'lang': 'fr', 'text_key': 'text', 'image_key': 'images', 'audio_key': 'audios', 'video_key': 'videos', 'accelerator': None, ...
|
203 |
+
│ │ │ │ └ 'sentence_split_mapper'
|
204 |
+
│ │ │ └ <property object at 0x7f8a55396f70>
|
205 |
+
│ │ └ <data_juicer.utils.registry.Registry object at 0x7f8a692465c0>
|
206 |
+
│ └ <method 'append' of 'list' objects>
|
207 |
+
└ [<data_juicer.ops.mapper.fix_unicode_mapper.FixUnicodeMapper object at 0x7f8a08c97d30>]
|
208 |
+
|
209 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/mapper/sentence_split_mapper.py", line 27, in __init__
|
210 |
+
self.model_key = prepare_model(model_type='nltk', lang=lang)
|
211 |
+
│ │ └ 'fr'
|
212 |
+
│ └ <function prepare_model at 0x7f8a55432b90>
|
213 |
+
└ <data_juicer.ops.mapper.sentence_split_mapper.SentenceSplitMapper object at 0x7f8a08f58dc0>
|
214 |
+
|
215 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 625, in prepare_model
|
216 |
+
model_key()
|
217 |
+
└ functools.partial(<function prepare_nltk_model at 0x7f8a55432680>, lang='fr')
|
218 |
+
|
219 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 187, in prepare_nltk_model
|
220 |
+
nltk_model = load(check_model(model_name, force=True))
|
221 |
+
│ │ └ 'punkt.french.pickle'
|
222 |
+
│ └ <function check_model at 0x7f8a554323b0>
|
223 |
+
└ <function load at 0x7f8a13df5d80>
|
224 |
+
|
225 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/data.py", line 841, in load
|
226 |
+
resource_val = restricted_pickle_load(opened_resource.read())
|
227 |
+
│ │ └ <method 'read' of '_io.BufferedReader' objects>
|
228 |
+
│ └ <_io.BufferedReader name='/home/thviet/.cache/data_juicer/models/punkt.french.pickle'>
|
229 |
+
└ <function restricted_pickle_load at 0x7f8a13df5ab0>
|
230 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/data.py", line 664, in restricted_pickle_load
|
231 |
+
return RestrictedUnpickler(BytesIO(string)).load()
|
232 |
+
│ │ └ b"ccopy_reg\n_reconstructor\np0\n(cnltk.tokenize.punkt\nPunktSentenceTokenizer\np1\nc__builtin__\nobject\np2\nNtp3\nRp4\n(dp5...
|
233 |
+
│ └ <class '_io.BytesIO'>
|
234 |
+
└ <class 'nltk.app.wordnet_app.RestrictedUnpickler'>
|
235 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/app/wordnet_app.py", line 664, in find_class
|
236 |
+
raise pickle.UnpicklingError(f"global '{module}.{name}' is forbidden")
|
237 |
+
│ └ <class '_pickle.UnpicklingError'>
|
238 |
+
└ <module 'pickle' from '/usr/lib/python3.10/pickle.py'>
|
239 |
+
|
240 |
+
_pickle.UnpicklingError: global 'copy_reg._reconstructor' is forbidden
|
241 |
+
Traceback (most recent call last):
|
242 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 185, in prepare_nltk_model
|
243 |
+
nltk_model = load(check_model(model_name))
|
244 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/data.py", line 836, in load
|
245 |
+
opened_resource = _open(resource_url)
|
246 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/data.py", line 965, in _open
|
247 |
+
return find(path_, [""]).open()
|
248 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/data.py", line 579, in find
|
249 |
+
raise LookupError(resource_not_found)
|
250 |
+
LookupError:
|
251 |
+
**********************************************************************
|
252 |
+
Resource [93mhome[0m not found.
|
253 |
+
Please use the NLTK Downloader to obtain the resource:
|
254 |
+
|
255 |
+
[31m>>> import nltk
|
256 |
+
>>> nltk.download('home')
|
257 |
+
[0m
|
258 |
+
For more information see: https://www.nltk.org/data.html
|
259 |
+
|
260 |
+
Attempted to load [93m/home/thviet/.cache/data_juicer/models/punkt.french.pickle[0m
|
261 |
+
|
262 |
+
Searched in:
|
263 |
+
- ''
|
264 |
+
**********************************************************************
|
265 |
+
|
266 |
+
|
267 |
+
During handling of the above exception, another exception occurred:
|
268 |
+
|
269 |
+
Traceback (most recent call last):
|
270 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 19, in <module>
|
271 |
+
main()
|
272 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/loguru/_logger.py", line 1277, in catch_wrapper
|
273 |
+
return function(*args, **kwargs)
|
274 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/tools/process_data.py", line 15, in main
|
275 |
+
executor.run()
|
276 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/core/executor.py", line 157, in run
|
277 |
+
ops = load_ops(self.cfg.process, self.cfg.op_fusion)
|
278 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/load.py", line 28, in load_ops
|
279 |
+
ops.append(OPERATORS.modules[op_name](**args))
|
280 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/ops/mapper/sentence_split_mapper.py", line 27, in __init__
|
281 |
+
self.model_key = prepare_model(model_type='nltk', lang=lang)
|
282 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 625, in prepare_model
|
283 |
+
model_key()
|
284 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/Filtering/data-juicer/data_juicer/utils/model_utils.py", line 187, in prepare_nltk_model
|
285 |
+
nltk_model = load(check_model(model_name, force=True))
|
286 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/data.py", line 841, in load
|
287 |
+
resource_val = restricted_pickle_load(opened_resource.read())
|
288 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/data.py", line 664, in restricted_pickle_load
|
289 |
+
return RestrictedUnpickler(BytesIO(string)).load()
|
290 |
+
File "/workspace/thviet/LLMs/Monolingual/Pre-training/.venv/lib/python3.10/site-packages/nltk/app/wordnet_app.py", line 664, in find_class
|
291 |
+
raise pickle.UnpicklingError(f"global '{module}.{name}' is forbidden")
|
292 |
+
_pickle.UnpicklingError: global 'copy_reg._reconstructor' is forbidden
|
dedup_3/log/export_c4_part1_nontoxic_dedup.jsonl_time_20241118082837.txt
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
2024-11-18 08:28:40.701 | INFO | data_juicer.config.config:config_backup:635 - Back up the input config file [/workspace/thviet/LLMs/Monolingual/process.yaml] into the work_dir [/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup]
|
2 |
+
2024-11-18 08:28:40.722 | INFO | data_juicer.config.config:display_config:657 - Configuration table:
|
3 |
+
╒══════════════════════════╤══════════════════════════════════════════════════════════════════════════════════════╕
|
4 |
+
│ key │ values │
|
5 |
+
╞══════════════════════════╪══════════════════════════════════════════════════════════════════════════════════════╡
|
6 |
+
│ config │ [Path_fr(/workspace/thviet/LLMs/Monolingual/process.yaml)] │
|
7 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
8 |
+
│ hpo_config │ None │
|
9 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
10 |
+
│ data_probe_algo │ 'uniform' │
|
11 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
12 |
+
│ data_probe_ratio │ 1.0 │
|
13 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
14 |
+
│ project_name │ 'test-process' │
|
15 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
16 |
+
│ executor_type │ 'default' │
|
17 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
18 |
+
│ dataset_path │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup/c4_part1_nontoxic_dedup.json' │
|
19 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
20 |
+
│ generated_dataset_config │ None │
|
21 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
22 |
+
│ export_path │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup/c4_part1_nontoxic_dedup.jsonl' │
|
23 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
24 |
+
│ export_shard_size │ 0 │
|
25 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
26 |
+
│ export_in_parallel │ False │
|
27 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
28 |
+
│ keep_stats_in_res_ds │ False │
|
29 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
30 |
+
│ keep_hashes_in_res_ds │ False │
|
31 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
32 |
+
│ np │ 10 │
|
33 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
34 |
+
│ text_keys │ 'text' │
|
35 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
36 |
+
│ image_key │ 'images' │
|
37 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
38 |
+
│ image_special_token │ '<__dj__image>' │
|
39 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
40 |
+
│ audio_key │ 'audios' │
|
41 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
42 |
+
│ audio_special_token │ '<__dj__audio>' │
|
43 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
44 |
+
│ video_key │ 'videos' │
|
45 |
+
├─���────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
46 |
+
│ video_special_token │ '<__dj__video>' │
|
47 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
48 |
+
│ eoc_special_token │ '<|__dj__eoc|>' │
|
49 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
50 |
+
│ suffixes │ [] │
|
51 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
52 |
+
│ turbo │ False │
|
53 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
54 |
+
│ use_cache │ True │
|
55 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
56 |
+
│ ds_cache_dir │ '/home/thviet/.cache/huggingface/datasets' │
|
57 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
58 |
+
│ cache_compress │ None │
|
59 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
60 |
+
│ use_checkpoint │ False │
|
61 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
62 |
+
│ temp_dir │ None │
|
63 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
64 |
+
│ open_tracer │ False │
|
65 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
66 |
+
│ op_list_to_trace │ [] │
|
67 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
68 |
+
│ trace_num │ 10 │
|
69 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
70 |
+
│ op_fusion │ False │
|
71 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
72 |
+
│ process │ [{'fix_unicode_mapper': {'accelerator': None, │
|
73 |
+
│ │ 'audio_key': 'audios', │
|
74 |
+
│ │ 'cpu_required': 1, │
|
75 |
+
│ │ 'image_key': 'images', │
|
76 |
+
│ │ 'mem_required': 0, │
|
77 |
+
│ │ 'normalization': None, │
|
78 |
+
│ │ 'num_proc': 10, │
|
79 |
+
│ │ 'text_key': 'text', │
|
80 |
+
│ │ 'turbo': False, │
|
81 |
+
│ │ 'video_key': 'videos'}}, │
|
82 |
+
│ │ {'language_id_score_filter': {'accelerator': None, │
|
83 |
+
│ │ 'audio_key': 'audios', │
|
84 |
+
│ │ 'cpu_required': 1, │
|
85 |
+
│ │ 'image_key': 'images', │
|
86 |
+
│ │ 'lang': 'vi', │
|
87 |
+
│ │ 'mem_required': 0, │
|
88 |
+
│ │ 'min_score': 0.8, │
|
89 |
+
│ │ 'num_proc': 10, │
|
90 |
+
│ │ 'stats_export_path': None, │
|
91 |
+
│ │ 'text_key': 'text', │
|
92 |
+
│ │ 'turbo': False, │
|
93 |
+
│ │ 'video_key': 'videos'}}] │
|
94 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
95 |
+
│ percentiles │ [] │
|
96 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
97 |
+
│ export_original_dataset │ False │
|
98 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
99 |
+
│ save_stats_in_one_file │ False │
|
100 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
101 |
+
│ ray_address │ 'auto' │
|
102 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
103 |
+
│ debug │ False │
|
104 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
105 |
+
│ work_dir │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup' │
|
106 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
107 |
+
│ timestamp │ '20241118082837' │
|
108 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
109 |
+
│ dataset_dir │ '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup' │
|
110 |
+
├──────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤
|
111 |
+
│ add_suffix │ False │
|
112 |
+
╘══════════════════════════╧══════════════════════════════════════════════════════════════════════════════════════╛
|
113 |
+
2024-11-18 08:28:40.724 | INFO | data_juicer.core.executor:__init__:45 - Using cache compression method: [None]
|
114 |
+
2024-11-18 08:28:40.724 | INFO | data_juicer.core.executor:__init__:50 - Setting up data formatter...
|
115 |
+
2024-11-18 08:28:40.725 | INFO | data_juicer.core.executor:__init__:73 - Preparing exporter...
|
116 |
+
2024-11-18 08:28:40.725 | INFO | data_juicer.core.executor:run:150 - Loading dataset from data formatter...
|
117 |
+
2024-11-18 08:28:41.551 | INFO | data_juicer.format.formatter:unify_format:185 - Unifying the input dataset formats...
|
118 |
+
2024-11-18 08:28:41.552 | INFO | data_juicer.format.formatter:unify_format:200 - There are 73362 sample(s) in the original dataset.
|
119 |
+
2024-11-18 08:28:41.588 | INFO | data_juicer.format.formatter:unify_format:214 - 73362 samples left after filtering empty text.
|
120 |
+
2024-11-18 08:28:41.589 | INFO | data_juicer.format.mixture_formatter:load_dataset:137 - sampled 73362 from 73362
|
121 |
+
2024-11-18 08:28:41.593 | INFO | data_juicer.format.mixture_formatter:load_dataset:143 - There are 73362 in final dataset
|
122 |
+
2024-11-18 08:28:41.594 | INFO | data_juicer.core.executor:run:156 - Preparing process operators...
|
123 |
+
2024-11-18 08:28:41.594 | ERROR | data_juicer.ops.load:load_ops:26 - This OP [language_id_score_filter] is unavailable due to importing third-party requirements of this OP failure: ['fasttext-wheel']. You can either run `pip install -v -e .[sci]` to install all requirements for all OPs, or run `pip install fasttext-wheel` with library version specified by `environments/science_requires.txt` to install libraries required by this OP. Data processing will skip this OP later.
|
dedup_3/log/export_c4_part1_nontoxic_dedup.jsonl_time_20241118082927.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dedup_3/process.yaml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Process config example for dataset
|
2 |
+
# global parameters
|
3 |
+
project_name: 'test-process'
|
4 |
+
dataset_path: '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup/c4_part1_nontoxic_dedup.json'
|
5 |
+
np: 10 # number of subprocess to process your dataset
|
6 |
+
|
7 |
+
text_keys: 'text'
|
8 |
+
|
9 |
+
export_path: '/workspace/thviet/LLMs/Monolingual/toxic/toxic_dedup/c4_part1_nontoxic_dedup.jsonl'
|
10 |
+
#use_cache: true
|
11 |
+
#cache_compress: 'gzip'
|
12 |
+
#suffixes: ['.json']
|
13 |
+
#use_checkpoint: true
|
14 |
+
#executor_type: default # type of executor, support "default" or "ray" for now.
|
15 |
+
# process schedule
|
16 |
+
# a list of several process operators with their arguments
|
17 |
+
process:
|
18 |
+
- fix_unicode_mapper:
|
19 |
+
- sentence_split_mapper: # split text to multiple sentences and join them with '\n'
|
20 |
+
lang: vi
|
21 |
+
- language_id_score_filter: # filter text in specific language with language scores larger than a specific max value
|
22 |
+
lang: vi # keep text in what language
|
23 |
+
min_score: 0.8
|