/ Модель

Характеристики

Контекст
131 072 токена
Параметры
7,6 млрд
Размер весов
16,4 ГБ
Лицензия
Llama 3.1
Архитектура
llama · dense
Базовая модель
Llama-Krikri-8B-Instruct-v1.5
Опубликована
21 окт 2026

Llama-Leonida

Генерация текстаТекст → текст3 профессии

Leonida — дообученная модель для двустороннего перевода между современным греческим и цаконским языком.

70скачиваний за 30 дней0лайковвеса обновлены9 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Leonida — модель перевода Tsakonian Digital project, предназначенная для перевода в обоих направлениях между современным греческим и цаконским языком. Цаконский — находящийся под угрозой исчезновения эллинский язык Пелопоннеса. Модель построена на ilsp/Llama-Krikri-8B-Instruct-v1.5 и дообучена на парах предложений с помощью supervised fine-tuning и GRPO. Архитектура — плотная Llama с 7,6 млрд параметров; формат репозитория — safetensors, контекст — до 131 072 токенов.

Модель рассчитана на подготовку черновых переводов для учащихся, преподавателей и исследователей, а также на чтение цаконских текстов с греческим переводом. Цаконский текст следует подавать и получать в орфографии Костакиса с диакритическими знаками. В README приведены результаты тестирования на двух версиях бенчмарка; качество зависит от варианта языка и текста.

Основная часть обучающих данных относится к тиросскому диалекту. Модель может ошибаться в формах и диакритике, а также в роде и числе; она обучалась на отдельных предложениях, поэтому длинные тексты рекомендуется переводить по предложениям. Переводы для публикации, обучения или вывесок следует проверять у носителя языка. Лицензия — Llama 3.1 Community License (llama3.1).

Сценарии применения

  • перевод цаконских предложений на современный греческий
  • перевод греческих предложений на цаконский
  • подготовка черновиков переводов для уроков цаконского
  • чтение цаконских текстов с греческим переводом
  • создание исходной модели для исследований малоресурсных греческих языков

Ограничения

Основная часть данных относится к тиросскому диалекту; модель может ошибаться в цаконских формах и диакритике, а также в роде и числе. Она обучалась на отдельных предложениях, поэтому длинные тексты нужно переводить по предложениям, а важные переводы проверять у носителя.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Leonida: Greek ⇄ Tsakonian translator (merged 16-bit)

Leonida translates between Modern Greek and Tsakonian, in both directions, with a single model. Tsakonian is a highly endangered Hellenic language of the Peloponnese, which descends largely from ancient Laconian Doric. Its name honours Leonidas, the Spartan king, a nod to that Laconian ancestry; the logo shows a Spartan shield with the lambda of Lacedaemon.

Leonida is part of the Tsakonian Digital project and was trained mainly on Panos Marneris' website, tsakonika.online alongside with other open sources.

  • Scores: chrF++ 83.8 / BLEU 71.3 / TER 16.7 on Bench V2.2; chrF++ 71.4 / BLEU 53.3 / TER 29.4 on Bench V3.
  • Two training stages: supervised fine-tuning on 19,004 sentence pairs, then reinforcement learning (GRPO) on 2,132 further pairs that the first stage never saw.
  • Small enough to run locally: 8 billion parameters; the Q4_K_M file runs on a laptop.
RepositoryContents
jgchaparro/Llama-LeonidaMerged 16-bit model (transformers)
jgchaparro/Llama-Leonida-GGUFGGUF Q8_0, Q5_K_M, Q4_K_M for llama.cpp, Ollama and LM Studio
jgchaparro/Llama-Leonida-loraLoRA adapter for ilsp/Llama-Krikri-8B-Instruct-v1.5

Usage

Tsakonian is written in the Kostakis orthography, with combining diacritics: τσ̑, σ̌, κ̔, ν̇, λ̣, ν̂, α̈. The model reads and writes this spelling; text in other spellings translates less well.

Use the model's Llama 3.1 chat template with this prompt. The model replies with the translation only.

  • System: You are a precise translation assistant. Output only the translation, nothing else.
  • User: Translate from {origin} to {target}:\n\n{source}, where {origin} and {target} are Greek or Tsakonian.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "jgchaparro/Llama-Leonida"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")
