Muennighoff
commited on
Commit
•
b64272f
1
Parent(s):
cda102e
Update multi_threaded_processed.py
Browse files
multi_threaded_processed.py
CHANGED
@@ -180,10 +180,10 @@ if __name__ == "__main__":
|
|
180 |
sub_ds = ds.filter(lambda x: x['stderr'].startswith("fatal"))
|
181 |
skipped_ds = ds.filter(lambda x: not(x['stderr'].startswith("fatal")))
|
182 |
|
183 |
-
datasets.concatenate_datasets(
|
184 |
skipped_ds,
|
185 |
sub_ds.map(get_diff_multi_threaded_processed, num_proc=NUM_PROC, batch_size=NUM_THREADS, batched=True),
|
186 |
-
).to_json(path.replace(".", "_new."), num_proc=NUM_PROC)
|
187 |
exit()
|
188 |
"""
|
189 |
### END LOAD EXISTING ###
|
|
|
180 |
sub_ds = ds.filter(lambda x: x['stderr'].startswith("fatal"))
|
181 |
skipped_ds = ds.filter(lambda x: not(x['stderr'].startswith("fatal")))
|
182 |
|
183 |
+
datasets.concatenate_datasets((
|
184 |
skipped_ds,
|
185 |
sub_ds.map(get_diff_multi_threaded_processed, num_proc=NUM_PROC, batch_size=NUM_THREADS, batched=True),
|
186 |
+
)).to_json(path.replace(".", "_new."), num_proc=NUM_PROC)
|
187 |
exit()
|
188 |
"""
|
189 |
### END LOAD EXISTING ###
|