We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f57a0 commit 39b79c0Copy full SHA for 39b79c0
python/paddle/distributed/auto_parallel/api.py
@@ -195,6 +195,8 @@ def lazy_init_hook(param, origin_hook):
195
196
# lazy init hook with randomness controlling
197
def _init_func(var, block):
198
+ if dist.get_rank() not in param.process_mesh.process_ids:
199
+ return
200
# get the unique rng name
201
rng_name = determinate_rng(
202
dist.get_rank(),
0 commit comments