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

CUDA Memory error in precompute cache #116

Open
mcodoni opened this issue Jul 23, 2020 · 1 comment
Open

CUDA Memory error in precompute cache #116

mcodoni opened this issue Jul 23, 2020 · 1 comment

Comments

@mcodoni
Copy link

mcodoni commented Jul 23, 2020

Hi,
I'm trying to precompute the cache for 2019 pretrained model with a google collab GPU (12 GB) and I always get a CUDA alllocating memory error
How much memory we need to run the script?
regards
Maurizio

@norairn
Copy link

norairn commented Dec 9, 2020

I've spent some time playing around with the script (06_precompute_cache.py) options to work around the CUDA memory allocation error. I ended up with -g 0 -c 1000000 -b 100, which means limit the search to 1 million top rows in batches of 100.

I had to sign up for Google Colab Pro and use GPU+High RAM runtime type, otherwise it was too unstable.

Anyway, here is the link to the zipped cache file: cache.zip. Copy it to the 2019 vectors folder and it will be picked up automatically.

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