GLiNER

urchade/GLiNER

Generalist and Lightweight Model for Named Entity Recognition

3.4k
Stars
288
Forks
96
Open issues
17
Watchers
Python Apache-2.0Last pushed Jul 6, 2026

Overview

A Python-based tool offering zero-shot named entity recognition, relation extraction, PII detection, information extraction, and token classification.

Categories

Tags

Similar tools

Install

pip install GLiNER

README

[!IMPORTANT] 🚀 GLiNER2 is Now Available from Fastino Labs! A unified multi-task model for NER, Text Classification & Structured Data Extraction. Check out fastino-ai/GLiNER2 →

GLiNER: Generalist and Lightweight Model for Named Entity Recognition

Zero-shot NER | Relation Extraction | PII Detection | Information Extraction | Token Classification

<a href="https://urchade.github.io/GLiNER"><img src="https://img.shields.io/badge/Docs-GLiNER-blue" alt="GLiNER Documentation"></a>
<a href="https://arxiv.org/abs/2311.08526"><img src="https://img.shields.io/badge/arXiv-2311.08526-b31b1b.svg" alt="GLiNER Paper"></a>
<a href="https://colab.research.google.com/drive/1mhalKWzmfSTqMnR0wQBZvt9-ktTsATHB?usp=sharing"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open GLiNER In Colab"></a>
<a href="https://github.com/urchade/GLiNER/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/urchade/GLiNER?color=blue"></a>
<br>

<a href="https://discord.gg/x7hQsjX2Kk"><img alt="GLiNER Community Discord" src="https://img.shields.io/badge/Discord-GLiNER%20Community-5865F2?logo=discord&logoColor=white"></a>
<a href="https://www.reddit.com/r/GLiNER/"><img src="https://img.shields.io/badge/Reddit-r%2FGLiNER-FF4500?logo=reddit&logoColor=white" alt="Reddit r/GLiNER"></a>
<a href="https://huggingface.co/spaces/urchade/gliner_mediumv2.1"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/open-in-hf-spaces-sm.svg" alt="Open GLiNER In HF Spaces"></a>
<a href="https://huggingface.co/models?library=gliner&sort=trending"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Models-yellow" alt="HuggingFace Models"></a>
<br>

<a href="https://clickpy.clickhouse.com/dashboard/gliner"><img src="https://static.pepy.tech/badge/gliner" alt="GLiNER Downloads"></a>
<a href="https://github.com/urchade/GLiNER"><img alt="GLiNER GitHub stars" src="https://img.shields.io/github/stars/urchade/GLiNER?style=social"></a>

GLiNER is a framework for training and deploying small Named Entity Recognition (NER) models with zero-shot capabilities. In addition to traditional NER, it also supports joint entity and relation extraction, as well as multi-task token classification. GLiNER is fine-tunable, optimized to run on CPUs and consumer hardware, and has performance competitive with LLMs several times its size, like ChatGPT and UniNER.

Other tasks such as text classification, entity linking, and schema extraction are supported through projects in the Ecosystem.

Why GLiNER?

Zero-shot Recognition

Extract any entity type — no labeled data or task-specific training required

Runs Anywhere

CPU, INT8 quantization, torch.compile, ONNX export — deploy on any hardware

Millions of Labels

Bi-encoder pre-computes label embeddings, scaling to 100+ entity types without degradation

NER + Relations

Build knowledge graphs in a single pass with the joint RelEx architecture

PII Detection

State-of-the-art multilingual PII models covering major entity types across 100+ languages

Fine-Tune in Minutes

Few-shot learning on small datasets — bring your own labels and