You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "C:\Users\nick\PycharmProjects\flair\.venv\Lib\site-packages\flair\embeddings\transformer.py", line 1350, in from_params
config_class = CONFIG_MAPPING[model_type]
~~~~~~~~~~~~~~^^^^^^^^^^^^
File "C:\Users\nick\PycharmProjects\flair\.venv\Lib\site-packages\transformers\models\auto\configuration_auto.py", line 794, in __getitem__
raise KeyError(key)
KeyError: 'eurobert'
Hi @zynos, Eurobert is a custom code model! This means the model code is contained in the model repos, not in transformers. The issue in flairNLP is likely because they aren't loading the tokenizer/model/config with trust_remote_code=True.
If loading remote code repos is impossible, then you'd need to make a full PR to transformers to add the eurobert code as a new model class.
Model description
I would like to have the EuroBert model added to the config (configuration_auto.py) :)
Especially the 210M version:
https://huggingface.co/EuroBERT
This would probably solve an issue in Flair:
flairNLP/flair#3630
Open source status
Provide useful links for the implementation
@tomaarsen
The text was updated successfully, but these errors were encountered: