cea-list-ia / glidre_multi

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: March 19 2026

Introduction of glidre_multi

Model Details of glidre_multi

GLiDRE: Generalist and Lightweight Model for Document Relation Extraction

Overview

GLiDRE is a generalist and lightweight model designed for Document Relation Extraction. It enables users to extract and classify relationships among entities within unstructured text documents. Built upon the success of previous work GLiNER .

Key Features
  • Zero-Shot Extraction: Capable of classifying unseen relations directly from text.
  • Versatile Input Handling: Compatible with both tokenized text and full documents.
  • Customizable Architecture: Supports multiple loss functions and allows easy modification of model components.
Installation

Install GLiDRE

pip install .
Quick Start

Here's a simple Python example to get you started:

from glidre import GLiDRE

model = GLiDRE.from_pretrained("cea-list-ia/glidre_large")

text = "The Loud Tour was the fourth overall and third world concert tour by Barbadian recording artist Rihanna."

# Define relation labels
labels = ["COUNTRY_OF_CITIZENSHIP", "PUBLICATION_DATE", "PART_OF"] # Labels are uppercase because the model performs better with capitalized relation names
# Define entity mentions (format: [{"id" : id, "type" : type, "mentions" : [{"value" : text, "start" : start_idx, "end" : end_idx}]}])
mentions = [{
                "id": 0,
                "mentions": [
                    {
                        "value": "Barbadian",
                        "start": 69,
                        "end": 78
                    }
                ],
                "type": "LOC"
            },
            {
                "id": 1,
                "mentions": [
                    {
                        "value": "Rihanna",
                        "start": 96,
                        "end": 103
                    }
                ],
                "type": "PER"}]

# Predict relations using GLiDRE
relations = model.predict_entities(text = text, labels = labels, mentions = mentions, threshold=0.3, multi_label = False)
print("Predicted Relations:")
for relation in relations:
    print(relation["entity_1"])
    print("Label :",  relation["relation_type"])
    print(relation["entity_2"])
    print("---")
Training

GLiDRE supports training on various datasets such as DocRED and Re-DocRED.

# For Re-DocRED:
python3 train.py --config configs/config_finetuning.yaml
Citation
@misc{armingaud2025glidregeneralistlightweightmodel,
      title={GLiDRE: Generalist Lightweight model for Document-level Relation Extraction}, 
      author={Robin Armingaud and Romaric Besançon},
      year={2025},
      eprint={2508.00757},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2508.00757}, 
}

Runs of cea-list-ia glidre_multi on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About glidre_multi huggingface.co Model

More glidre_multi license Visit here:

https://choosealicense.com/licenses/apache-2.0

glidre_multi huggingface.co

glidre_multi huggingface.co is an AI model on huggingface.co that provides glidre_multi's model effect (), which can be used instantly with this cea-list-ia glidre_multi model. huggingface.co supports a free trial of the glidre_multi model, and also provides paid use of the glidre_multi. Support call glidre_multi model through api, including Node.js, Python, http.

cea-list-ia glidre_multi online free

glidre_multi huggingface.co is an online trial and call api platform, which integrates glidre_multi's modeling effects, including api services, and provides a free online trial of glidre_multi, you can try glidre_multi online for free by clicking the link below.

cea-list-ia glidre_multi online free url in huggingface.co:

https://huggingface.co/cea-list-ia/glidre_multi

glidre_multi install

glidre_multi is an open source model from GitHub that offers a free installation service, and any user can find glidre_multi on GitHub to install. At the same time, huggingface.co provides the effect of glidre_multi install, users can directly use glidre_multi installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

glidre_multi install url in huggingface.co:

https://huggingface.co/cea-list-ia/glidre_multi

Url of glidre_multi

Provider of glidre_multi huggingface.co

cea-list-ia
ORGANIZATIONS

Other API from cea-list-ia