supervisio/herbert-base-ner-clinical-pl

A continued fine-tune of supervisio/herbert-base-ner-clinical-pl at commit c2ece8de103839db73c4bca249f4723761b72dbf for Polish clinical-note pseudonymization. The lineage: HerBERT NER (pczarnik/herbert-base-ner) → M4-18 (#596), which taught plural family names (u Kowalskich, z Nowakami), sentence-initial surnames, diminutives and names that are also common nouns (Marek/marka, Lis, Kowal) → #711 part C, which adds ordinary nouns and adjectives in name-like inflection (z drewnianą ławką, przez szybę) as negatives, so a common word in a name's slot is not a person. Same label set (PER, LOC, ORG, BIO), same tokenizer, same head. Licence CC-BY-4.0, carried through from the base model.

Trained by therapist-copilot — this checkpoint's run: #711 part C — local, unpublished, unpinned. The training data is synthetic — template sentences over declension tables and Morfeusz (SGJP) paradigms — and contains no clinical text.

Evidence status. The numbers below were taken on an arm64 laptop against this checkpoint before it was pinned. They are a candidate's numbers, not a deployment's; the x86 measurement that decides whether this checkpoint ships is recorded in the repository's docs/testing/pseudonymization-eval.md.

Training

base supervisio/herbert-base-ner-clinical-pl @ c2ece8de103839db73c4bca249f4723761b72dbf
data scripts/gen-ner-train.py, seed 20260916, SGJP pl.sgjp.sgjp-2026.06.01
train / dev 7952 / 904 sentences (dev over disjoint names)
train sha256 94007b3cf4cfcbb9074741c406bb91d63e13d88ed4068391a2e35969dff50479
held out by lemma Kowalska, Kowalski, Nowak, Wiśniewska, Wiśniewski, Zielińska, Zieliński
frozen embeddings + 6 encoder layers (42532615 of 123857671 parameters trainable)
optimizer AdamW, lr 2e-05, weight decay 0.01, grad clip 1.0
schedule 3 epochs, linear warmup, linear decay, warm-up 0.1
batch / length 16 / 128
seed 20260916
hardware Apple M3 Pro, mps, 243 s
versions torch 2.13.0, transformers 5.14.1
synthetic dev, last epoch PER F1 1.0, LOC F1 1.0, ORG F1 1.0
model.safetensors sha256 62326ee89fb48f8e62ed3c990bdf29f84395869c2fb02108739e0e83ebd07c88

Files

config.json, model.safetensors, the tokenizer files and train-record.json. No pickle is published: the consuming service loads safetensors only.

Reproduce

cd services/nlp-sidecar
python scripts/gen-ner-train.py                 # the data, from the seed above
python scripts/finetune-ner.py                  # the checkpoint
python -m pl_eval --ner real --model-path .train/checkpoint
Downloads last month
140
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for supervisio/herbert-base-ner-clinical-pl

Unable to build the model tree, the base model loops to the model itself. Learn more.