/ Модель

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

Контекст
2 050 токенов
Параметры
52,4 млн
Лицензия
CC BY-NC-SA 4.0
Архитектура
esm · dense
Библиотека
transformers
Опубликована
21 сен 2026

nucleotide-transformer-v2-50m-multi-species-finetuned-human-enhancers-cohn

Заполнение пропусковТекст → текст3 профессии
19скачиваний за 30 дней0лайковвеса обновлены21 сен 2026

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

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

Модель классифицирует последовательности ДНК человека как энхансеры или неэнхансеры для исследовательских задач геномики.

Это бинарный классификатор последовательностей ДНК, созданный Stephaniesamm дообучением модели InstaDeepAI nucleotide-transformer-v2-50m-multi-species на наборе Genomic Benchmarks Cohn для выявления человеческих энхансеров. Модель относит последовательность к классу энхансеров или к отрицательному классу. Она содержит 52,4 млн параметров, использует архитектуру ESM для классификации последовательностей и принимает контекст до 2050 токенов. В описанном эксперименте использовались фрагменты длиной 500 пар оснований, разбитые на неперекрывающиеся 6-меры.

На отложенной тестовой выборке Cohn указаны accuracy 0,7311 и weighted F1 0,7301. Модель подходит для исследовательской и учебной классификации человеческих геномных последовательностей, но проверена только на одном разбиении и одном seed; перенос на другие геномы, длины последовательностей, анализы и определения энхансеров не установлен. Предсказание само по себе не подтверждает биологическую функцию в конкретном типе клеток или контексте, поэтому модель не предназначена для клинического и другого высокорискового применения. Лицензия — CC BY-NC-SA 4.0; для загрузки требуется trust_remote_code=True.

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

  • Поиск потенциальных энхансеров в последовательностях ДНК человека
  • Бинарная классификация геномных фрагментов по набору Cohn
  • Сравнение последовательностей энхансеров и неэнхансеров в учебных проектах

Ограничения

Оценена только на одном разбиении и одном seed набора Cohn; обобщение на другие геномы, длины последовательностей, анализы и определения энхансеров не установлено. Предсказание не подтверждает функцию в конкретном клеточном контексте, модель не предназначена для клинических или иных высокорисковых решений.

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Nucleotide Transformer v2 50M — Human Enhancer Classifier

Binary DNA-sequence classifier fine-tuned from InstaDeepAI/nucleotide-transformer-v2-50m-multi-species on the Genomic Benchmarks Cohn human-enhancer dataset. Class 0 is negative/non-enhancer and class 1 is positive/enhancer.

Training

  • Dataset: katarinagresova/Genomic_Benchmarks_human_enhancers_cohn
  • Splits: 18,758 train, 2,085 validation, and 6,948 held-out test sequences
  • Input: 500 base pairs tokenized into 86 tokens using non-overlapping 6-mers
  • Learning rate: 2e-5
  • Batch size: 32 with 2 gradient-accumulation steps (effective batch size 64 on one GPU)
  • Selection: weighted validation F1, evaluated after every epoch
  • Early stopping: patience 3; training stopped after epoch 4
  • Seed: 42

The best validation checkpoint was epoch 1 and was restored before test evaluation.

Results

Results on the held-out test split using the checkpoint selected by validation F1:

MetricValue
Accuracy0.7311
Weighted F10.7301

Usage

This repository contains custom model code and therefore requires trust_remote_code=True.

import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer

repo_id = (
    "stephaniesamm/"
    "nucleotide-transformer-v2-50m-multi-species-finetuned-human-enhancers-cohn"
)

# Load the DNA tokenizer and fine-tuned classifier.
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForSequenceClassification.from_pretrained(
    repo_id,
    trust_remote_code=True,
)
# Use evaluation mode for prediction rather than training.
model.eval()

# The model was fine-tuned on 500-base-pair sequences.
sequence = "ACGT" * 125

# Convert the DNA sequence into the model's token IDs and attention mask.
inputs = tokenizer(
    sequence,
    return_tensors="pt",
    padding="max_length",
    truncation=True,
    max_length=86,
)

# Run inference without calculating training gradients, then convert the two
# raw class scores (logits) into scores that sum to 1.
with torch.no_grad():
    class_scores = torch.softmax(model(**inputs).logits, dim=-1)[0]

# Select the class with the larger score and map its ID to a readable label.
label_names = {0: "negative/non-enhancer", 1: "positive/enhancer"}
predicted_id = int(class_scores.argmax())
print(label_names[predicted_id], float(class_scores[predicted_id]))

Limitations

  • Intended for research and education, not clinical or other high-stakes use.
  • Evaluated only on one split and seed from the Cohn benchmark.
  • Generalization to other genomes, sequence lengths, assays, or enhancer definitions has not been established.
  • A prediction does not establish biological function in a particular cell type or context.

Reproduction and references

The repository includes train.py and pinned dependencies in requirements.txt. Install them with:

pip install -r requirements.txt

PyTorch builds are platform- and CUDA-specific. If the pinned PyTorch package is not compatible with your system, install the appropriate build using the official PyTorch installation guide before installing the remaining dependencies.

See the publications for the Nucleotide Transformer and Genomic Benchmarks.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей