kraken-bern-schlussredaktion-v1
Handwritten-text-recognition model trained with training-atr-models. These are the weights of the best validation checkpoint of the run below — not its last epoch.
Evaluation
| metric | value |
|---|---|
| split CER | 16.67 % |
| split WER | 41.98 % |
| samples scored | — |
| characters scored | 13213 |
| character errors | 2202 |
Measured on this run's own held-out validation split (page-level and seeded, so no page contributes lines to both sides). It is not a score on a shared benchmark and does not transfer to a different corpus.
The validation split is a seeded partition of the training projects. It measures the model on pages it has not seen, in hands it has. Expect a higher error rate on a new writer.
Training data
dh-unibe/image-text_bern-disputation-1528- Training projects:
A_V_1447_Schlussredaktion_train - Evaluation: a seeded page-level split of the training projects (
partition=0.9,seed=42)
- Training projects:
Materialized from that selection: 118 pages, 3,457 transcribed lines.
Hyperparameters
spec: '[256,64,0,1 Cr4,2,8,4,2 Cr4,2,32,1,1 Mp4,2,4,2 Cr3,3,64,1,1 Mp1,2,1,2 S1(1x0)1,3
Lbx256 Do0.5 Lbx256 Do0.5 Lbx256 Do0.5 Cr255,1,85,1,1]'
batch_size: 16
schedule: cosine
lrate: 0.0005
quit: early
epochs: 150
min_epochs: 15
lag: 10
augment: true
normalization: NFD
normalize_whitespace: true
weights_format: coreml
resize: union
freeze_backbone: null
accumulate_grad_batches: 1
pad: null
warmup: null
seed: 42
workers: 8
device: cuda:0
benchmarks: []
Provenance
| engine | kraken |
| base model | kraken-bern-hertwig-v2 — trained by DH Bern on dh-unibe/image-text_bern-disputation-1528, project A_V_1443_Hertwig_train; not published. It is itself a fine-tune of kraken-cursive_inzigkofen (see Licence) |
| training job | 20261024T202446Z-kraken-bern-schlussredaktion-v1 |
| code | evaluated with bdfe8f9d906e |
| trained | 2026-10-24T20:39:04.566466+00:00 |
| weights | kraken-bern-schlussredaktion-v1.mlmodel |
metadata.json in this repo is the record the trainer wrote, verbatim: the full request, the parsed metrics and the job id.
Energy and carbon
| energy at the cards | 0.058 kWh (58 Wh) |
| CO2e, market-based | 1 g at 20 g/kWh |
| CO2e, location-based | 7 g at 115 g/kWh (Swiss consumer mix) |
Since 2016 the university has procured electricity from 100 % renewable sources (hydro, biomass, solar), predominantly Swiss (source), which is the market-based factor. The location-based figure is what the local grid mix would have cost and is reported beside it, as the GHG Protocol asks when a market instrument is used.
This is a floor. It excludes data-centre overhead (PUE unknown; typical values 1.1–1.6 would raise it by that factor); it counts GPU draw only — CPU, memory, storage and network are not metered; it counts operation only — manufacture of the hardware is not apportioned.
Using it
pip install kraken
python -c "from huggingface_hub import hf_hub_download; print(hf_hub_download('dh-unibe/kraken-bern-schlussredaktion-v1', 'kraken-bern-schlussredaktion-v1.mlmodel'))"
kraken -i page.jpg page.txt segment -bl ocr -m <the printed path>
Notes
Bern Disputation 1528, A V 1443 (Hertwig), pages 3-60 minus the held-out test pages; fine-tune for the ruemlang pipeline as a fourth reader.
Correction, 19.11.2026. The sentence above was carried over from the request for its base model. This model
was trained on A V 1447 (Schlussredaktion), project A_V_1447_Schlussredaktion_train (118 pages,
3,457 lines), as Training data says; A V 1443 (Hertwig) is the data of its base, kraken-bern-hertwig-v2.
Licence
This repo: mit — see LICENSE. MIT covers this repository's own contribution: the
fine-tuning, the card and metadata.json.
The weights descend from third-party models released under CC BY 4.0, and that licence's attribution applies to them and to anything derived from them. Lineage, nearest first:
kraken-bern-hertwig-v2(DH Bern, not published)- Cursive HTR model related to the Augustinian canonesses in Inzigkofen (
kraken-cursive_inzigkofen), Nicole Eichenberger, CC BY 4.0 - CATMuS Medieval, Ariane Pinche, Thibault Clérice, Malamatenia Vlachou-Efstathiou et al., CC BY 4.0
Credit these models (title, creators, DOI) when you use or redistribute these weights.