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

Fix for OOM problems on GPU at large datasets. #525

Merged
merged 5 commits into from
Oct 27, 2020

Conversation

PhilipMay
Copy link
Contributor

@PhilipMay PhilipMay commented Oct 26, 2020

see #522 and #487

TODO

  • do testing
  • get review & feedback

@PhilipMay
Copy link
Contributor Author

Internal tests with large data sets show that the code fixed the oom problem.
I made the following changes:

  1. I detatch the whole embeddings once instead of each single emb - this should be more efficient
  2. If convert_to_numpy I move the whole embeddings to cpu.

IMO this PR is ready for review and merging.

@nreimers
Copy link
Member

Thanks for the work. I will have a look today afternoon and merge it

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.

2 participants