uf-hobi-informatics-lab / ClinicalTransformerNER

a library for named entity recognition developed by UF HOBI NLP lab featuring SOTA algorithms
MIT License
142 stars 28 forks source link

potential break from issue https://github.com/huggingface/transformers/issues/6882 #3

Closed bugface closed 2 years ago

bugface commented 4 years ago

In https://github.com/huggingface/transformers/issues/6882, upgrade to transformers v3.1.0 may break the model load.
A temp patch is

model.load_state_dict(state_dict, strict=False)

we will keep on this issue to see if we need to update our code accordingly.

bugface commented 2 years ago

no issue found so far, will close this for now.