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

Training with a limited memory #21

Open
reyhanehHashempour opened this issue Nov 4, 2019 · 2 comments
Open

Training with a limited memory #21

reyhanehHashempour opened this issue Nov 4, 2019 · 2 comments

Comments

@reyhanehHashempour
Copy link

reyhanehHashempour commented Nov 4, 2019

Hi Oren,
I am training my 3GB corpus. I am doing it on the clusters that have 27 GB memory limitation. I encounter :
cupy.cuda.memory.OutOfMemoryError.

Is it possible in some way to limit the memory that code uses? Or split the corpus file and do the training in steps? Or changing some arguments to use less memory?

Thanks.

@reyhanehHashempour reyhanehHashempour changed the title Training with limited memory Training with a limited memory Nov 4, 2019
@orenmelamud
Copy link

context2vec should run fine with a 12 GB GPU (I trained it on a K80). When you say 27 GB, you may mean the total memory of multiple GPUs (?), so maybe that's the problem. In any case, splitting the corpus file will not help. Probably the best thing to do is to lower the --batchsize below the default value of 100.

@reyhanehHashempour
Copy link
Author

Thank you! Will try again.

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