GLiNER is a really great research work. But putting this kind of things in production is just another job. Not trying to do self promotion here, but there are alternatives for this purpose, like gline-rs (https://github.com/fbilhaut/gline-rs). Support of GLiNER 2 models is on the way.
GLiNER2 is an upgrade that allows for relationship extraction and classification, built on GLiNER, and added additional research / papers, then trained a new model.
Sounds like a great model which is hobbled by a bunch of mundane python programming issues that researchers don't want to deal with. If there is sufficient interest, I can look into maintaining a new wrapper.
No black, UV or ruff.
Prints messages with emojis to stdout by default.
Makes a connection to hugging face on every import.
https://github.com/fastino-ai/GLiNER2/pull/74