Error

#2
by vpkprasanna - opened

tagger = SequenceTagger.load("flair/ner-english-ontonotes-large")

getting this error while running the code
Error(s) in loading state_dict for XLMRobertaModel:
Unexpected key(s) in state_dict: "embeddings.position_ids".

Hey @vpkprasanna ,

to fix that you should update your Flair version.

The Flair version on the Model Hub here was recently updated so that the example is working :)

Hey @vpkprasanna ,

to fix that you should update your Flair version.

The Flair version on the Model Hub here was recently updated so that the example is working :)

hey hi i am using the latest version of flair which is 0.12.2 ,but still the same issue

Could you try latest master version from GitHub with:

$ pip3 install --upgrade git+https://github.com/flairNLP/flair.git

Could you try latest master version from GitHub with:

$ pip3 install --upgrade git+https://github.com/flairNLP/flair.git

Got the same issue even after flair package upgrading .
here is the notebook link : https://colab.research.google.com/drive/1sMoE_l9ZKtiB6Zh3DIBCU_OyLYT6oU2B?usp=sharing

Hi @vpkprasanna ,

could you please start with another fresh Colab. I was able to get the example running by just starting with:

!pip3 install --upgrade git+https://github.com/flairNLP/flair.git

Then here's the output:

image.png

Hi @vpkprasanna ,

could you please start with another fresh Colab. I was able to get the example running by just starting with:

!pip3 install --upgrade git+https://github.com/flairNLP/flair.git

Then here's the output:

image.png

okay thanks for the confirmation . can you update the wheel of latest flair in pypi ?

I have the same issue and also performed the upgrade into a fresh venv environment with python 3.10.

[Edit] Please ignore...works fine

We released a new version of Flair (0.13.0) with the bugfix, so you can install directly using "pip install flair"!

Sign up or log in to comment