Skip to content

Commit

Permalink
fix executable batch size issue (huggingface#24067)
Browse files Browse the repository at this point in the history
* fix executable batch size issue

* fix

* undo
  • Loading branch information
pacman100 authored and novice03 committed Jun 23, 2023
1 parent fd49683 commit 4b9ec1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,7 @@ def train(
def _inner_training_loop(
self, batch_size=None, args=None, resume_from_checkpoint=None, trial=None, ignore_keys_for_eval=None
):
self.accelerator.free_memory()
self._train_batch_size = batch_size
logger.debug(f"Currently training with a batch size of: {self._train_batch_size}")
# Data loader and number of training steps
Expand Down

0 comments on commit 4b9ec1b

Please sign in to comment.