Token Classification
GLiNER
PyTorch
English

Error, can't resolve

#6
by tshroveOntelio - opened

I'm getting an error and I cannot resolve. Exception has occurred: TypeError X - load_state_dict) got an unexpected keyword argument 'assign'

Screenshot 2024-03-15 at 9.38.04 PM.png

Any ideas. I've tried copying and pasting exact code. I've tried all the different model sizes.

Owner

you can modify your code and remove the assign keyword, or update transformer version
similar error: https://github.com/urchade/GLiNER/issues/7

Sign up or log in to comment