prompt2model icon indicating copy to clipboard operation
prompt2model copied to clipboard

Smarter selection of Batch size during hyper-parameter selection and training

Open Anindyadeep opened this issue 1 year ago • 2 comments

Prompt2Model currently has a static way of defining batch size. The user has to tweak it into the code to either train models faster. Also referencing this issue #315, the batch size is also a hyper-parameter that is important. The way in general this hyperparameter search works is, that we need to provide a list of common batch sizes and during optimization, the correct batch size combination is been selected.

However, for certain device and model combinations, selecting batch size >= 4 might create OOM issues. So, before selection batch size for training or hyperparameter optimization, we need to check for the upper bound automatically such that OOM issues are also not raised and the full resource utilization is also there.

Anindyadeep avatar Oct 10 '23 04:10 Anindyadeep