-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
load_facebook_model memory footprint #2724
Comments
I guess a duplicate of: #2502 |
There's some bonkers nonsense in the current FT implementation that uses more memory than necessary. Your load might be most affected by the allocation of a I'm trying to fix this, among other things, in a big clean-up of related code, but that work isn't yet stable and may not appear in a release anytime soon. If you just need vector-lookup, and not to continue training, using the You should still expect some expansion from the on-disk size, both on load, and on the first operation (such as |
Closing as dup of #2502. (But also note: essentially fixed in 4.0.0 work.) |
Problem description
Hey everyone,
I encountered an issue when loading a pre-trained facebook FastText models. Loading a 7,24 GB pretrained model blows up to more than 20 GB in RAM on my machine when loading with Gensim. So my computer keeps swapping memory like crazy and never loads the model. It would be awesome if we could lower the memory footprint in Gensim's FastText loading mechanism. Is this a known problem and is anyone aware how to fix it?
Steps/code/corpus to reproduce
load_facebook_model('cc.en.300.bin')
Versions
Please provide the output of:
The text was updated successfully, but these errors were encountered: