data_juicer.utils.process_utils module¶ data_juicer.utils.process_utils.setup_mp(method=None)[source]¶ data_juicer.utils.process_utils.get_min_cuda_memory()[source]¶ data_juicer.utils.process_utils.calculate_np(name, mem_required, cpu_required, num_proc=None, use_cuda=False)[source]¶ Calculate the optimum number of processes for the given OP