Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit c47bfb8

Browse files
authored
Update run_qa.py (#195)
1 parent 2277ce9 commit c47bfb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integrations/transformers/run_qa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ def prepare_validation_features(examples):
718718
optim = load_optimizer(model, TrainingArguments)
719719
steps_per_epoch = math.ceil(len(datasets["train"]) / (training_args.per_device_train_batch_size*training_args._n_gpu))
720720
manager = ScheduledModifierManager.from_yaml(data_args.nm_prune_config)
721-
training_args.num_train_epochs = float(manager.modifiers[0].end_epoch)
721+
training_args.num_train_epochs = float(manager.max_epochs)
722722
optim = ScheduledOptimizer(optim, model, manager, steps_per_epoch=steps_per_epoch, loggers=None)
723723
####################################################################################
724724
# End SparseML Integration

0 commit comments

Comments
 (0)