Encoder
The architecture and prompt come from soter-mini [soter-mini]
: a byte-level T5 that sees one prompt per word. We keep its size (3 layers, d_model 128, 4 heads, ≈0.64 M parameters) but train from scratch on text of the target language (the reported experiments use Latin); the released weights are Ancient Greek only.
<spaced form> <sep> <≤8 words left> <tgt> form </tgt> <≤8 words right>
- Bytes map to ids
b + 3; the context window and byte limit (384) are configurable, dropping outer words first. - Normalisation must equal the teacher’s (NFD) so byte spans align.
- The module returns a word vector (mean of the word’s byte states) and per-byte states: the target word’s only (
outs_scope: target) or the whole prompt (prompt, for the T5 decoder).
model:
model_config:
source_encoder: soter
use_sentence_encoder: false
soter_config: {soter_init: checkpoint, checkpoint: models/distill_joint_l8/student.pt, freeze: true, outs_scope: prompt}
Cost: every word is a separate ≈100-byte prompt, which is the main reason it is slow on CPU.