Commit ·
0b2200c
1
Parent(s): 42f022d
Update multi_threaded_processed.py
Browse files163 unmodified lines164165166167168169170163 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_TRIALS = 1#print(f"Timing multithreading + multiprocessing using {NUM_THREADS} threads and {NUM_PROC} processes")163 unmodified lines164165166167168169170163 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))#NUM_TRIALS = 1#print(f"Timing multithreading + multiprocessing using {NUM_THREADS} threads and {NUM_PROC} processes")
multi_threaded_processed.py+1-1