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

87 feature request automatic reduction of batch size #109

Closed

Conversation

AJDERS
Copy link
Collaborator

@AJDERS AJDERS commented Feb 28, 2023

This PR introduces:

  • In case of OOM or RuntimeError during model inference the batch_size is halved to the next 2^n.
  • A minor refactor of _evaluate_single_iteration as flake was complaining about to high complexity.

@AJDERS AJDERS linked an issue Feb 28, 2023 that may be closed by this pull request
src/alexandra_ai_eval/task.py Outdated Show resolved Hide resolved
@saattrupdan
Copy link
Collaborator

Closing due to inactivity. Feel free to re-open.

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

Successfully merging this pull request may close these issues.

[FEATURE-REQUEST] Automatic reduction of batch size
2 participants