acul3 commited on
Commit
264aec9
1 Parent(s): 8018f38

remove args

Browse files
Files changed (1) hide show
  1. run_mlm_flax_stream.py +2 -2
run_mlm_flax_stream.py CHANGED
@@ -387,9 +387,9 @@ if __name__ == "__main__":
387
  if len(sys.argv) == 2 and sys.argv[1].endswith(".json"):
388
  # If we pass only one argument to the script and it's the path to a json file,
389
  # let's parse it to get our arguments.
390
- model_args, data_args, training_args, sampling_args = parser.parse_json_file(json_file=os.path.abspath(sys.argv[1]))
391
  else:
392
- model_args, data_args, training_args, sampling_args = parser.parse_args_into_dataclasses()
393
 
394
  if (
395
  os.path.exists(training_args.output_dir)
 
387
  if len(sys.argv) == 2 and sys.argv[1].endswith(".json"):
388
  # If we pass only one argument to the script and it's the path to a json file,
389
  # let's parse it to get our arguments.
390
+ model_args, data_args, training_args = parser.parse_json_file(json_file=os.path.abspath(sys.argv[1]))
391
  else:
392
+ model_args, data_args, training_args = parser.parse_args_into_dataclasses()
393
 
394
  if (
395
  os.path.exists(training_args.output_dir)