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

Loading some Flair models causes "FileNotFoundError: [Errno 2] No such file or directory" #3187

Open
11 of 14 tasks
alanakbik opened this issue Apr 5, 2023 · 10 comments
Open
11 of 14 tasks

Comments

@alanakbik
Copy link
Collaborator

alanakbik commented Apr 5, 2023

When using Flair with Torch 2.0, our "oldest" models can no longer be loaded. This is because they serialized LSTM properties that no longer exist in Torch 2.0.

This issue tracks the process of identifying and fixing these models:

@michaelgoeggelmann
Copy link

ontonotes as well? Still works for me!

@alanakbik
Copy link
Collaborator Author

Ontonotes-large works, but the smaller LSTM-based ones do not seem to work in my setups.

@michaelgoeggelmann
Copy link

makes sense, I only used the large one. Thanks again!

@sadanyh
Copy link

sadanyh commented Aug 1, 2023

Same here. The first example code for the flair library gives the same error:
FileNotFoundError: [Errno 2] No such file or directory: 'ner'

@mjackko
Copy link

mjackko commented Aug 22, 2023

Could you please check de-ner-large? We started getting problems with it as well:

FileNotFoundError: [Errno 2] No such file or directory: 'de-ner-large'

@TessDejaeghere
Copy link

Hi! I'm encountering the same problem for "pos-multi":

FileNotFoundError: [Errno 2] No such file or directory: 'pos-multi'

@pazzo83
Copy link

pazzo83 commented Sep 5, 2023

I am getting the same problem with "linker":
FileNotFoundError: [Errno 2] No such file or directory: 'linker'

@kkarski
Copy link

kkarski commented Oct 17, 2023

Same problem with 'chunk'.

@alanakbik
Copy link
Collaborator Author

Hello @pazzo83 and @kkarski - I just tested "linker" and "chunk" in a fresh colab install of master branch, and they both work.

Unfortunately @TessDejaeghere the pos-multi is an old LSTM-based model that we haven't updated yet for torch-2.0. See issue text above.

@spiu
Copy link

spiu commented Dec 1, 2023

I was having the same issue with flair 0.13.0 when trying to load the linker model, but this was due to a corrupted download. I fixed this going to ~/.flair/models and deleting the relevant files, for linker this was the linker folder and the corrupted zelda dataset

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

8 participants