nlpodyssey / cybertron

Cybertron: the home planet of the Transformers in Go
BSD 2-Clause "Simplified" License
289 stars 26 forks source link

Error converting flair model #12

Closed abasse closed 1 year ago

abasse commented 1 year ago

I receive following error message when I try to load the model CYBERTRON_MODEL=flair/ner-german-large

2023-03-31T13:16:57+02:00 DBG model file already exists, skipping download file=models/flair/ner-german-large/pytorch_model.bin
2023-03-31T13:17:00+02:00 ERR error="failed to convert model: failed to load sequence tagger: failed to unpickle \"models/flair/ner-german-large/pytorch_model.bin\": class not found: flair.embeddings.token TransformerWordEmbeddings"
matteo-grella commented 1 year ago

Hello @abasse,

I've found that while Flair models offer some appealing features, their architecture lacks uniformity, making it challenging to support. Consequently, we've decided to exclude Flair from Cybertron starting with version 0.2.0.