Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Anindyadeep opened this issue Oct 10, 2023 · 2 comments
Assignees

Comments

@Anindyadeep
Copy link
Contributor

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.

@zhaochenyang20
Copy link
Collaborator

Is it related to this PR: #315

@Anindyadeep
Copy link
Contributor Author

Yes, as we are more into automated hyper-parameter selection, so the batch size should also need to be automated. However, I am keeping that to Todo and have kept a separate issue to solve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants