mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
update the train_batch_size in case HPO change batch_size_per_device (#18918)
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com> Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
This commit is contained in:
parent
4f299b2446
commit
d842f2d5b9
@ -1488,6 +1488,7 @@ class Trainer:
|
||||
raise TypeError(f"train() received got unexpected keyword arguments: {', '.join(list(kwargs.keys()))}.")
|
||||
# This might change the seed so needs to run first.
|
||||
self._hp_search_setup(trial)
|
||||
self._train_batch_size = self.args.train_batch_size
|
||||
|
||||
# Model re-init
|
||||
model_reloaded = False
|
||||
|
Loading…
Reference in New Issue
Block a user