CoolFace
Modelpublic

sassoftware/glitext-large-biomed

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
0likes
Model Card

GLiNER-BioMed

The model was presented in the paper GLiNER-BioMed: A Suite of Efficient Models for Open Biomedical Named Entity Recognition.

The code is available at https://github.com/ds4dh/GLiNER-biomed.

GLiNER is a Named Entity Recognition (NER) model capable of identifying any entity type using a bidirectional transformer encoders (BERT-like). It provides a practical alternative to traditional NER models, which are limited to predefined entities, and Large Language Models (LLMs) that, despite their flexibility, are costly and large for resource-constrained scenarios.

GLiNER-biomed, developed in collaboration with DS4DH from the University of Geneva, introduces a specialized suite of efficient open biomedical NER models based on the GLiNER framework. GLiNER-biomed leverages synthetic annotations distilled from large generative biomedical language models to achieve state-of-the-art zero-shot and few-shot performance in biomedical entity recognition tasks.

How to Use

Install the official GLiNER library with pip:

bash
pip install gliner -U

After installing the GLiNER library, you can easily load a GLiNER-biomed model and perform named entity recognition:

python
from gliner import GLiNER

model = GLiNER.from_pretrained("Ihor/gliner-biomed-large-v1.0")

text = """
The patient, a 45-year-old male, was diagnosed with type 2 diabetes mellitus and hypertension.
He was prescribed Metformin 500mg twice daily and Lisinopril 10mg once daily. 
A recent lab test showed elevated HbA1c levels at 8.2%.
"""

labels = ["Disease", "Drug", "Drug dosage", "Drug frequency", "Lab test", "Lab test value", "Demographic information"]

entities = model.predict_entities(text, labels, threshold=0.5)

for entity in entities:
    print(entity["text"], "=>", entity["label"])

Expected output:

45-year-old male => Demographic information
type 2 diabetes mellitus => Disease
hypertension => Disease
Metformin => Drug
500mg => Drug dosage
twice daily => Drug frequency
Lisinopril => Drug
10mg => Drug dosage
once daily => Drug frequency
HbA1c levels => Lab test
8.2% => Lab test value

Benchmarking

We examined our models on 8 complex real-world datasets and compared them with other GLiNER models.

ModelF1-scoreMacro mean F1Macro median F1Weighted F1
Large models
NuNER Zero40.8721.7913.9433.67
NuNER Zero span40.2622.5114.2732.52
GLiNER bio v0.142.3427.1024.4438.32
GLiNER bio v0.238.6625.3617.0232.42
GLiNER v1.047.7729.6021.1340.78
GLiNER v2.037.3821.4215.4433.11
GLiNER v2.148.0429.7528.2043.43
GLiNER news v2.148.9931.7933.7745.13
GLiNER v2.553.8135.2235.6551.57
[GLiNER-biomed](https://huggingface.co/Ihor/gliner-biomed-large-v1.0)59.7740.6742.6558.40
[GLiNER-biomed-bi](https://huggingface.co/Ihor/gliner-biomed-bi-large-v1.0)54.9035.7831.6650.46
Base models
GLiNER v1.041.6124.9810.2731.59
GLiNER v2.034.3324.4822.0130.58
GLiNER v2.140.2525.2614.4132.64
GLiNER news v2.141.5927.1617.7434.44
GLiNER v2.546.4930.9325.2644.68
[GLiNER-biomed](https://huggingface.co/Ihor/gliner-biomed-base-v1.0)54.3736.2041.6153.05
[GLiNER-biomed-bi](https://huggingface.co/Ihor/gliner-biomed-bi-base-v1.0)58.3135.2232.3954.91
Small models
GLiNER v1.040.9922.817.8631.15
GLiNER v2.033.5521.1215.7628.78
GLiNER v2.138.4523.2510.9230.67
GLiNER news v2.139.1524.9614.4833.10
GLiNER v2.538.2128.5318.0136.88
[GLiNER-biomed](https://huggingface.co/Ihor/gliner-biomed-small-v1.0)52.5334.4938.1750.87
[GLiNER-biomed-bi](https://huggingface.co/Ihor/gliner-biomed-bi-small-v1.0)56.9333.8833.6153.12

Join Our Discord

Connect with our community on Discord for news, support, and discussion about our models. Join Discord.

Citation

This work

If you use GLiNER-biomed models in your work, please cite:

bibtex
@misc{yazdani2025glinerbiomedsuiteefficientmodels,
      title={GLiNER-BioMed: A Suite of Efficient Models for Open Biomedical Named Entity Recognition}, 
      author={Anthony Yazdani and Ihor Stepanov and Douglas Teodoro},
      year={2025},
      eprint={2504.00676},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2504.00676}, 
}

Previous work

bibtex
@misc{zaratiana2023gliner,
      title={GLiNER: Generalist Model for Named Entity Recognition using Bidirectional Transformer},
      author={Urchade Zaratiana and Nadi Tomeh and Pierre Holat and Thierry Charnois},
      year={2023},
      eprint={2311.08526},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
bibtex
@misc{stepanov2024gliner,
      title={GLiNER multi-task: Generalist Lightweight Model for Various Information Extraction Tasks},
      author={Ihor Stepanov and Mykhailo Shtopko},
      year={2024},
      eprint={2406.12925},
      archivePrefix={arXiv},
      primaryClass={id='cs.LG' full_name='Machine Learning' is_active=True alt_name=None in_archive='cs' is_general=False description='Papers on all aspects of machine learning research (supervised, unsupervised, reinforcement learning, bandit problems, and so on) including also robustness, explanation, fairness, and methodology. cs.LG is also an appropriate primary category for applications of machine learning methods.'}
}

Source Model Repo

This model is derived from `Ihor/gliner-biomed-large-v1.0`. See the upstream repository for the original safetensors weights, training data, and the full upstream model card.

ONNX Weights

ONNX weights added by SAS — converted from the upstream safetensors checkpoint.

File in this repo: model.onnx.

Using this Model with the SAS GLiText API

This repo is consumed by the SAS GLiText product. To download it onto a SAS GLiText server:

POST /v1/models/download?name=large-biomed

To download and load into memory in one step:

PUT /v1/models?name=large-biomed

Security Scan

Scanned with modelaudit v0.2.40 on 2026-04-27. 29/29 checks passed. Full results.

FileSizeSHA-256
model.onnx1914.5 MBa196662cda86b75a…