diff --git a/data_selection/utils.py b/data_selection/utils.py index 0b797d8f..6b99794a 100644 --- a/data_selection/utils.py +++ b/data_selection/utils.py @@ -12,7 +12,7 @@ try: from transformers import mpu -except: +except Exception: mpu = None WANDB_PROJ_NAME = "data_selection" @@ -115,7 +115,7 @@ def initialize(args, do_distributed=True): set_random_seed(args.seed, args.model_parallel) # init save folder - if args.save != None: + if args.save is not None: os.makedirs(args.save, exist_ok=True)