/ Модель

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

Контекст
1 026 токенов
Параметры
44,3 млн
Лицензия
MIT
Архитектура
esm · dense
Базовая модель
esm2_t12_35M_UR50D
Библиотека
transformers
Опубликована
9 ноя 2026

Eleuthia-v3

Классификация текстаТекст → label3 профессии

Eleuthia-v3 классифицирует одиночные аминокислотные замены в 12 связанных с раком генах как патогенные или доброкачественные для исследовательской предварительной оценки.

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

Бенчмарки

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

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

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

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

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

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

Eleuthia-v3 — исследовательская модель классификации миссенс-вариантов в 12 генах, связанных с раком. Её разработали как проект выпускной работы в Universiti Teknologi MARA (UiTM); это дообученная модель ESM-2 с 12 слоями и примерно 44,3 млн параметров, дополненная классификационной головой на два класса: «доброкачественный» и «патогенный». Модель принимает пару текстовых сегментов: замену аминокислоты и мутантное окно белковой последовательности длиной до 500 остатков. Контекст модели — 1026 токенов.

Модель предназначена для исследований и обучения в области белковых языковых моделей, а также для предварительной оценки и ранжирования одиночных аминокислотных замен в указанных генах, чтобы определить варианты для дальнейшего изучения специалистом. В тесте README сообщает accuracy 0,8657 и AUC 0,9307, однако часть результата может объясняться закономерностями типов замен в обучающих данных. Модель не оценивалась на вариантах с неопределённой значимостью и не предназначена для клинической диагностики или принятия решений о лечении.

Модель обучена на данных вариантов и клинических меток из EMBL-EBI Proteins API с аннотациями ClinVar; последовательности белков взяты из UniProt. Ограничения включают случайное разделение данных, возможную утечку сходных вариантов между обучением и тестом, слабое представление доброкачественных примеров для некоторых генов, ограниченное окно последовательности и потенциальные ошибки меток. Лицензия — MIT.

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

  • предварительная оценка миссенс-вариантов в 12 генах, связанных с раком
  • ранжирование аминокислотных замен для дальнейшего изучения специалистом
  • исследование влияния одиночных аминокислотных замен на белки
  • обучение работе с белковыми языковыми моделями и предсказанием эффектов вариантов

Ограничения

Модель предназначена только для исследовательского использования и не подходит для клинической диагностики или решений о лечении; она проверена только на одиночных аминокислотных заменах в 12 указанных генах. Случайное разделение тестовых данных, смещение по типам замен, несбалансированные метки для некоторых генов, ошибки аннотаций и отсутствие калибровки могут снижать надёжность результатов.

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

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

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

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

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

Открыть на Hugging Face

Eleuthia-v3

Eleuthia-v3 classifies single amino acid substitutions (missense variants) in 12 cancer-related genes as pathogenic or benign. It is a fine-tuned ESM-2 35M protein language model with a two-class head.

This model was built for a Bachelor's Final Year Project at Universiti Teknologi MARA (UiTM). It is a research prototype. It is not a clinical tool.

Model details

ItemValue
Base modelfacebook/esm2_t12_35M_UR50D (12 layers, 35M parameters)
HeadClassification head on the first token, 2 outputs
Labels0 = Benign, 1 = Pathogenic
GenesTP53, BRCA1, BRCA2, EGFR, APC, PTEN, RB1, MLH1, MSH2, KRAS, PIK3CA, CDH1
Maximum input length505 tokens
AuthorMohamad Hariz Rafie bin Abd Rahim

Input format

Eleuthia-v3 reads two text segments as a pair:

<cls> K E <eos> [500 residues of the mutant protein window] <eos>
  • Segment 1: the wild-type letter and the mutant letter (here, K changed to E).
  • Segment 2: a window of up to 500 residues from the mutant protein, centred on the mutation where possible.

The model gets the exact change directly. In earlier versions the model had to find the change by itself.

Window rule

Let pos0 be the 0-based mutation index and L the protein length.

start   = max(0, min(pos0 - 250, L - 500))
wt_win  = wild_type_sequence[start : start + 500]
mut_win = wt_win with the residue at (pos0 - start) replaced by the mutant letter
  • Proteins with 500 residues or more always get a 500-residue window. Near the C-terminus the start moves left, so the mutation is not centred.
  • Proteins with fewer than 500 residues use the whole protein.

How to use

You need the wild-type protein sequence (for example from UniProt), the 1-based position, the wild-type letter and the mutant letter.

import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification

MODEL_ID = "RizFie/Eleuthia-v3"
WINDOW = 500

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForSequenceClassification.from_pretrained(MODEL_ID).eval()


