Downloads · 30 days
77
23% of all-time downloads
Urdatorn/KainoBERT-sphragis
KainoBERT-sphragis is a fill-mask model from Urdatorn. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as other.
KainoBERT is a ModernBERT-base masked language model for Ancient Greek, trained from random initialization on the second derivative of the Urdatorn/AncientGreek-no-sphragis corpus (revision 73f02698199c404d85acdc875b0…
Downloads · 30 days
77
23% of all-time downloads
All-time downloads
331
Public
Parameters
136M
545 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors544 MB · 99%
From the Hugging Face model README
KainoBERT is a ModernBERT-base masked language model for Ancient Greek,
trained from random initialization on the second derivative of the
Urdatorn/AncientGreek-no-sphragis
corpus (revision 73f02698199c404d85acdc875b0f73d0741caa10). It is the
encoder of the third edition of the
Sphragis leaderboard:
every work, passage and line of the Sphragis and Sphragis-Metre benchmarks
was removed from its pretraining corpus, so that its authorship scores cannot
come from having read the test sentences during pretraining.
This repository first held a KainoBERT pretrained on a corpus from which only the exact lines of the benchmark had been removed. That model was withdrawn on 2026-09-24 and its weights deleted. A masked-token memorisation probe (masked-token accuracy on the benchmark's test sentences against held-back corpus text the model saw and text it did not) places that model's accuracy on the test sentences at its seen level: it had read them in other editions of the same works.
The present KainoBERT is pretrained on a corpus built to make that impossible:
A rescan of the finished corpus finds zero benchmark windows and zero matching lines. The same probe run on this model places its accuracy on the test sentences below its unseen level (0.329 against 0.388 unseen and 0.380 seen), where the withdrawn model sat at 0.460 against 0.434 unseen and 0.463 seen.
The price of the cleaning is a weaker language model: the corpus lost the benchmark authors' works wholesale, and this model reaches a validation loss of 2.38 (perplexity 10.8) where the withdrawn one reached 2.19. On the leaderboard its rows sat three to four macro-F1 points under the withdrawn model's on the in-work sentence track and within a few points on the work-held-out tracks: the memorised text was worth a few points, not the ranking.
All text is lowercased and depunctuated. 80% of records retain polytonic
diacritics; a deterministic 20% are transformed with grc_utils.only_bases
while preserving word boundaries. A fresh 32,768-token byte-level BPE
vocabulary was trained on the cleaned corpus.
answerdotai/ModernBERT-baseFull provenance, hyperparameters and the loss history of the second phase
are in training_metrics.json. The training code is
Urdatorn/sphragis_models
(slurm/train_kainobert_v2.slurm, slurm/continue_kainobert_v2.slurm,
sphragis_models/work_window_excluded_corpus.py).
The corpus is a mixed-licence compilation. Consult each source record's
license field before redistribution or downstream use.
The exclusion removes benchmark works, six-word windows of benchmark units and exact lines. It cannot rule out paraphrases, quotations shorter than six words, or scholia and commentaries that embed benchmark text in other words. It also removed the benchmark authors' works wholesale, so the model has read less of exactly the authors the benchmark asks about.