This model was trained by Spyridon Mavromatis at the Institute for Language and Speech Processing (ILSP), "Athena" RC, and the National and Kapodistrian University of Athens (NKUA) as part of an M.Sc. thesis.
-
Base Model: facebook/m2m100_1.2B
-
Method: Full Fine-Tuning
-
Vocabulary: Expanded with 122 Polytonic Greek characters.
-
Training Data: ~130k sentence pairs from the AG-MG Corpus.
1
2import torch
3
4from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
5
6model_id = "ilsp/m2m100-1.2B-ag-mg-full-ft"
7
8# 1. Load Tokenizer & Model
9
10tokenizer = AutoTokenizer.from_pretrained(model_id, src_lang="el")
11
12model = AutoModelForSeq2SeqLM.from_pretrained(model_id, device_map="auto")
13
14# 2. Inference
15
16text = "Ὦ ξεῖν', ἀγγέλλειν Λακεδαιμονίοις ὅτι τῇδε κείμεθα."
17
18inputs = tokenizer(text, return_tensors="pt").to(model.device)
19
20# Force target language to Modern Greek ('el')
21
22forced_bos_token_id = tokenizer.get_lang_id("el")
23
24translated_tokens = model.generate(
25
26 **inputs,
27
28 forced_bos_token_id=forced_bos_token_id,
29
30 max_length=128
31
32)
33
34print(tokenizer.batch_decode(translated_tokens, skip_special_tokens=True)[0])
Evaluated on the 2,000 sentence-pairs Test Set (Attic & Koine Hellenistic dialects).
Evaluated on the 250 sentence-pairs Stress Set (Ionic, Doric, Homeric dialects).
1@inproceedings{mavromatis-etal-2026-ancient,
2 title = {Ancient Greek to Modern Greek Machine Translation: A Novel Benchmark and Fine-Tuning Experiments on LLMs and NMT Models},
3 author = {Mavromatis, Spyridon and Sofianopoulos, Sokratis and Prokopidis, Prokopis and Giagkou, Maria},
4 booktitle = {Proceedings of the Fifteenth Language Resources and Evaluation Conference (LREC 2026)},
5 month = {May},
6 year = {2026},
7 pages = {8685--8698},
8 address = {Palma, Mallorca, Spain},
9 publisher = {European Language Resources Association (ELRA)},
10 editor = {Piperidis, Stelios and Bel, Núria and van den Heuvel, Henk and Ide, Nancy and Krek, Simon and Toral, Antonio},
11 doi = {10.63317/4cdk64dgm2w9}
12}