diff --git a/examples/run_squad.py b/examples/run_squad.py index bd9005cc29f..eb351b340c6 100644 --- a/examples/run_squad.py +++ b/examples/run_squad.py @@ -470,7 +470,6 @@ def main(): tokenizer = tokenizer_class.from_pretrained(args.tokenizer_name if args.tokenizer_name else args.model_name_or_path, do_lower_case=args.do_lower_case) model = model_class.from_pretrained(args.model_name_or_path, from_tf=bool('.ckpt' in args.model_name_or_path), config=config) - if args.local_rank == 0: torch.distributed.barrier() # Make sure only the first process in distributed training will download model & vocab