/ Модель

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

Лицензия
Своя лицензия
Библиотека
transformers
Опубликована
23 сен 2026

NTv3_pretrained

ЭмбеддингиТекст → embedding3 профессии

Базовая модель Nucleotide Transformer v3 для построения представлений геномной ДНК, предсказания замаскированных нуклеотидов и дообучения под геномные задачи.

302скачиваний за 30 дней16лайковвеса обновлены2 ноя 2026

Бенчмарки

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

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

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

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

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

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

NTv3 pretrained — базовая модель семейства Nucleotide Transformer v3, разработанная InstaDeep для анализа геномной ДНК. Она предназначена для получения векторных представлений последовательностей, предсказания замаскированных нуклеотидов и дообучения под прикладные геномные задачи. Модель не привязана к одному геному и предварительно обучена на широком наборе видов.

Архитектура сочетает свёрточный энкодер и декодер с трансформерным блоком в середине: энкодер уменьшает длину последовательности в 128 раз, трансформер обрабатывает дальний контекст, а декодер восстанавливает представления с разрешением один вектор на основание. В модели около 703 млн параметров. Длина входа должна быть кратна 128; алфавит включает заглавные A, C, G, T, N и специальные токены. Выходы включают вектор размерности 1024 для каждой позиции, вектор для каждого блока из 128 оснований и логиты предсказания токенов. Модель доступна в формате Safetensors и Flax; лицензия указана как other.

Модель учитывает только последовательность ДНК: её предсказания не обусловлены типом клеток, стадией развития, экспериментальными условиями или аннотациями. Она не предназначена для РНК, белков, клинической диагностики или интерпретации вариантов. Регионы низкой сложности и повторы могут обрабатываться хуже; нижний регистр не поддерживается и превращает символы в неизвестные токены, поэтому последовательность следует приводить к верхнему регистру. Для необычных синтетических последовательностей и видов, далёких от обучающих данных, результаты не валидированы.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

NTv3 pretrained

The pretrained backbone of Nucleotide Transformer v3 (NTv3): a genomic foundation model that reads DNA at single-base resolution across long context windows. Use it for sequence embeddings, for masked-token prediction, and as the starting point for your own fine-tuning.

This checkpoint is the backbone the other NTv3 capabilities are built on. The task-adapted models — functional-track prediction and gene annotation — start from these weights and resolve their modelling code from this repository.

Architecture

A U-Net around a transformer bottleneck. A convolutional tower reads the sequence and downsamples it by 128, a transformer tower carries long-range context at that reduced resolution, and a deconvolutional tower returns predictions at base resolution, with skip connections from the encoder at every scale.

The transformer uses grouped-query attention with per-head query, key and value normalisation, rotary position embeddings on a frequency schedule chosen for genomic distances, and a GeGLU feed-forward block.

Parameters703,349,146
Resolution1 bp
Input lengthany multiple of 128
Vocabulary11 tokens
Precisionfloat32

Usage

import torch
from transformers import AutoModelForMaskedLM, AutoTokenizer

repo = "InstaDeepAI/NTv3_pretrained"
model = AutoModelForMaskedLM.from_pretrained(repo, trust_remote_code=True).eval()
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)

# The input length must be a multiple of 128.
sequence = "ACGT" * 256

# add_special_tokens=False: the model reads a genomic window, so one base is one
# token and nothing is prepended.
batch = tokenizer([sequence], return_tensors="pt", add_special_tokens=False)

with torch.no_grad():
    out = model(**batch)

out.embedding.shape  # (1, 1024, 1024)  one vector per base
out.logits.shape     # (1, 1024, 11)    masked-token prediction

AutoModel works too, and outputs are reachable both as attributes (out.logits) and as keys (out["logits"]).

trust_remote_code=True is required because the modelling code ships with the repository rather than in transformers.

An attention_mask is accepted and ignored: the model derives its own mask from the pad token at the resolution of its 128 bp blocks, so a per-token mask has nowhere to apply. Pad with the pad token rather than masking.

Outputs

KeyShapeWhat it is
embedding(batch, length, 1024)Decoder output, one vector per base
logits(batch, length, 11)Masked-token prediction over the vocabulary
after_transformer_embedding(batch, length / 128, 2048)Trunk output, one vector per 128 bp block
before_transformer_embedding(batch, length / 128, 2048)Encoder output, before the transformer

Use skip_lm_head=True to skip the language-modelling head when you only need embeddings.

Input requirements

Two constraints, both of which fail quietly rather than loudly.

Length must be a multiple of 128. That is the total downsampling factor of the trunk. Pad or crop your window before calling the model.

The alphabet is uppercase. This checkpoint's vocabulary is A C G T N plus the special tokens; lowercase is not in it. Most reference assemblies are distributed soft-masked, with repeat regions in lowercase, and feeding one straight in turns nearly every base into <unk>. The model will still return numbers. Upper-case your sequence first, or use InstaDeepAI/NTv3_tracks, which reads a 16-symbol soft-masked alphabet.

Characters outside the vocabulary become <unk> and the sequence keeps its length.

Intended use

Embeddings and masked-token prediction on genomic DNA, and fine-tuning on your own task. The model was pretrained across a broad panel of species, so it is not specific to one genome.

Out of scope

Not a clinical or diagnostic tool, and not validated for variant interpretation in a medical setting. Not designed for RNA, protein, or non-genomic sequence. Predictions on sequence unlike anything in the pretraining distribution — synthetic constructs, assemblies from very distant clades — should be treated as unvalidated rather than as evidence.

Limitations

The model sees sequence only. It has no access to cell type, developmental stage, experimental condition, or any annotation, so nothing it outputs is conditioned on that context.

Masked-token prediction reflects the statistics of the training genomes. High confidence on a masked base means the surrounding sequence is predictive, not that the base is functionally important.

Accuracy varies by species and by genomic region, and is not uniform across the genome. Repetitive and low-complexity regions are harder, and this checkpoint cannot see the soft-masking that would tell it where they are.

Related models

ModelFor
NTv3_tracksFunctional-track prediction, species-conditioned, from 16 kb to 1 Mb inputs
NTv3_tracks_1mbThe same tracks from 1 Mb inputs only: the specialist behind the NTv3 paper's main results
NTv3_annot: _mammals / _plants / _insectsAb initio gene annotation, one model per clade

Licence

Released under the InstaDeep Open Model Licence. The licence restricts output as well as weights, so predictions made with this model carry the same terms. Read it before building on the model commercially.

Citation

@article{ntv3,
  title   = {A multispecies foundation model for genome function prediction, gene annotation and sequence design},
  author  = {Boshar, Sam and Evans, Benjamin and Tang, Ziqi and Adel, Yanis and Bornachot, Yohan and Sidbon, Shawn and Lorbeer, Franziska K. and Picard, Armand and Rajesh, Chandana and Seitz, Evan and Emms, David and Mendoza-Revilla, Javier and Hernandez, Ariana and Al-Ani, Fatimah and Karch, Tristan and Schiff, Yair and Lopez, Marie and Laterre, Alexandre and Beguir, Karim and Koo, Peter and Kuleshov, Volodymyr and Stark, Alexander and de Almeida, Bernardo P. and Pierrot, Thomas},
  journal = {bioRxiv},
  year    = {2026},
  doi     = {10.64898/2025.12.22.695963},
  url     = {https://www.biorxiv.org/content/10.64898/2025.12.22.695963}
}

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Ревизия весов
fd58207

0 моделей