messages = [
    {"role": "system", "content": "You are a precise translation assistant. Output only the translation, nothing else."},
    {"role": "user", "content": "Translate from Greek to Tsakonian:\n\nΚαλημέρα, τι κάνεις;"},
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False) + "<|start_header_id|>assistant<|end_header_id|>\n\n"
inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).to(model.device)
out = model.generate(**inputs, max_new_tokens=256, do_sample=False)
print(tokenizer.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Training data

Leonida was trained on 19,004 Tsakonian–Greek sentence pairs, each used in both directions (38,008 training examples). All of them come from openly available sources, mainly the website of Panos Marneris, tsakonika.online. The pairs were cleaned and reviewed again before this model was trained.

The reinforcement-learning stage used 2,132 further pairs (4,045 prompts, both directions) from the same sources, held out from the first stage. The validation pairs and the benchmark pairs belong to separate splits and are used in neither stage.

The Tsakonian side of every pair is written in the Kostakis orthography; texts written in other orthographies were converted and reviewed.

How it was trained

Stage 1: supervised fine-tuning.

  • Base model: ilsp/Llama-Krikri-8B-Instruct-v1.5, fine-tuned with Unsloth: bf16 LoRA, LoRA rank 64, alpha 64, on the attention and MLP layers. The base model is Llama-Krikri, Llama 3.1 8B adapted to Greek by ILSP (Athena Research Center) with additional Greek training and an extended Greek vocabulary.
  • Optimisation: learning rate 0.0002 with cosine decay and 3 % warmup, AdamW 8-bit, effective batch 16, maximum sequence length 768 tokens, up to 3 epochs (7,128 steps). The loss covers the model's reply only.
  • Checkpoint selection: every 750 steps, the adapter translated 400 validation examples (200 held-out pairs × 2 directions, greedy) and was scored with chrF++. The best checkpoint scored validation chrF++ 80.78.

Stage 2: reinforcement learning (GRPO).

  • Method: Group Relative Policy Optimization (Dr. GRPO loss, no KL term), continuing the stage-1 adapter. For each prompt the model sampled 8 translations at temperature 0.9, and each translation was rewarded against the reference.
  • Reward: half sentence chrF++, half (1 − TER), plus a bonus for an exact match. Automatic checks on punctuation, numbers, capitals and diacritics subtract a penalty for each error the reference does not share. Empty output, a copy of the source, a translation of very different length or a truncated reply score 0.
  • Optimisation: learning rate 0.00001, 400 updates of 16 prompts.
  • Checkpoint selection: validation chrF++ every 50 updates, on the same 400 examples as stage 1. The published adapter is from update 350, validation chrF++ 81.30 (stage 1: 80.78).
UpdateValidation chrF++TERTsakonian → Greek chrF++Greek → Tsakonian chrF++
0 (stage 1)80.7820.2381.3180.29
5080.9220.2081.5680.32
10080.9520.1281.5080.44
15081.1219.9181.6780.60
20081.2319.7681.7680.74
25081.2519.7881.9180.64
30081.1619.8281.7580.61
350 (selected)81.3019.6781.7980.84
40081.1719.8481.8080.58

Evaluation

Every benchmark pair is translated in both directions with greedy decoding and scored with sacreBLEU 2.5.1: BLEU, chrF++ and TER. The 95% confidence intervals come from bootstrap resampling, and the comparisons with earlier models use a paired bootstrap on the same translations. None of the benchmark pairs is used in training or in validation. Scores are only comparable within one benchmark.

Tsakonian Digital Bench V2.2

Tsakonian Digital Bench V2.2 has 300 Tsakonian–Greek sentence pairs from the test split of the Tsakonian Digital database, mostly web texts of the same kind as the main training data. Levels: 100 easy (fewer than 7 Tsakonian words), 100 medium (7–11) and 100 hard (12 or more). Every pair was reviewed one by one for alignment, spelling and punctuation. V2.2 is V2.1 after a further review: 6 pairs corrected and 1 replaced.

The benchmark is in benchmark/tsakonian_digital_bench_v2_2.csv, with the model's translations in benchmark/predictions_v2_2.jsonl and the full scores in benchmark/metrics_v2_2.json.

Group (translations)BLEU ↑ (95% CI)chrF++ ↑ (95% CI)TER ↓ (95% CI)
All (600)71.3 (69.3–73.4)83.8 (82.6–85.0)16.7 (15.5–17.9)
Tsakonian → Greek (300)74.885.314.6
Greek → Tsakonian (300)67.982.318.7
Easy (200)70.383.316.3
Medium (200)70.382.417.7
Hard (200)71.884.416.3
Easy / Tsakonian → Greek (100)74.384.215.1
Easy / Greek → Tsakonian (100)66.582.617.4
Medium / Tsakonian → Greek (100)72.983.715.8
Medium / Greek → Tsakonian (100)67.881.119.6
Hard / Tsakonian → Greek (100)75.586.214.0
Hard / Greek → Tsakonian (100)68.282.718.6
ModelBLEU ↑chrF++ ↑TER ↓
Leonida (this model)71.383.816.7
Leonida Beta 2, the previous version69.682.917.6

Against Leonida Beta 2 on the same 600 translations (paired bootstrap, 95% intervals): chrF++ +0.81 (+0.26 to +1.45), BLEU +1.60 (+0.57 to +2.70), TER -0.85 (-1.58 to -0.21). Every interval excludes zero. Leonida has the higher sentence chrF++ on 28.8 % of the translations, Leonida Beta 2 on 22.8 %; the rest are ties.

Tsakonian Digital Bench V3

Tsakonian Digital Bench V3 has 300 new test pairs chosen for the vocabulary that Bench V2 misses: 150 sentences from books, 90 dictionary examples and 60 web texts, spread over the Southern dialects. Levels: 100 easy, 100 medium and 100 hard. No sentence also occurs in the training or validation data, even after removing case and accents. V3 is harder than V2.2, so the two sets of scores are not comparable.

Group (translations)BLEU ↑ (95% CI)chrF++ ↑ (95% CI)TER ↓ (95% CI)
All (600)53.3 (50.7–55.9)71.4 (69.8–73.0)29.4 (27.6–31.3)
Tsakonian → Greek (300)58.673.826.1
Greek → Tsakonian (300)48.169.132.5
Easy (200)51.668.831.5
Medium (200)51.170.230.3
Hard (200)54.572.628.4
Easy / Tsakonian → Greek (100)56.970.728.2
Easy / Greek → Tsakonian (100)46.467.034.7
Medium / Tsakonian → Greek (100)53.270.428.8
Medium / Greek → Tsakonian (100)49.170.031.8
Hard / Tsakonian → Greek (100)61.276.324.2
Hard / Greek → Tsakonian (100)48.069.232.4
ModelBLEU ↑chrF++ ↑TER ↓
Leonida (this model)53.371.429.4
Leonida Beta 2, the previous version50.169.935.1

Against Leonida Beta 2 on the same 600 translations (paired bootstrap, 95% intervals): chrF++ +1.47 (+0.49 to +2.65), BLEU +3.12 (+0.16 to +7.31), TER -5.70 (-14.68 to -0.87). Every interval excludes zero. Leonida has the higher sentence chrF++ on 37.3 % of the translations, Leonida Beta 2 on 27.0 %; the rest are ties.

Intended use

  • Drafting translations between Greek and Tsakonian, for learners, teachers and researchers.
  • Reading Tsakonian texts with a Greek gloss.
  • A starting point for further research on Tsakonian and other low-resource Greek varieties.

Leonida is not a substitute for a native speaker. Any text meant for publication, teaching or signage needs review by a speaker.

Limitations

  • Dialects. Most of the training text is in the Tyros dialect (Τ). Other varieties are less well covered.
  • One reference per sentence. BLEU and chrF++ count a valid paraphrase or dialect variant as an error, so the scores understate the quality of good alternative translations.
  • Tsakonian output can be wrong. The model can produce plausible but wrong forms, misplace diacritics or choose the wrong gender or number when the source does not determine it.
  • Sentence level. The model was trained on single sentences. Translate long texts sentence by sentence.

License

Built with Llama. The model is subject to the Llama 3.1 Community License and its Acceptable Use Policy.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
8925894

0 моделей