Downloads · 30 days
0
lokomotifai/hushmark-berturk-112m
hushmark-berturk-112m is a token classification model from lokomotifai. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Aug 22, 2026
Repo size
450 MB
Likes
0
Public
Click a slice to open those files.
.safetensors450 MB · 100%
From the Hugging Face model README
Türkçe model kartı · Hushmark source
Hushmark BERTurk Span 112M is a 112,422,957-parameter, fixed-taxonomy Turkish
named-entity recognition model. It fully fine-tunes the cased Turkish BERT encoder from
dbmdz/bert-base-turkish-cased
and adds a custom non-overlapping word-span classifier.
This private release is a challenger checkpoint, not the currently adopted Hushmark
production model. It substantially outperformed hushmark-tr-289m on the new locked
synthetic holdout, but runtime integration, ONNX parity, production-like evaluation, and
shadow testing are still required before promotion.
The model proposes spans for the 12 NER-owned Hushmark entity types:
| Hushmark type | Model label |
|---|---|
PERSON | person |
ADDRESS | full address |
ORG | organization |
DOB | date of birth |
HEALTH | medical condition |
RELIGION | religious belief |
ETHNICITY | ethnic origin |
POLITICAL | political opinion |
SEXUAL_LIFE | sexual orientation |
CRIMINAL | criminal record |
BIOMETRIC_REF | biometric data |
UNION | trade union membership |
The taxonomy is closed: adding or changing a label requires retraining the span head. Deterministic identifiers and secrets remain the responsibility of Hushmark validators. Policy, masking, blocking, and audit decisions are outside this model.
This model is a detection aid, not an anonymization or legal-compliance guarantee. Do not use its predictions as the sole basis for legal, employment, healthcare, credit, or other high-impact decisions.
The repository contains a small standalone loader because this is a custom span model,
not a standard AutoModelForTokenClassification checkpoint.
pip install -r requirements.txt
from pathlib import Path
from huggingface_hub import snapshot_download
from hushmark_berturk import BerturkSpanModel
snapshot = Path(
snapshot_download("lokomotifai/hushmark-berturk-112m")
)
model = BerturkSpanModel.load_artifact(snapshot).eval()
# model = model.to("cuda") # optional
text = "Ayşe Yılmaz, 14 Mayıs 1985 tarihinde doğdu."
entities = model.predict_entities(
text,
list(model.label_names),
threshold=0.50,
)
print(entities)
Inputs are limited to 256 BERT subword tokens and candidate spans to 24 word units. Longer inputs must be chunked by the caller. Inference returns non-overlapping spans.
dbmdz/bert-base-turkish-casedb6e1de16c983e0f2c70664591ea3f22810072608No customer data or downloaded research documents were used. Training combined:
hushmark-tr-289m;The union contains 228,592 unique records with zero cross-source ID and normalized-content overlap. Epoch sampling used a predeclared 70% legacy / 30% new replay ratio. The new dataset is Apache-2.0 for project-generated outputs.
The full run used one NVIDIA A100-SXM4-80GB, BF16, batch size 32, seed 20260809,
encoder learning rate 1e-5, head learning rate 5e-5, 500 warm-up steps, and early
stopping. The best checkpoint was selected at step 4,000; training stopped at step 8,000
after 572.599 seconds. Peak allocated GPU memory was 3,203,504,640 bytes.
Strict span F1 on the untouched locked synthetic suites:
| Suite | BERTurk candidate | hushmark-tr-289m |
|---|---|---|
| Legacy 12-type NER macro F1 | 1.000000 | 0.994124 |
| New PERSON/ADDRESS/DOB macro F1 | 0.975286 | 0.536787 |
| New micro F1 | 0.986301 | 0.617954 |
| Empty-gold false-positive spans | 37 | 545 |
On the new suite, candidate per-type strict F1 was PERSON=1.0, ADDRESS=1.0, and
DOB=0.925859.
The recorded formal adoption verdict is false: the legacy policy required an absolute
+0.05 macro-F1 improvement, while the incumbent already scored 0.994124. This is a
policy-limit result rather than a measured regression; no threshold or hyperparameter was
changed after opening either locked set. See EVALUATION.json for machine-readable detail.
Exact artifact hashes are recorded in SHA256SUMS, MODEL_RELEASE.json, and
training_manifest.json. The principal weights are:
encoder/model.safetensors: a2426b32e90cc97909bcdb1e8518d0bfd5fbf6e7d4e9401565a389fb23807d2fspan_head.safetensors: 49606104c71b9f10bac64086e43e6c528dd50566a18131bdd419ed7634e32af6The deterministic source-only training package is included as
hushmark-berturk-training-source-0.1.2.tar.gz; it contains no training rows.
This Hushmark release is distributed under Apache-2.0. The pinned BERTurk base model is
MIT licensed. See LICENSE, NOTICE, and THIRD_PARTY_NOTICES.md.