def predict(wt_seq: str, position: int, wt_aa: str, mut_aa: str) -> dict:
    pos0 = position - 1
    if wt_seq[pos0] != wt_aa:
        raise ValueError("The wild-type letter does not match the sequence at this position.")

    start = max(0, min(pos0 - WINDOW // 2, len(wt_seq) - WINDOW))
    wt_win = wt_seq[start:start + WINDOW]
    i = pos0 - start
    mut_win = wt_win[:i] + mut_aa + wt_win[i + 1:]

    inputs = tokenizer(wt_aa + mut_aa, mut_win, return_tensors="pt")
    with torch.no_grad():
        probs = torch.softmax(model(**inputs).logits, dim=-1)[0]

    return {"benign": probs[0].item(), "pathogenic": probs[1].item()}

The label is pathogenic when the pathogenic probability is 0.5 or higher.

Training data

  • Source: variants and clinical labels from the EMBL-EBI Proteins API (variation endpoint), which reports ClinVar annotations. Protein sequences are from UniProt.
  • Labels: a variant is pathogenic (1) or benign (0) only when its annotations are clearly one class. Conflicting variants, variants of uncertain significance and variants with only a "likely" label are not in the data.
  • Raw data: 11,454 rows (8,230 pathogenic, 3,224 benign).
  • Cleaning:
    • Keep only rows where the wild-type and the mutant letter are both one of the 20 standard amino acids. This removes stop codons and other symbols (2,959 rows).
    • Remove repeated variants. A variant is dropped if its copies have different labels or sit on both sides of the v1 split.
    • Keep only rows where the wild-type letter matches the UniProt sequence.
  • Clean data: 8,340 rows (5,208 pathogenic, 3,132 benign).
SplitRows
Training (before oversampling)5,298
Training (after oversampling benign rows)6,612
Validation935
Test2,107 (1,318 pathogenic, 789 benign)

Oversampling was done on the training rows only, after the split. The test rows are the same as the v1 test rows that remain after cleaning, so v1 never trained on them.

The dataset is in a private repository.

Training procedure

SettingValue
Learning rate1e-5, cosine schedule
Batch size8
Maximum epochs15
Weight decay0.01
Precisionfp16
LossFocal loss (alpha 0.25, gamma 2.0)
Early stoppingPatience of 3 epochs, on the validation rows
Best-epoch metricMacro F1
Best epoch3 (checkpoint-2481)
Seed42
HardwareGoogle Colab, NVIDIA T4

Evaluation

All numbers use the same 2,107 test rows.

ModelAccuracyBalanced accuracyMacro F1MCCAUC
Eleuthia-v10.71190.71120.70210.41150.7827
Eleuthia-v20.70290.67580.67810.35720.7437
Eleuthia-v30.86570.85930.85740.71500.9307
Majority-class baseline0.6255

Control: test rows without extreme substitutions

Some substitution types are almost always one class in this dataset. An "extreme" substitution type has at least 30 training rows with at least 95% of them in one class. The substitution lookup is a baseline that scores each row with the share of pathogenic training rows for its substitution type.

ModelAccuracy (all 2,107 rows)AUC (all rows)Accuracy (1,485 rows without extreme)AUC (without extreme)
Eleuthia-v10.71190.78270.72860.7749
Eleuthia-v20.70290.74370.68960.7626
Eleuthia-v30.86570.93070.81750.8902
Substitution lookup0.79350.88050.71310.7886
Majority baseline0.62550.5104

Eleuthia-v3 is above the substitution lookup on both sets. The gap is smaller on all rows (about 7 accuracy points) than without the extreme substitutions (about 10 points). Part of the v3 result is probably the substitution pattern in the data.

Version history

VersionInputNote
v1Mutated window only (up to 1,022 residues)Did not know which residue changed. Trained and tested with stop-codon rows. Used the test rows to choose its best epoch, so its numbers can only be optimistic.
v2Wild-type window + mutant window (500 + 500)Worse than v1. A probable reason is that ESM-2 has no segment marker, so the model must match residues 500 positions apart. This is an explanation and was not tested.
v3Wild-type and mutant letters + mutant window (2 + 500)Same network, data, splits and training code as v2. Only the input changed.

The Eleuthia-v2 repository holds the pair-window model above. An earlier 150M-parameter model was first published under that name. Its files may still be in the repository history.

Intended use

  • Research and teaching on protein language models and variant effect prediction.
  • Ranking or flagging variants for further study by a qualified person.

Out-of-scope use

  • Clinical diagnosis, treatment decisions or patient reports.
  • Genes outside the 12 listed genes. The model was not tested on them.
  • Variant types other than single amino acid substitutions (insertions, deletions, stop-gain, frameshift).

Limitations

  • Substitution pattern. Some substitution types are almost always one class in the data (for example Q to K, Q to E and E to Q are almost always pathogenic). The lookup baseline alone reaches 0.794 accuracy on all test rows. The cause is not known.
  • Random split. Variants at nearby positions can be in both the training and the test rows. A test that holds out whole regions or whole genes would probably give lower numbers. This was not run for v3.
  • Window size. v3 sees 500 residues, not the whole protein, for MLH1, CDH1, RB1 and MSH2 (the four genes of 500 to 1,022 residues). The five longest genes were already cut to a window in v1.
  • Class imbalance in some genes. PTEN, KRAS and PIK3CA have very few benign examples (9, 9 and 6 in the raw data). Predictions for these genes should not be trusted.
  • Label quality. Labels come from ClinVar annotations as reported by the EMBL-EBI API. Annotation errors are in the data.
  • No evaluation on variants of uncertain significance. Those variants have no ground truth, so accuracy cannot be measured on them. Any prediction on them is unverified.
  • Not calibrated. The probability is a model score, not a clinical risk.

Citation

Abd Rahim, M. H. R. (2026). Eleuthia: Predictive Classification of Amino Acid Sequence
Mutations in High-Impact Cancer Genes Using a Transformer-Based Architecture.
Final Year Project, Universiti Teknologi MARA.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
EsmForSequenceClassification
Ревизия весов
2a4c051

0 моделей