File size: 308 Bytes
a93e458
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from megatron.arguments import parse_args
from megatron.global_vars import _set_tensorboard_writer,get_tensorboard_writer
if __name__ == "__main__":
    args=parse_args()
    args.wandb_logger="True"
    args.wandb_project="test-logger"
    _set_tensorboard_writer(args)

    writer=get_tensorboard_writer()