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

Embed longest sentences first to tune batch size #67

Merged
merged 1 commit into from
Jun 30, 2020

Commits on Jun 30, 2020

  1. Embed longest sentences first to tune batch size

    Just a suggestion, but it might help to process the longest texts first, in order to catch OOMs at the beginning of BERT-scoring, instead of at the end. This would help to quickly tune batch size to the largest possible value given your current hardware.
    
    The code is otherwise pretty optimized!
    ethanjperez authored Jun 30, 2020
    Configuration menu
    Copy the full SHA
    a085a0e View commit details
    Browse the repository at this point in the history