Skip to content

Commit 3e764ad

Browse files
committed
Handle missing no-shared-fs arg in plugin utils
1 parent 24176b7 commit 3e764ad

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

megatron/plugin/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ def is_built_on_zero_rank():
3737
else:
3838
return False
3939

40+
no_shared_fs = getattr(args, "no_shared_fs", False)
41+
4042
is_built = False
41-
if not args.no_shared_fs \
43+
if not no_shared_fs \
4244
and torch.distributed.get_rank() == 0:
4345
is_built = True
44-
elif args.no_shared_fs \
46+
elif no_shared_fs \
4547
and int(os.environ["LOCAL_RANK"]) == 0:
4648
is_built = True
4749
else:

0 commit comments

Comments
 (0)