alt.hn

3/5/2026 at 8:18:37 PM

GLiNER2: Unified Schema-Based Information Extraction

https://github.com/fastino-ai/GLiNER2

by apwheele

3/6/2026 at 4:22:28 AM

Feels like it's written by ML people not following python software engineering practices.

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

by adsharma

3/6/2026 at 10:48:13 AM

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.

by fbilhaut

3/6/2026 at 3:00:14 PM

Any chance you could wrap this in pyo3? There is a large python market for this.

by adsharma

3/5/2026 at 10:46:30 PM

Very cool stuff. Love the focus on CPU-first.

Would also love to see some throughput numbers on basic VM setup.

Edit: there are some latency numbers in the paper https://arxiv.org/pdf/2507.18546

by iwhalen

3/5/2026 at 10:45:29 PM

Zero-shot encoder models are so cool. I'll definitely be checking this out.

If you're looking for a zero-shot classifier, tasksource is in a similar vein.

https://huggingface.co/tasksource/ModernBERT-large-nli

by deepsquirrelnet

3/7/2026 at 4:03:50 AM

gliner2 does classification as well as entities and relationships

by goodlux

3/6/2026 at 6:30:10 AM

Is this only for text I guess? What if the documents are in PDF? What is the recommendation to transform PDF to text?

by plaguna

3/6/2026 at 5:57:29 AM

This looks great. Thank you!

by snthpy

3/5/2026 at 10:13:42 PM

There is another version at:

https://github.com/urchade/GLiNER

Looks like it’s still being maintained too?

by hbcondo714

3/7/2026 at 4:05:29 AM

GLiNER2 is an upgrade that allows for relationship extraction and classification, built on GLiNER, and added additional research / papers, then trained a new model.

by goodlux

3/6/2026 at 4:19:47 AM

Use Gliner2. Much better model.

by adsharma

3/6/2026 at 8:15:51 PM

Okay but there is a dependency on gliner1:

https://github.com/fastino-ai/GLiNER2/issues/69

by hbcondo714

3/8/2026 at 9:42:34 PM

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.

by adsharma