Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
maclandrol committed Jul 29, 2024
1 parent 3a2e40d commit 04b96b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion safe/trainer/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ def compute_metrics(eval_preds):

if model_args.include_descriptors:
training_args.label_names = ["labels", "mc_labels"]
else:

if training_args.label_names is None:
training_args.label_names = ["labels"]
# update dispatch_batches in accelerator
training_args.accelerator_config.dispatch_batches = data_args.streaming is not True
Expand Down

0 comments on commit 04b96b5

Please sign in to comment.