Unverified Commit 1ef152eb authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Default to accuracy metric (#11405)

parent e3ff165a
......@@ -367,6 +367,8 @@ def main():
# Get the metric function
if args.task_name is not None:
metric = load_metric("glue", args.task_name)
else:
metric = load_metric("accuracy")
# Train!
total_batch_size = args.per_device_train_batch_size * accelerator.num_processes * args.gradient_accumulation_steps
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment