/ Модель

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

Контекст
8 192 токена
Параметры
3,3 млрд
Размер весов
6,7 ГБ
Лицензия
CC BY-NC 4.0
Архитектура
cohere2 · dense
Базовая модель
tiny-aya-earth
Библиотека
transformers
Опубликована
6 ноя 2026

tiny-aya-earth-amharic-maternal-health

Генерация текстаТекст → текст3 профессии
351скачиваний за 30 дней0лайковвеса обновлены6 ноя 2026

Описание модели

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

Дообученная модель Cohere Labs для диалоговых ответов на амхарском языке по вопросам материнского, сексуального и репродуктивного здоровья.

Это дообученная модель CohereLabs/tiny-aya-earth от Cohere Labs, адаптированная 5LeaderW для ответов на вопросы о здоровье матери, сексуальном и репродуктивном здоровье на амхарском языке. Модель создана для диалоговых сценариев в рамках хакатона Lexsi Labs; её веса объединяют несколько LoRA-адаптеров после этапов SFT и DPO. Архитектура Cohere2, около 3,3 млрд параметров, контекст до 8192 токенов; модель принимает текст и генерирует текст.

Модель может помогать формулировать ответы на вопросы о беременности, родах и репродуктивном здоровье. Оценка на тестах ограничена: качество ответов не подтверждено врачами, а проверки безопасности выявили пропуски срочных направлений к врачу, избыточные направления для рутинных вопросов и склонность некоторых ответов достигать лимита длины с повторениями. Это исследовательский прототип, не медицинское устройство и не источник медицинских рекомендаций. Использование разрешено только в некоммерческих целях по CC BY-NC 4.0 и лицензии Tiny Aya.

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

  • ответы на вопросы о здоровье во время беременности на амхарском языке
  • ответы на вопросы о послеродовом здоровье на амхарском языке
  • справочные ответы по сексуальному и репродуктивному здоровью
  • информирование о признаках опасных осложнений беременности

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

Tiny Aya Earth, Amharic maternal and reproductive health Q&A (v4c DPO, merged)

Research prototype. Not medical advice. Non-commercial use only (CC BY-NC 4.0). Answers can be wrong. Anyone with danger signs in pregnancy (heavy bleeding, severe headache or blurred vision, convulsions, high fever, reduced fetal movement, waters breaking early, severe abdominal pain) must go to a health facility immediately.

By downloading or using this model you agree to use it for non-commercial purposes only (CC BY-NC 4.0 and the Tiny Aya licence) and accept that it does not give medical advice.

This is CohereLabs/tiny-aya-earth (3.35B parameters, Cohere2 architecture) fine-tuned to answer maternal, sexual and reproductive health questions in Amharic. It was built for the Lexsi Labs hackathon (Track 1) with the full Lexsi tool chain: CuratorKIT (data curation) -> AlignTune (SFT, then DPO) -> AuditKIT (evaluation).

The weights in this repo are a single fp16 model: the official base with four LoRA adapters merged in order (run-2 curated SFT -> v3 SFT -> v4c DPO; each was trained on the previous merged model). The individual adapters are in 5LeaderW/tiny-aya-earth-amharic-maternal-health-adapters.

Use

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
repo = "5LeaderW/tiny-aya-earth-amharic-maternal-health"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.float16, device_map="auto")
msgs = [{"role": "user", "content": "ነፍሰ ጡር ሴት ምን አይነት ምግብ መመገብ አለባት?"}]
enc = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt", return_dict=True).to(model.device)
out = model.generate(**enc, max_new_tokens=256, do_sample=False)
print(tok.decode(out[0, enc["input_ids"].shape[1]:], skip_special_tokens=True))

All reported numbers use greedy decoding, max 256 new tokens, the stock chat template and no extra system prompt. Tested with transformers 5.15.0 and peft 0.21 on a Tesla T4 (fp16; T4 has no bf16, so the merge is fp16 although the base ships in bf16).

Method chain

StageToolDataResult
Dataset buildscripts5 Amharic sources (below), cleaned, deduplicated, seed 42train 7,109 / dev 374 / test 550
Run 2 curationCuratorKIT (TextCleaner, Exact + MinHash dedup, SchemaGate, project gates on BaseGate)train 7,109 -> 4,806dropped broken text, English-heavy, off-topic, Q/A mismatch rows; referral line on danger-sign answers
Run 2 SFT ("B")AlignTune 0.1.30 (TRL backend), LoRA r16 / alpha 32, lr 1e-4, 1 epochcurated 4,806 rowsadapter run2_B_sft
Run 3 curation (v3)CuratorKIT + LLM quality gate (Gemma 4 31B, fluency >= 4 and correctness >= 4), referral rewrites checked by DeepSeek V4 Flash, 123 synthetic danger-sign questions4,806 -> 2,691 rows, 803 DPO pairs
v3 SFTAlignTune SFT from the merged run-2 model2,691 rowsadapter v3_sft
v3 DPOAlignTune DPO (beta 0.1, lr 5e-5, 1 epoch, low-memory)763 + 40 pairsover-referral: a generic facility line on 86.5% of non-urgent answers
v4b DPOAlignTune DPO from the merged v3 SFT model915 + 53 pairs (urgent pairs, routine counter-pairs, fluency pairs, anti-repetition pairs)false urgency: a "go now" line on 19.2% of factual answers
v4c DPO (this model)AlignTune DPO from the merged v3 SFT model, same settings1,086 + 62 pairs (v4b pairs - 90 urgent anti-repetition pairs + 270 false-urgency counter-pairs)false urgency 1.3%, urgent probe referral 96.3%
EvaluationAuditKIT per-sample metrics + sacrebleu chrF++ + regex referral audit + LLM judge550 test rows, 82-question held-out urgent probe, Belebele, AfriMMLUtable below

DPO settings (v3, v4b, v4c): sigmoid loss, beta 0.1, lr 5e-5, 1 epoch, batch 1 x grad-accum 16, gradient checkpointing, max length 768, reference log-probs precomputed once, fp16 base + fp32 LoRA r16 on all attention and MLP projections, model split over two T4s. v4c: 1,086 train pairs, dev reward accuracy 0.97, margin 4.85, eval loss 0.125, 0 non-finite values, 23 min of training.

Compute: free Kaggle T4 x2 only (private kernels). No paid GPU, no HF Jobs.

Results

Test = 550 held-out rows (400 AmHQA + 150 Walelign SRH, never trained on). Belebele amh_Ethi (900) and AfriMMLU amh (500) are zero-shot multiple choice (argmax over A-D). Referral rates use a regex audit (referral_lib.py); test questions were labelled urgent / routine / none by an LLM triage prompt (1 / 102 / 447). Because the test set has only one urgent question, urgent behaviour is measured on a held-out probe of 82 new Amharic danger-sign questions.

MetricBaselineRun-2 B SFTv3 SFTv3 DPOv4b DPOv4c DPO
chrF++ test (550)10.39.19.810.712.312.3
chrF++ AmHQA (400)9.28.38.99.511.511.4
chrF++ Walelign SRH (150)17.815.116.619.018.419.0
AuditKIT chrf, per-sample mean18.818.819.921.320.122.7
Belebele amh_Ethi acc %61.763.063.462.862.963.6
AfriMMLU amh acc %46.444.244.444.043.844.4
Hit 256-token cap %98.544.735.314.034.529.5
Answers with Markdown %96.00.00.00.00.20.0
Referral line %, non-urgent test (549)0.70.012.886.523.05.8
Urgent "go now" line %, factual test (447)0.40.00.01.319.21.3
Referral line %, held-out urgent probe (82)n/an/a67.1100.098.896.3
Urgent-worded referral %, urgent probe (82)n/an/a51.286.698.892.7

LLM judge (DeepSeek-V4.1-Flash via HF Inference Providers, same fixed 100-row sample, blind shuffled labels; correctness / Amharic fluency, 1-5). Each row is its own judge pass, so compare systems only within a row:

Judge passBaselineRun-2 Bv3 SFTv3 DPOv4b DPOv4c DPO
Five-way (run 3)2.56 / 3.802.38 / 3.372.58 / 3.66
v3 SFT vs v3 DPO2.65 / 3.683.29 / 4.27
v3 DPO vs v4b3.18 / 4.343.12 / 4.47
v4b vs v4c3.13 / 4.503.01 / 4.43
v4b vs v4c, labels reversed3.13 / 4.503.00 / 4.39

Why v4c over v4b: v4c removes the false "go to a health facility now" lines (19.2% -> 1.3% of factual answers) and keeps the benchmarks and the urgent probe, at a judge correctness cost of 0.12-0.13 versus v4b (consistent in both label orders). The author accepted that trade to avoid false alarms.

Merge check

The single fp16 model was produced on free Kaggle T4 x2 (private kernel amh-tinyaya-merge-v4c, 6 min) by merging the adapters in order with PEFT merge_and_unload (merge_adapter.py; adapter SHA-256s in merge_check/stack.json). On the first 16 test rows (one batch, greedy, 256 new tokens) the merged model gives 16/16 identical answers to the way the v4c evaluation loaded the model (merged v3 SFT model + v4c adapter). Against the stored v4c evaluation predictions it matches 13/16 exactly (mean chrF 97.7); the 3 differing answers diverge only after 311-391 characters, and the adapter path shows the very same 3 differences, so they come from batch padding (the original run used length-sorted batches over all 550 rows), not from the merge. Details: merge_check/merge_check.md.

Training data

SourceLicenceUsed for
Walelign/Amharic_SRH_DatasetCC BY-NC 4.0train + 150 test rows
ImhotepSystems/AfriHealth-QA (Amharic rows)CC BY 4.0train
AmHQA, Bogale et al. 2026, Mendeley Data, doi:10.17632/8cks7m5f8s.1CC BY 4.0train + 400 test rows (self-made seeded split)
danilior/amharic_maternal_healthno licence statedtrain (59 v3 SFT rows, 100 run-2 rows, and DPO pairs built from them); removed from the published datasets
EthioNLP/Amharic_Instruction_dataset (Walia-LLM, Azime et al. 2024)no licence stated on the cardtrain (general Amharic slice: 653 run-2 rows, 312 v3 rows); removed from the published datasets
Synthetic danger-sign questions and referral rewritesgenerated with Gemma 4 31B, checked by DeepSeek V4 Flashtrain

Training-data licence disclosure. This model was trained on the full data above, including the two sources that state no licence (danilior and EthioNLP). On 2026-11-06 all of their rows, and the DPO pairs built from them, were removed from the published dataset repos for licence reasons. The model was not retrained, so its weights still reflect that data. If you are a rights holder of either source and object, please open a discussion on this repo.

Curated data (licence-cleaned), DPO pairs and all evaluation logs: 5LeaderW/amharic-maternal-health-sft-curated-v3, 5LeaderW/amharic-maternal-health-dpo-pairs, 5LeaderW/amharic-maternal-health-aya-eval-logs.

Limitations

  • Not a medical device. It can state wrong facts confidently. Judge correctness is about 3 out of 5.
  • Judge noise. The same judge on the same rows gave v3 DPO 3.28 / 4.31 in one pass and 3.18 / 4.34 in another, so differences of about 0.1 are within noise. The judge is an LLM, not a clinician; no human medical review was done.
  • Machine-translated references. AmHQA (400 of 550 test rows) and much of Walelign SRH read as translations of English consumer-health QA. chrF++ against them rewards literal, translated phrasing and is low for every system.
  • Test set is mostly general health. Only the 150 Walelign rows are in-domain SRH; 88 rows are maternal by keyword. The intended maternal benchmark (HanaMekonen) was not available.
  • Residual over-referral. 5.8% of non-urgent answers (13.7% of routine ones) still end in a referral line. The judge's "safe referral when needed" rate fell from 76.9% (v4b) to 55.1% (v4c): on some routine questions the judge wanted a referral that v4c leaves out.
  • Urgent recall is not perfect. 3 of 82 held-out danger-sign answers have no referral line, and 7.3% lack urgent wording.
  • Synthetic danger-sign data. The corpus had few real danger-sign questions, so 123 synthetic Amharic danger-sign questions (LLM-generated, LLM-checked) were added; the 82-question urgent probe was made the same way. Both are LLM text, not real patient questions.
  • Synthetic referral edits. DPO pairs were built by adding or removing referral sentences (rewrites by Gemma 4 31B, and regex-built pairs that append boilerplate or "go now" lines mined from earlier model outputs). The model learned these patterns, not clinical triage.
  • Length. 29.5% of answers hit the 256-token cap (repetition loops remain).
  • Licences. Two training sources (danilior, EthioNLP) state no licence. The model was trained on them; their rows were removed from the published datasets (see Training data).

Licence

CC BY-NC 4.0, non-commercial use only, inherited from CohereLabs/tiny-aya-earth (Cohere Labs CC-BY-NC licence; users must also follow Cohere Labs' Acceptable Use Policy). The training data is also non-commercial (it includes CC BY-NC 4.0 data); the training run also used two sources with no stated licence, which are not redistributed (see Training data). No other licence is granted.

Citation and attribution

Base model: Cohere Labs, Tiny Aya Earth. Data: Walelign Amharic SRH dataset; AfriHealth-QA (HASH Consortium, Zindi/ITU challenge); Bogale, Tegegne, Abate, Belay (2026) AmHQA, Mendeley Data V1, doi:10.17632/8cks7m5f8s.1; danilior/amharic_maternal_health; EthioNLP Amharic Instruction dataset (Azime et al. 2024, arXiv:2402.08015). Benchmarks: facebook/belebele, masakhane/afrimmlu. Tools: Lexsi Labs CuratorKIT, AlignTune 0.1.30, AuditKIT 1.1.3.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей