Token Classification
PyTorch
ONNX
English
glitext
NER
GLiNER
information extraction
encoder
entity recognition
biomed
rpeel commited on
Commit
775875d
·
verified ·
1 Parent(s): 8154e58

Update model card and security scan results

Browse files
Files changed (1) hide show
  1. README.md +163 -15
README.md CHANGED
@@ -1,28 +1,185 @@
1
  ---
 
 
 
 
 
 
 
2
  library_name: glitext
3
  license: apache-2.0
 
 
 
4
  tags:
 
 
 
 
 
 
5
  - glitext
6
  glitext:
7
  name: small-biomed
8
  label: GliText Biomedical Recognition (Fast)
9
- description: An efficient zero-shot named entity recognition model tuned for biomedical text extraction with high throughput (speed).
 
10
  recognition: true
11
  classification: false
12
  association: false
13
  span_mode: true
14
  size_gb: 0.62
15
- hf_repo: rpeel/glitext-small-biomed
16
  source_url: Ihor/gliner-biomed-small-v1.0
17
  ---
18
 
19
- # rpeel/glitext-small-biomed
20
 
21
- An efficient zero-shot named entity recognition model tuned for biomedical text extraction with high throughput (speed).
22
 
23
- ## Requirements
24
 
25
- To download this model to the SAS GLiText server:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  ```
28
  POST /v1/models/download?name=small-biomed
@@ -34,11 +191,6 @@ To download and load into memory in one step:
34
  PUT /v1/models?name=small-biomed
35
  ```
36
 
37
- ## Source Model
38
-
39
- Exported from [Ihor/gliner-biomed-small-v1.0](https://huggingface.co/Ihor/gliner-biomed-small-v1.0).
40
- See the [original model card](https://huggingface.co/Ihor/gliner-biomed-small-v1.0) for full architecture and training details.
41
-
42
  ## Security Scan
43
 
44
  Scanned with [modelaudit](https://github.com/promptfoo/modelaudit) v0.2.40 on 2026-04-27. 29/29 checks passed. [Full results](modelaudit.json).
@@ -47,7 +199,3 @@ Scanned with [modelaudit](https://github.com/promptfoo/modelaudit) v0.2.40 on 20
47
  | File | Size | SHA-256 |
48
  |------|------|---------|
49
  | `model.onnx` | 611.3 MB | `3802e22c6358e1c9…` |
50
-
51
- ## License
52
-
53
- [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0). Derived from [Ihor/gliner-biomed-small-v1.0](https://huggingface.co/Ihor/gliner-biomed-small-v1.0) by [Ihor](https://huggingface.co/Ihor).
 
1
  ---
2
+ base_model:
3
+ - microsoft/deberta-v3-small
4
+ datasets:
5
+ - anthonyyazdaniml/gliner-biomed-pre-training
6
+ - anthonyyazdaniml/gliner-biomed-post-training
7
+ language:
8
+ - en
9
  library_name: glitext
10
  license: apache-2.0
11
+ metrics:
12
+ - f1
13
+ pipeline_tag: token-classification
14
  tags:
15
+ - NER
16
+ - GLiNER
17
+ - information extraction
18
+ - encoder
19
+ - entity recognition
20
+ - biomed
21
  - glitext
22
  glitext:
23
  name: small-biomed
24
  label: GliText Biomedical Recognition (Fast)
25
+ description: An efficient zero-shot named entity recognition model tuned for biomedical
26
+ text extraction with high throughput (speed).
27
  recognition: true
28
  classification: false
29
  association: false
30
  span_mode: true
31
  size_gb: 0.62
32
+ hf_repo: sassoftware/glitext-small-biomed
33
  source_url: Ihor/gliner-biomed-small-v1.0
34
  ---
35
 
36
+ # GLiNER-BioMed
37
 
38
+ The model was presented in the paper [GLiNER-BioMed: A Suite of Efficient Models for Open Biomedical Named Entity Recognition](https://arxiv.org/abs/2504.00676).
39
 
40
+ The code is available at [https://github.com/ds4dh/GLiNER-biomed](https://github.com/ds4dh/GLiNER-biomed).
41
 
42
+ **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.
43
+
44
+
45
+ **GLiNER-biomed**, developed in collaboration with [DS4DH](https://www.unige.ch/medecine/radio/en/research-groups/1035teodoro) 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.
46
+
47
+ ### How to Use
48
+ Install the official GLiNER library with pip:
49
+ ```bash
50
+ pip install gliner -U
51
+ ```
52
+
53
+ After installing the GLiNER library, you can easily load a GLiNER-biomed model and perform named entity recognition:
54
+
55
+ ```python
56
+ from gliner import GLiNER
57
+
58
+ model = GLiNER.from_pretrained("Ihor/gliner-biomed-small-v1.0")
59
+
60
+ text = """
61
+ The patient, a 45-year-old male, was diagnosed with type 2 diabetes mellitus and hypertension.
62
+ He was prescribed Metformin 500mg twice daily and Lisinopril 10mg once daily.
63
+ A recent lab test showed elevated HbA1c levels at 8.2%.
64
+ """
65
+
66
+ labels = ["Disease", "Drug", "Drug dosage", "Drug frequency", "Lab test", "Lab test value", "Demographic information"]
67
+
68
+ entities = model.predict_entities(text, labels, threshold=0.5)
69
+
70
+ for entity in entities:
71
+ print(entity["text"], "=>", entity["label"])
72
+ ```
73
+
74
+ Expected output:
75
+ ```
76
+ 45-year-old male => Demographic information
77
+ type 2 diabetes mellitus => Disease
78
+ hypertension => Disease
79
+ Metformin => Drug
80
+ 500mg => Drug dosage
81
+ twice daily => Drug frequency
82
+ Lisinopril => Drug
83
+ 10mg => Drug dosage
84
+ once daily => Drug frequency
85
+ HbA1c levels => Lab test
86
+ 8.2% => Lab test value
87
+ ```
88
+
89
+ ### Benchmarking
90
+
91
+ We examined our models on 8 complex real-world datasets and compared them with other GLiNER models.
92
+
93
+ | Model | F1-score | Macro mean F1 | Macro median F1 | Weighted F1 |
94
+ |------------------------|----------|----------------|------------------|-------------|
95
+ | **Large models** | | | | |
96
+ | [NuNER Zero](https://huggingface.co/numind/NuNER_Zero) | 40.87 | 21.79 | 13.94 | 33.67 |
97
+ | [NuNER Zero span](https://huggingface.co/numind/NuNER_Zero-span) | 40.26 | 22.51 | 14.27 | 32.52 |
98
+ | [GLiNER bio v0.1](https://huggingface.co/urchade/gliner_large_bio-v0.1) | 42.34 | 27.10 | 24.44 | 38.32 |
99
+ | [GLiNER bio v0.2](https://huggingface.co/urchade/gliner_large_bio-v0.2) | 38.66 | 25.36 | 17.02 | 32.42 |
100
+ | [GLiNER v1.0](https://huggingface.co/urchade/gliner_large-v1) | 47.77 | 29.60 | 21.13 | 40.78 |
101
+ | [GLiNER v2.0](https://huggingface.co/urchade/gliner_large-v2) | 37.38 | 21.42 | 15.44 | 33.11 |
102
+ | [GLiNER v2.1](https://huggingface.co/urchade/gliner_large-v2.1) | 48.04 | 29.75 | 28.20 | 43.43 |
103
+ | [GLiNER news v2.1](https://huggingface.co/EmergentMethods/gliner_large_news-v2.1) | 48.99 | 31.79 | 33.77 | 45.13 |
104
+ | [GLiNER v2.5](https://huggingface.co/gliner-community/gliner_large-v2.5) | 53.81 | 35.22 | 35.65 | 51.57 |
105
+ | **[GLiNER-biomed](https://huggingface.co/Ihor/gliner-biomed-large-v1.0)** | **59.77**| **40.67** | **42.65** | **58.40** |
106
+ | **[GLiNER-biomed-bi](https://huggingface.co/Ihor/gliner-biomed-bi-large-v1.0)** | 54.90 | 35.78 | 31.66 | 50.46 |
107
+ | **Base models** | | | | |
108
+ | [GLiNER v1.0](https://huggingface.co/urchade/gliner_medium-v1) | 41.61 | 24.98 | 10.27 | 31.59 |
109
+ | [GLiNER v2.0](https://huggingface.co/urchade/gliner_medium-v2) | 34.33 | 24.48 | 22.01 | 30.58 |
110
+ | [GLiNER v2.1](https://huggingface.co/urchade/gliner_medium-v2.1) | 40.25 | 25.26 | 14.41 | 32.64 |
111
+ | [GLiNER news v2.1](https://huggingface.co/EmergentMethods/gliner_medium_news-v2.1) | 41.59 | 27.16 | 17.74 | 34.44 |
112
+ | [GLiNER v2.5](https://huggingface.co/gliner-community/gliner_base-v2.5) | 46.49 | 30.93 | 25.26 | 44.68 |
113
+ | **[GLiNER-biomed](https://huggingface.co/Ihor/gliner-biomed-base-v1.0)** | 54.37| **36.20** | **41.61** | 53.05 |
114
+ | **[GLiNER-biomed-bi](https://huggingface.co/Ihor/gliner-biomed-bi-base-v1.0)** | **58.31** | 35.22 | 32.39 | **54.91** |
115
+ | **Small models** | | | | |
116
+ | [GLiNER v1.0](https://huggingface.co/urchade/gliner_small-v1) | 40.99 | 22.81 | 7.86 | 31.15 |
117
+ | [GLiNER v2.0](https://huggingface.co/urchade/gliner_small-v2) | 33.55 | 21.12 | 15.76 | 28.78 |
118
+ | [GLiNER v2.1](https://huggingface.co/urchade/gliner_small-v2.1) | 38.45 | 23.25 | 10.92 | 30.67 |
119
+ | [GLiNER news v2.1](https://huggingface.co/EmergentMethods/gliner_small_news-v2.1) | 39.15 | 24.96 | 14.48 | 33.10 |
120
+ | [GLiNER v2.5](https://huggingface.co/gliner-community/gliner_small-v2.5) | 38.21 | 28.53 | 18.01 | 36.88 |
121
+ | **[GLiNER-biomed](https://huggingface.co/Ihor/gliner-biomed-small-v1.0)** | 52.53| **34.49** | **38.17** | 50.87 |
122
+ | **[GLiNER-biomed-bi](https://huggingface.co/Ihor/gliner-biomed-bi-small-v1.0)** | **56.93** | 33.88 | 33.61 | **53.12** |
123
+
124
+
125
+
126
+ ### Join Our Discord
127
+
128
+ Connect with our community on Discord for news, support, and discussion about our models. Join [https://discord.gg/dkyeAgs9DG](https://discord.gg/dkyeAgs9DG).
129
+
130
+ ## Citation
131
+
132
+ ### This work
133
+ If you use GLiNER-biomed models in your work, please cite:
134
+
135
+ ```bibtex
136
+ @misc{yazdani2025glinerbiomedsuiteefficientmodels,
137
+ title={GLiNER-BioMed: A Suite of Efficient Models for Open Biomedical Named Entity Recognition},
138
+ author={Anthony Yazdani and Ihor Stepanov and Douglas Teodoro},
139
+ year={2025},
140
+ eprint={2504.00676},
141
+ archivePrefix={arXiv},
142
+ primaryClass={cs.CL},
143
+ url={https://arxiv.org/abs/2504.00676},
144
+ }
145
+ ```
146
+
147
+ ### Previous work
148
+ ```bibtex
149
+ @misc{zaratiana2023gliner,
150
+ title={GLiNER: Generalist Model for Named Entity Recognition using Bidirectional Transformer},
151
+ author={Urchade Zaratiana and Nadi Tomeh and Pierre Holat and Thierry Charnois},
152
+ year={2023},
153
+ eprint={2311.08526},
154
+ archivePrefix={arXiv},
155
+ primaryClass={cs.CL}
156
+ }
157
+ ```
158
+
159
+ ```bibtex
160
+ @misc{stepanov2024gliner,
161
+ title={GLiNER multi-task: Generalist Lightweight Model for Various Information Extraction Tasks},
162
+ author={Ihor Stepanov and Mykhailo Shtopko},
163
+ year={2024},
164
+ eprint={2406.12925},
165
+ archivePrefix={arXiv},
166
+ 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.'}
167
+ }
168
+ ```
169
+
170
+ ## Source Model Repo
171
+
172
+ This model is derived from [`Ihor/gliner-biomed-small-v1.0`](https://huggingface.co/Ihor/gliner-biomed-small-v1.0). See the upstream repository for the original safetensors weights, training data, and the full upstream model card.
173
+
174
+ ## ONNX Weights
175
+
176
+ ONNX weights added by SAS — converted from the upstream safetensors checkpoint.
177
+
178
+ File in this repo: `model.onnx`.
179
+
180
+ ## Using this Model with the SAS GLiText API
181
+
182
+ This repo is consumed by the SAS GLiText product. To download it onto a SAS GLiText server:
183
 
184
  ```
185
  POST /v1/models/download?name=small-biomed
 
191
  PUT /v1/models?name=small-biomed
192
  ```
193
 
 
 
 
 
 
194
  ## Security Scan
195
 
196
  Scanned with [modelaudit](https://github.com/promptfoo/modelaudit) v0.2.40 on 2026-04-27. 29/29 checks passed. [Full results](modelaudit.json).
 
199
  | File | Size | SHA-256 |
200
  |------|------|---------|
201
  | `model.onnx` | 611.3 MB | `3802e22c6358e1c9…` |