Commit ·
f0abe0a
1
Parent(s): 0b2200c
Update multi_threaded_processed.py
Browse files163 unmodified lines164165166167167168169170163 unmodified lines ### END FILTERING ### def run_multi_processing_threading(): ds.map(get_diff_multi_threaded_processed, num_proc=NUM_PROC, batch_size=NUM_THREADS, batched=True).to_json(f"diffs_{select_start}_{select_end}.jsonl", num_proc=NUM_PROC)) ds.map(get_diff_multi_threaded_processed, num_proc=NUM_PROC, batch_size=NUM_THREADS, batched=True).to_json(f"diffs_{select_start}_{select_end}.jsonl", num_proc=NUM_PROC)
#NUM_TRIALS = 1 #print(f"Timing multithreading + multiprocessing using {NUM_THREADS} threads and {NUM_PROC} processes")multi_threaded_processed.py+1-1