BiXL-Kron (stefan-it/zeitunks-lm-v1), a bidirectional KronLSTM encoder pretrained on
historical German newspapers, fine-tuned for named entity recognition on HIPE-2020 (German).
Attention-free and without positional embeddings; the fine-tuning head is a LayerNorm and a linear
classifier on the first piece of every word.
NoSpaceAfter tokens kept as in the corpus)loc, org, pers, prod, time (IOB2 tagging, 11 labels including O)| split | sentences | tokens |
|---|---|---|
| train | 3,472 | 82,435 |
| dev | 1,202 | 30,938 |
| test | 1,217 | 29,727 |
| base model | stefan-it/zeitunks-lm-v1 |
| task head | LayerNorm → dropout 0.1 → linear, on the first piece of each word (pooling: first) |
| optimiser | AdamW (β = 0.9 / 0.999, ε = 1e-8), weight decay 0.0 |
| learning rate | 2e-5, linear warmup over the first 10 % of the steps, then linear decay to 0 |
| batch size | 16 sentences |
| epochs | 10 (model selection: best dev F1, here epoch 8) |
| gradient clipping | 1.0 |
| encoder dropout | 0.1 |
| max length | 512 pieces per chunk (longer sentences are split and re-joined) |
| precision | bf16 autocast |
| seed | 4 |
finetuning/finetune_ner.py in the BiXL repository)Span-level micro F1 (IOB2) on the official splits:
| dev F1 | test F1 | |
|---|---|---|
| this checkpoint | 83.42 | 79.06 (P 78.04 / R 80.10) |
| mean ± std over 10 seeds at this learning rate | 82.63 ± 0.50 | 78.71 ± 0.74 |
Mean ± standard deviation (population value) of the span-level F1 over 10 seeds per learning rate; the selected rate is in bold:
| learning rate | dev F1 | test F1 |
|---|---|---|
| 5e-6 | 81.63 ± 0.38 | 77.23 ± 0.78 |
| 1e-5 | 82.57 ± 0.47 | 77.97 ± 0.61 |
| 2e-5 | 82.63 ± 0.50 | 78.71 ± 0.74 |
| 3e-5 | 81.63 ± 0.48 | 77.78 ± 0.82 |
| 5e-5 | 79.98 ± 0.58 | 76.76 ± 1.04 |
| 1e-4 | 74.60 ± 1.13 | 72.06 ± 0.80 |
| 2e-4 | 63.39 ± 1.09 | 62.73 ± 1.18 |
| 4e-4 | 28.01 ± 11.25 | 27.84 ± 11.38 |
pip install torch transformers 'flash-linear-attention @ git+https://github.com/NX-AI/KronLSTM.git@3d800c9a153a88ee9624fe6acf7f39a58017a17e'
from transformers import AutoModelForTokenClassification, AutoTokenizer, pipeline
name = "stefan-it/zeitunks-lm-v1-ner-hipe2020-de"
tokenizer = AutoTokenizer.from_pretrained(name)
model = AutoModelForTokenClassification.from_pretrained(name, trust_remote_code=True)
nlp = pipeline("token-classification", model=model, tokenizer=tokenizer, aggregation_strategy="first")
sentence = "Hentzi war der kaiserliche General, der im Jahre 1849 die Festung Ofen gegen die Revolutionstruppen Kossuths unter deren Führer Görgey bis zum letzten Blutstropfen verteidigte."
for entity in nlp(sentence):
print(f"{entity['entity_group']:<10} {entity['score']:.3f} {sentence[entity['start']:entity['end']]}")
Output (a sentence from the HIPE-2020 (German) training split):
pers 0.999 Hentzi
time 0.990 1849
loc 0.999 Festung Ofen
pers 0.998 Kossuths
pers 0.998 Führer Görgey
aggregation_strategy="first" reproduces the training setup (one label per word from its first piece)flash-linear-attention (import name fla): Triton on CUDA, a reference implementation on CPU; xlstm is not neededApache 2.0
The packaging script and this card were generated by Claude Fable 5.1 (claude-fable-5-1) and Claude Fable 5.2 (claude-fable-5-2); the fine-tuning recipe, the numbers and the dataset choice are the author's. See the base model card for the full provenance of the encoder.
stefan-it/zeitunks-lm-v1