Closed mhham closed 6 years ago
Hm interesting - a few questions: What OS are you on and which version of Flair are you using?
Also, could you try a setup with 'glove' embeddings instead of fasttext to see if the error still occurs?
With glove embeddings, the error does not occur.
I am on mac OS 10.14 + python 3.7.0 + flair 0.3.1
Hm, we have seen this kind of problems with macos in some issues here...
Does this error still occur when you try to use a recent pytorch version?
Do you mean the nightly version ? I am currently using torch 0.4.1
We believe this has something to do with pickle and mac OS - the problem seems to be that pickle cannot store and load very large objects on mac OS. This is why training and loading models trained with 'glove' (relatively small word embeddings) works while it does not work with fasttext (the embedding files are some 3 GB large). We really need to find a solution here, but the problem has been that we mainly develop with ubuntu, so we don't have a setup to reproduce this error.
But given the number of people that use mac OS, I think we need to make this issue an immediate priority. Any help from the mac users in the community is greatly appreciated!
Opened #174 for this bug.
When training an NER sequence tagger with
WordEmbeddings('de-fasttext')
I get a torch serialization error, right after the first epoch.Code:
Gives the following error :