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

EmbeddingSimilarityTransformer using too much GPU memory #6

Open
pseudotensor opened this issue Jun 24, 2019 · 1 comment
Open

EmbeddingSimilarityTransformer using too much GPU memory #6

pseudotensor opened this issue Jun 24, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pseudotensor
Copy link
Contributor

Can lead to:

self.doc_embedding = DocumentPoolEmbeddings([self.embedding])
  File "/home/jon/h2oai/tmp/contrib5/env/lib/python3.6/site-packages/flair/embeddings.py", line 1532, in __init__
    self.to(flair.device)
  File "/home/jon/h2oai/tmp/contrib5/env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 386, in to
    return self._apply(convert)
  File "/home/jon/h2oai/tmp/contrib5/env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 193, in _apply
    module._apply(fn)
  File "/home/jon/h2oai/tmp/contrib5/env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 193, in _apply
    module._apply(fn)
  File "/home/jon/h2oai/tmp/contrib5/env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 193, in _apply
    module._apply(fn)
  [Previous line repeated 1 more times]
  File "/home/jon/h2oai/tmp/contrib5/env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 199, in _apply
    param.data = fn(param.data)
  File "/home/jon/h2oai/tmp/contrib5/env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 384, in convert
    return t.to(device, dtype if t.is_floating_point() else None, non_blocking)
RuntimeError: CUDA out of memory. Tried to allocate 90.00 MiB (GPU 0; 7.76 GiB total capacity; 837.44 MiB already allocated; 65.50 MiB free; 84.56 MiB cached)

@pseudotensor pseudotensor added the bug Something isn't working label Jun 24, 2019
@pseudotensor pseudotensor self-assigned this Jun 24, 2019
@pseudotensor
Copy link
Contributor Author

pytorch/pytorch#18626

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant