/ Модель

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

Размер весов
16,1 ГБ
Архитектура
ChatNT · dense
Библиотека
transformers
Опубликована
28 мар 2025

ChatNT

Генерация текстаТекст → текст3 профессии

ChatNT — англоязычная диалоговая модель InstaDeep для решения биологических задач по последовательностям ДНК, РНК и белков.

514скачиваний за 30 дней19лайковвеса обновлены9 июл 2025

Бенчмарки

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

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

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

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

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

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

ChatNT — разработанная InstaDeep мультимодальная разговорная модель для вопросов о последовательностях ДНК, РНК и белков. Она сочетает энкодер Nucleotide Transformer v2 на 500 млн параметров, модуль Perceiver Resampler и замороженный декодер Vicuna-7B; ответы формируются авторегрессионно на английском языке. Модель принимает текстовый запрос с маркером последовательности и соответствующую последовательность ДНК, разбитую на перекрывающиеся 6-меры; вход ограничен 2048 токенами, примерно 12 тысячами оснований ДНК.

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

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

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

Ограничения

Модель рассчитана на ограниченный набор из 27 обученных задач и форматы последовательностей, использованные при обучении; вне этих условий ответы могут быть ошибочными, а числовые прогнозы — содержать ошибки. ChatNT не является клиническим или диагностическим инструментом, и важные результаты требуют проверки.

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

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

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

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

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

Открыть на Hugging Face

ChatNT

ChatNT is the first multimodal conversational agent designed with a deep understanding of biological sequences (DNA, RNA, proteins). It enables users — even those with no coding background — to interact with biological data through natural language and it generalizes across multiple biological tasks and modalities.

Developed by: InstaDeep

Model Sources

License Summary

  1. The Licensed Models are only available under this License for Non-Commercial Purposes.
  2. You are permitted to reproduce, publish, share and adapt the Output generated by the Licensed Model only for Non-Commercial Purposes and in accordance with this License.
  3. You may not use the Licensed Models or any of its Outputs in connection with:
    1. any Commercial Purposes, unless agreed by Us under a separate licence;
    2. to train, improve or otherwise influence the functionality or performance of any other third-party derivative model that is commercial or intended for a Commercial Purpose and is similar to the Licensed Models;
    3. to create models distilled or derived from the Outputs of the Licensed Models, unless such models are for Non-Commercial Purposes and open-sourced under the same license as the Licensed Models; or
    4. in violation of any applicable laws and regulations.

Architecture and Parameters

ChatNT is built on a three‑module design: a 500M‑parameter Nucleotide Transformer v2 DNA encoder pre‑trained on genomes from 850 species (handling up to 12 kb per sequence, Dalla‑Torre et al., 2024), an English‑aware Perceiver Resampler that linearly projects and gated‑attention compresses 2048 DNA‑token embeddings into 64 task‑conditioned vectors (REF), and a frozen 7B‑parameter Vicuna‑7B decoder.

Users provide a natural‑language prompt containing one or more <DNA> placeholders and the corresponding DNA sequences (tokenized as 6‑mers). The projection layer inserts 64 resampled DNA embeddings at each placeholder, and the Vicuna decoder generates free‑form English responses in an autoregressive fashion, using low‑temperature sampling to produce classification labels, multi‑label statements, or numeric values.

Training Data

ChatNT was instruction‑tuned on a unified corpus covering 27 diverse tasks from DNA, RNA and proteins, spanning multiple species, tissues and biological processes. This amounted to 605 million DNA tokens (≈ 3.6 billion bases) and 273 million English tokens, sampled uniformly over tasks for 2 billion instruction tokens. Examples of questions and sequences for each task, as well as additional task information, can be found in Datasets_overview.csv.

Tokenization

DNA inputs are broken into overlapping 6‑mer tokens and padded or truncated to 2048 tokens (~ 12 kb). English prompts and outputs use the LLaMA tokenizer, augmented with <DNA> as a special token to mark sequence insertion points.

Limitations and Disclaimer

ChatNT can only handle questions related to the 27 tasks it has been trained on, including the same format of DNA sequences. ChatNT is not a clinical or diagnostic tool. It can produce incorrect or “hallucinated” answers, particularly on out‑of‑distribution inputs, and its numeric predictions may suffer digit‑level errors. Confidence estimates require post‑hoc calibration. Users should always validate critical outputs against experiments or specialized bioinformatics pipelines.

Other notes

We also provide the params for the ChatNT jax model in jax_params.

How to use

Until its next release, the transformers library needs to be installed from source with the following command in order to use the models. PyTorch should also be installed.

pip install --upgrade git+https://github.com/huggingface/transformers.git
pip install torch sentencepiece

A small snippet of code is given here in order to generate ChatNT answers from a pipeline (high-level).

  • The prompt used for training ChatNT is already incorporated inside the pipeline and is the following: "A chat between a curious user and an artificial intelligence assistant that can handle bio sequences. The assistant gives helpful, detailed, and polite answers to the user's questions."
# Load pipeline
from transformers import pipeline
pipe = pipeline(model="InstaDeepAI/ChatNT", trust_remote_code=True)

# Define custom inputs (note that the number of <DNA> token in the english sequence must be equal to len(dna_sequences))
english_sequence = "Is there any evidence of an acceptor splice site in this sequence <DNA> ?"
dna_sequences = ["ATCGGAAAAAGATCCAGAAAGTTATACCAGGCCAATGGGAATCACCTATTACGTGGATAATAGCGATAGTATGTTACCTATAAATTTAACTACGTGGATATCAGGCAGTTACGTTACCAGTCAAGGAGCACCCAAAACTGTCCAGCAACAAGTTAATTTACCCATGAAGATGTACTGCAAGCCTTGCCAACCAGTTAAAGTAGCTACTCATAAGGTAATAAACAGTAATATCGACTTTTTATCCATTTTGATAATTGATTTATAACAGTCTATAACTGATCGCTCTACATAATCTCTATCAGATTACTATTGACACAAACAGAAACCCCGTTAATTTGTATGATATATTTCCCGGTAAGCTTCGATTTTTAATCCTATCGTGACAATTTGGAATGTAACTTATTTCGTATAGGATAAACTAATTTACACGTTTGAATTCCTAGAATATGGAGAATCTAAAGGTCCTGGCAATGCCATCGGCTTTCAATATTATAATGGACCAAAAGTTACTCTATTAGCTTCCAAAACTTCGCGTGAGTACATTAGAACAGAAGAATAACCTTCAATATCGAGAGAGTTACTATCACTAACTATCCTATG"]

# Generate sequence
generated_english_sequence = pipe(
  inputs={
    "english_sequence": english_sequence,
    "dna_sequences": dna_sequences
  }
)

# Expected output: "Yes, an acceptor splice site is without question present in the sequence."

A small snippet of code is given here in order to infer with the model without any abstraction (low-level).

import numpy as np
from transformers import AutoModel, AutoTokenizer

# Load model and tokenizers
model = AutoModel.from_pretrained("InstaDeepAI/ChatNT", trust_remote_code=True)
english_tokenizer = AutoTokenizer.from_pretrained("InstaDeepAI/ChatNT", subfolder="english_tokenizer")
bio_tokenizer = AutoTokenizer.from_pretrained("InstaDeepAI/ChatNT", subfolder="bio_tokenizer")

# Define custom inputs (note that the number of <DNA> token in the english sequence must be equal to len(dna_sequences))
# Here the english sequence should include the prompt
english_sequence = "A chat between a curious user and an artificial intelligence assistant that can handle bio sequences. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: Is there any evidence of an acceptor splice site in this sequence <DNA> ?"
dna_sequences = ["ATCGGAAAAAGATCCAGAAAGTTATACCAGGCCAATGGGAATCACCTATTACGTGGATAATAGCGATAGTATGTTACCTATAAATTTAACTACGTGGATATCAGGCAGTTACGTTACCAGTCAAGGAGCACCCAAAACTGTCCAGCAACAAGTTAATTTACCCATGAAGATGTACTGCAAGCCTTGCCAACCAGTTAAAGTAGCTACTCATAAGGTAATAAACAGTAATATCGACTTTTTATCCATTTTGATAATTGATTTATAACAGTCTATAACTGATCGCTCTACATAATCTCTATCAGATTACTATTGACACAAACAGAAACCCCGTTAATTTGTATGATATATTTCCCGGTAAGCTTCGATTTTTAATCCTATCGTGACAATTTGGAATGTAACTTATTTCGTATAGGATAAACTAATTTACACGTTTGAATTCCTAGAATATGGAGAATCTAAAGGTCCTGGCAATGCCATCGGCTTTCAATATTATAATGGACCAAAAGTTACTCTATTAGCTTCCAAAACTTCGCGTGAGTACATTAGAACAGAAGAATAACCTTCAATATCGAGAGAGTTACTATCACTAACTATCCTATG"]

# Tokenize
english_tokens = english_tokenizer(english_sequence, return_tensors="pt", padding="max_length", truncation=True, max_length=512).input_ids
bio_tokens = bio_tokenizer(dna_sequences, return_tensors="pt", padding="max_length", max_length=512, truncation=True).input_ids.unsqueeze(0) # unsqueeze to simulate batch_size = 1

# Predict
outs = model(
    multi_omics_tokens_ids=(english_tokens, bio_tokens),
    projection_english_tokens_ids=english_tokens,
    projected_bio_embeddings=None,
)

# Expected output: Dictionary of logits and projected_bio_embeddings

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
TorchMultiOmicsModel
Ревизия весов
862ba01

0 моделей