@SimonW, thanks for the quick reply, i just read the documentation and now creating an virtualenv for pytorch3.1, was using pytorch2. Seems i don’t need to use woker_init_fn option, each worker already generate different sequences due to base_id+worker_id used to seed each worker internally.