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

RuntimeError: CUDA error: out of memory #13

Open
adityaguptai opened this issue Oct 22, 2018 · 1 comment
Open

RuntimeError: CUDA error: out of memory #13

adityaguptai opened this issue Oct 22, 2018 · 1 comment

Comments

@adityaguptai
Copy link

RuntimeError: CUDA error: out of memory
Running out of memory have 2gb graphics card 940mx with cuda 9.2 is it not sufficient to train the model.
I tried decreasing the batch size to even 1 but then too its not working.
Please help.

@atulkum
Copy link
Owner

atulkum commented Oct 22, 2018

2GB is too low.
you can do 2 things:

  1. use pre-trained embedding, extract embedding vector on cpu and don't load embedding into gpu.
  2. use less number of encoding steps (try with 100) but expect degrade in results. https://github.com/atulkum/pointer_summarizer/blob/master/data_util/config.py#L16

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

2 participants