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
Some serialized flair models currently cannot be loaded on Windows due to serialized PosixPaths. These models need to be identified and updated for Windows compatibility.
To Reproduce
fromflair.dataimportSentencefromflair.modelsimportSequenceTaggermodel=SequenceTagger.load("pos-multi")
sentence=Sentence("I love Berlin")
model.predict(sentence)
print(sentence)
Expected behavior
All models should run on Windows.
Logs and Stack traces
Screenshots
No response
Additional Context
No response
Environment
Versions:
Flair
0.15.1
Pytorch
2.5.1+cu124
Transformers
4.48.2
GPU
True
The text was updated successfully, but these errors were encountered:
Issue has been fixed by reserializing the models without the PosixPath.
In the course of fixing this issue, two other models were found to suffer from the same issue: 'ner-ukrainian' and 'pos-ukrainian'. Two PRs have been opened on HF to address this:
Describe the bug
Some serialized flair models currently cannot be loaded on Windows due to serialized PosixPaths. These models need to be identified and updated for Windows compatibility.
To Reproduce
Expected behavior
All models should run on Windows.
Logs and Stack traces
Screenshots
No response
Additional Context
No response
Environment
Versions:
Flair
0.15.1
Pytorch
2.5.1+cu124
Transformers
4.48.2
GPU
True
The text was updated successfully, but these errors were encountered: