Hello,
I recently had 3 gensim models (1 fasttext model and 2 word2vec models) saved using Word2Vec.save() and FastText.save() and I was able to load back all 3 models normally. But recently I attempted to upgrade a couple of packages like numpy and now I get the following error when trying to load back the models:
@sauravm8 The only solution was to roll back the versions of numpy and gensim to the same versions they were for training. Mine was numpy==1.24 and gensim==4.3.2
Problem description
Hello, I recently had 3 gensim models (1 fasttext model and 2 word2vec models) saved using
Word2Vec.save()
andFastText.save()
and I was able to load back all 3 models normally. But recently I attempted to upgrade a couple of packages like numpy and now I get the following error when trying to load back the models:I'm pretty sure that this is a version mismatch problem but I cannot find a way to find out which version I was using when saving those models :(
Reproduce
Reproducing the bug is only possible if you load the models. They reside on the HuggingFace Hub and you can load them using my library:
Versions
Linux-5.15.0-79-generic-x86_64-with-glibc2.10 Python 3.8.5 (default, Sep 4 2020, 07:30:14) [GCC 7.3.0] Bits 64 NumPy 1.23.0 SciPy 1.9.1 gensim 4.2.0 FAST_VERSION 0