Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Oct 16, 2024
1 parent d94713e commit 51f1669
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pdelfin/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
RunName,
get_local_dir,
log_trainable_parameters,
packing_collator,
setup_environment,
make_dataset,
TruncatingCollator
Expand Down Expand Up @@ -169,7 +168,7 @@ def run_train(config: TrainConfig):
label_names=["labels"], # fix from https://github.com/huggingface/transformers/issues/22885
max_grad_norm=config.hparams.clip_grad_norm,
remove_unused_columns=False,
#eval_on_start=True,
eval_on_start=True,
metric_for_best_model=config.valid_data.metric_for_best_model,
)

Expand Down

0 comments on commit 51f1669

Please sign in to comment.