Downloads · 30 days
1
2% of all-time downloads
wmatbooth/SauerkrautLM-LFM2.5-GLiNER
SauerkrautLM-LFM2.5-GLiNER is a token classification model from wmatbooth. Use it when you need labels on individual words, such as names. It is set up for gliner. The card lists the license as other.
analog zu den anderen SauerkrautLM-Cards. -- [](https://vago-solutions.ai)
Downloads · 30 days
1
2% of all-time downloads
All-time downloads
53
Public
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.bin1.6 GB · 100%
From the Hugging Face model README
Zero-Shot NER Model – Bidirectional GLiNER on an LFM2.5-350M backbone — strong multilingual, PII and biomedical entity extraction
Introducing SauerkrautLM-LFM2.5-GLiNER – our zero-shot Named Entity Recognition model built on the LFM2.5-350M backbone, converted from causal to bidirectional attention and fine-tuned for the GLiNER span–label matching task.
| Model | HF | ONNX | GGUF |
|---|---|---|---|
| SauerkrautLM-LFM2.5-GLiNER | Link | coming soon | coming soon |
The backbone was pretrained causally — each token only sees the tokens before it. NER, however, is not a left-to-right generation task: deciding what a token is and where an entity starts and ends frequently depends on context that appears after the token. Converting the encoder to bidirectional attention (and replacing the causal, left-padded convolutions with symmetric, center-padded ones) lets every token condition on the full sentence.
Cases where right-hand context is decisive:
This is also why a masked-language-modeling adaptation stage precedes task training: bidirectional MLM is what teaches the converted encoder to actually use right-hand context and to build the surface-form sensitivity that structured-entity recall depends on. The measured outcome is consistent with this — strong PII results across all five languages and a large biomedical-NER margin.
The model is produced in three sequential stages.
Stage 1 — Bidirectional MLM adaptation. The causal backbone is converted to bidirectional attention and adapted with a masked-language- modeling objective. This teaches the model to use both left and right context and builds the surface-form / format sensitivity that NER (especially structured entities) depends on. Output: a dense bidirectional encoder checkpoint.
Stage 2 — GLiNER task training. The adapted encoder is fine-tuned on the GLiNER NER objective (BCE over span–label scores), establishing the shared latent space between spans and labels and the zero-shot capability.
Stage 3 — Refinement on higher-quality data. A second fine-tuning pass on a smaller, cleaned, higher-quality set sharpens precision and recall. This stage delivers the main quality gains over the task-trained model.
All models were evaluated under a single shared benchmark harness (F1 ×100). Please note that benchmark results in absolute numbers may differ from other published pipelines; the relative differences remain consistent.
Capability Overview — Final Checkpoint
| Benchmark | F1 |
|---|---|
| CrossNER — English (avg) | 78.4 |
| CrossNER — multilingual (avg) | 72.5 |
| Privacy / PII — multilingual (avg) | 79.5 |
| Biomedical NER (BioNLP-CG) | 54.6 |
CrossNER — Multilingual Zero-Shot NER
| Model | EN | FR | DE | IT | ES | avg |
|---|---|---|---|---|---|---|
| SauerkrautLM-LFM2.5-GLiNER (ours) | 78.4 | 71.4 | 69.0 | 71.2 | 72.4 | 72.5 |
| SauerkrautLM-GLiNER | 73.8 | 71.2 | 68.7 | 71.3 | 72.0 | 71.4 |
| urchade/gliner_large-v2.1 | 71.9 | 57.3 | 55.8 | 58.1 | 58.6 | 60.3 |
| urchade/gliner_multi-v2.1 | 72.2 | 46.7 | 46.8 | 48.1 | 48.9 | 52.5 |
Privacy / PII — Multilingual Entity Extraction
| Model | EN | FR | DE | IT | ES | avg |
|---|---|---|---|---|---|---|
| SauerkrautLM-LFM2.5-GLiNER (ours) | 78.7 | 81.8 | 76.5 | 79.4 | 81.4 | 79.5 |
| urchade/gliner_large-v2.1 | 72.0 | 76.1 | 70.3 | 68.9 | 72.2 | 71.9 |
| urchade/gliner_multi-v2.1 | 51.1 | 62.2 | 58.6 | 57.6 | 58.0 | 57.5 |
| SauerkrautLM-GLiNER | 65.8 | 52.9 | 57.8 | 53.6 | 46.2 | 55.2 |
Biomedical NER — BioNLP-CG (EN)
| Model | F1 |
|---|---|
| SauerkrautLM-LFM2.5-GLiNER (ours) | 54.6 |
| SauerkrautLM-GLiNER | 36.3 |
| urchade/gliner_large-v2.1 | 35.5 |
| urchade/gliner_multi-v2.1 | 29.4 |
This is a GLiNER model. Install the library and provide the entity types you want to extract as labels at inference time:
pip install gliner
from gliner import GLiNER
model = GLiNER.from_pretrained("VAGOsolutions/SauerkrautLM-LFM2.5-GLiNER")
text = "Maria Schmidt arbeitet bei Siemens in München, E-Mail: [email protected]"
# free-form labels — change them per request, no retraining needed
labels = ["person", "organization", "location", "email"]
entities = model.predict_entities(text, labels, threshold=0.5)
for entity in entities:
print(f"{entity['text']} => {entity['label']} ({entity['score']:.2f})")
We must inform users that despite our best efforts in data cleansing, the possibility of uncensored or incorrect content slipping through cannot be entirely ruled out. We cannot guarantee consistently appropriate behavior. Therefore, if you encounter any issues or come across inappropriate content, we kindly request that you inform us through the contact information provided. Additionally, it is essential to understand that the licensing of these models does not constitute legal advice. We are not held responsible for the actions of third parties who utilize our models.
If you are interested in customized LLMs or NER/PII extraction solutions for business applications, please get in contact with us via our website. We are also grateful for your feedback and suggestions.
We are also keenly seeking support and investment for our startup, VAGO solutions, where we continuously advance the development of robust language models designed to address a diverse range of purposes and requirements. If the prospect of collaboratively navigating future challenges excites you, we warmly invite you to reach out to us at VAGO solutions.
If you use SauerkrautLM-LFM2.5-GLiNER in your research or applications, please cite:
@misc{SauerkrautLM-LFM2.5-GLiNER,
title={SauerkrautLM-LFM2.5-GLiNER},
author={Michele Montebovi},
organization={VAGO Solutions},
url={https://huggingface.co/VAGOsolutions/SauerkrautLM-LFM2.5-GLiNER},
year={2026}
}
Many thanks to Liquid AI for the LFM2 base model, to urchade for the GLiNER framework, and to our community for their continued support and engagement.