/ Модель

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

Лицензия
MIT
Библиотека
pytorch
Опубликована
23 авг 2026

mlm-baseline-hg38

Заполнение пропусковТекст → текст3 профессии

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

69скачиваний за 30 дней0лайковвеса обновлены8 сен 2026

Бенчмарки

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

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

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

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

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

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

mlm-baseline-hg38 — маскированная языковая модель нуклеотидных последовательностей генома человека hg38, опубликованная Songlab. Она принимает закодированные последовательности ДНК и для замаскированных позиций предсказывает распределение вероятностей по нуклеотидам A, C, G и T. Модель использует сверточную нейронную сеть, обученную методом masked language modeling; архитектура устроена так, чтобы согласованно обрабатывать последовательность и её обратный комплемент.

Модель подходит для оценки того, насколько вариант последовательности неожиданен в контексте генома, и для извлечения признаков последовательности. В README указано, что это частичный чекпойнт, выпущенный примерно на половине запланированного цикла обучения до снижения learning rate; для воспроизводимых экспериментов следует закрепить ревизию. Веса опубликованы в формате safetensors, лицензия — MIT.

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

  • оценка неожиданности генетического варианта в контексте последовательности
  • предсказание замаскированного нуклеотида ДНК
  • извлечение признаков из последовательностей человеческого генома
  • сравнение контекстной правдоподобности вариантов последовательности

Ограничения

Это частичный чекпойнт обучения, выпущенный до запланированного снижения learning rate, и автор ожидает его замены завершённой версией. Модель обучена на геноме человека hg38 и предсказывает только четыре нуклеотида A, C, G и T.

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

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

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

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

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

Открыть на Hugging Face

mlm-baseline-hg38

A masked nucleotide language model for the Homo sapiens genome (hg38).

What it predicts

The model is a masked language model over DNA: it learns the distribution of each nucleotide given its surrounding sequence context. At every position it outputs a probability distribution over the four nucleotides (A, C, G, T) — what base it expects there from the context alone. It is trained on the Homo sapiens genome, and is useful for scoring how unexpected a variant is (its likelihood under the model) and as a sequence feature extractor.

Inputs and outputs

The model takes a LongTensor of shape (batch, length) that encodes DNA over a six-token alphabet: A, C, G, T, N, and a padding/mask symbol, mapped to indices 0 through 5. It returns a FloatTensor of shape (batch, length - 1548, 4): at each in-bounds position, four logits over [A, C, G, T]. A softmax over them is the predicted nucleotide distribution. Because it is a masked model, to read the prediction for a position you first replace that position's input token with the mask token (index 5).

Status

This revision is a partial run: it was released at step 93,750, roughly half of the configured cosine cycle, and the learning rate had not annealed. It is published so downstream benchmarks can run; a completed checkpoint is expected to replace it in a later revision. Pin a revision if you need reproducibility.

Training

Trained by masked language modeling: about 15% of input tokens are replaced with the mask token (index 5), and the loss is the cross-entropy between the model's per-position distribution and the true nucleotide at the masked positions. The network is reverse-complement equivariant by construction, so a sequence and its reverse complement receive consistent predictions.

How to use

from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
import importlib.util, torch

repo_id = "songlab/mlm-baseline-hg38"
model_path = hf_hub_download(repo_id=repo_id, filename="model.py")
weights_path = hf_hub_download(repo_id=repo_id, filename="model.safetensors")
spec = importlib.util.spec_from_file_location("released_model", model_path)
module = importlib.util.module_from_spec(spec); spec.loader.exec_module(module)

model = module.CNN()  # defaults match the released checkpoint
model.load_state_dict(load_file(weights_path))
model.eval()

# Input: a (batch, length) LongTensor over [A, C, G, T, N, pad], length >= 1549.
x = torch.randint(0, 4, (1, 2000))
with torch.no_grad():
    output = model(x)         # (1, length - 1548, 4): per-position logits
    embeddings = model.encode(x)  # (1, length - 1548, 512): per-position features

This is a masked language model: to read the prediction for a position, replace that position's input token with the mask token (index 5) before the forward pass, then take a softmax over the four output logits. The output window is centered, so input position p maps to output index p - 774:

masked = x.clone()
masked[0, 874] = 5  # mask one position
with torch.no_grad():
    probs = model(masked).softmax(-1)
    prediction = probs[0, 100]  # distribution over [A, C, G, T] at the masked position

Outputs cover only positions whose full 1549 bp context is in bounds. encode returns the per-position features (use it for embeddings).

Files

  • model.py: a self-contained CNN class with no dependencies beyond PyTorch.
  • model.safetensors: the released weights (~1.06 GB).
  • config.json: architecture hyperparameters, tokenization, and training metadata.

License

MIT

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

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

GPU в ailist

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

Нельзя запустить

Архитектура ? неизвестна transformers в образе рантайма.

Ревизия весов
82ed0a5

0 моделей