Spawning DDP processes with multiprocessing randomly reads files from disk

you can refer to a similar issue here DDP is affected by code modification