1 parent 8e9d973 commit 543543aCopy full SHA for 543543a
1 file changed
megatron/global_vars.py
@@ -165,15 +165,13 @@ def _set_wandb_writer(args):
165
global _GLOBAL_WANDB_WRITER
166
_ensure_var_is_not_initialized(_GLOBAL_WANDB_WRITER,
167
'wandb writer')
168
- getattr(args, 'wandb_project', '')
169
- getattr(args, 'wandb_exp_name', '')
170
171
if args.rank == (args.world_size - 1):
172
- if args.wandb_project == '' or \
173
- args.wandb_exp_name == '':
+ if getattr(args, 'wandb_project', '') == '' and \
+ getattr(args, 'wandb_exp_name', '') == '':
174
print('WARNING: WANDB writing requested but no legit wandb '
175
'project or experiment name provided, '
176
- 'therefore WANDB logs will be written '
+ 'therefore no WANDB logs will be written '
177
'according to random generated project or experiment name.', flush=True)
178
return
179
0 commit comments