/ Модель

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

Параметры
41,3 млн
Лицензия
Apache 2.0
Архитектура
caduceus · dense
Библиотека
transformers
Опубликована
10 июл 2026

FishCaduceus-20L-512

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

Предварительно обученная Caduceus-модель для предсказания нуклеотидов и извлечения представлений геномных последовательностей рыб.

19скачиваний за 30 дней0лайковвеса обновлены10 июл 2026

Бенчмарки

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

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

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

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

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

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

FishCaduceus-20L-512 — предварительно обученная на геномных последовательностях рыб ДНК-языковая модель семейства FishCaduceus, разработанная на основе Caduceus. Она использует двунаправленную архитектуру пространства состояний с компонентами, учитывающими обратное комплементарное представление, и обучена восстанавливать замаскированные нуклеотиды. Модель содержит 41,3 млн параметров, 20 слоёв с размерностью 384 и контекст предварительного обучения 512 нуклеотидов; токенизация выполняется на уровне отдельных нуклеотидов.

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

Качество может снижаться на последовательностях далёких таксономических групп и зависит от вида, участка генома и downstream-задачи. Длинные последовательности следует разбивать на окна, соответствующие контексту модели; предсказания сами по себе не доказывают биологическую функцию или причинность и требуют экспериментальной проверки. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

FishCaduceus-20L-512

FishCaduceus-20L-512 is a fish-specific DNA language model in the FishCaduceus family. It was pretrained on fish genomic sequences using a masked language modeling objective and is intended for nucleotide-level representation learning, transfer learning, and sequence-based analyses in fish genomics.

This repository contains the pretrained FishCaduceus-20L-512 checkpoint.

Model description

FishCaduceus is a family of Caduceus-based DNA language models developed for fish genomes. The models operate at single-nucleotide resolution and use bidirectional state-space sequence modeling together with reverse-complement-aware components.

The model learns to recover masked nucleotides from their surrounding genomic context. Its hidden representations can also be used as input features for downstream fish genomics tasks.

Model family

ModelNumber of layersHidden dimensionPretraining context length
FishCaduceus-20L-51220384512 nt
FishCaduceus-28L-51228768512 nt
FishCaduceus-28L-1024287681024 nt

Architecture

  • Backbone: Caduceus-based bidirectional state-space DNA language model
  • Training objective: masked language modeling
  • Tokenization: single-nucleotide character-level tokenization
  • Vocabulary size: 8
  • Number of layers: 20
  • Hidden dimension (d_model): 384
  • Pretraining context length: 512 nucleotides
  • Selected training checkpoint: step 35,000
  • Framework: PyTorch and Hugging Face Transformers
  • Model type: custom Transformers model (trust_remote_code=True)

The context length above describes the sequence length used during pretraining. Users should apply truncation or windowing appropriate for the selected model variant.

Training data

The model was pretrained on curated fish genomic sequences obtained from publicly available genome resources. The genomes were processed through a unified quality-control and sequence-preparation workflow before construction of the masked-language-modeling corpus.

Detailed information about the included fish species, genome assemblies, preprocessing criteria, and dataset splits will be provided in the accompanying FishCaduceus dataset card and manuscript.

Training objective

FishCaduceus was pretrained using masked language modeling. Selected nucleotide positions were masked, and the model was optimized to predict the original nucleotide from the surrounding sequence context.

Because the tokenizer operates at single-nucleotide resolution, model outputs can be used for nucleotide-level probability estimation and sequence representation learning.

Intended uses

The model is intended for research applications including:

  • nucleotide-level genomic sequence representation learning
  • masked nucleotide prediction
  • extraction of frozen sequence embeddings
  • transfer learning and downstream fine-tuning
  • fish genomic annotation tasks
  • comparative and evolutionary genomics
  • exploratory variant-effect and regulatory-sequence analyses

Out-of-scope uses

The model is not intended to:

  • provide clinical or diagnostic decisions
  • replace experimental validation
  • establish biological causality from sequence scores alone
  • be used as the sole basis for decisions affecting human or animal health

Limitations

  • The model was developed primarily from fish genomic sequences, so performance may be lower for distant taxonomic groups.
  • Predictions reflect patterns learned from the pretraining corpus and do not by themselves demonstrate biological function or causality.
  • Performance may vary across species, genomic regions, sequence lengths, and downstream task definitions.
  • Long genomic sequences should be divided into windows compatible with the selected model's pretraining context length.
  • This repository contains custom modeling code. Review the repository code before loading it with trust_remote_code=True.

How to use

Install the dependencies listed in requirements.txt before loading the model.

Load the tokenizer and model

from transformers import AutoModelForMaskedLM, AutoTokenizer

model_id = "FishCaduceus/FishCaduceus-20L-512"

tokenizer = AutoTokenizer.from_pretrained(
    model_id,
    trust_remote_code=True,
)

model = AutoModelForMaskedLM.from_pretrained(
    model_id,
    trust_remote_code=True,
)

model.eval()

Masked nucleotide prediction

import torch
from transformers import AutoModelForMaskedLM, AutoTokenizer

model_id = "FishCaduceus/FishCaduceus-20L-512"
sequence = "ACGTACGT[MASK]ACGTACGT"

tokenizer = AutoTokenizer.from_pretrained(
    model_id,
    trust_remote_code=True,
)
model = AutoModelForMaskedLM.from_pretrained(
    model_id,
    trust_remote_code=True,
)
model.eval()

inputs = tokenizer(sequence, return_tensors="pt")

with torch.inference_mode():
    outputs = model(**inputs)

mask_rows, mask_cols = (
    inputs["input_ids"] == tokenizer.mask_token_id
).nonzero(as_tuple=True)

base_tokens = ["A", "C", "G", "T"]
base_ids = tokenizer.convert_tokens_to_ids(base_tokens)

mask_logits = outputs.logits[mask_rows[0], mask_cols[0], base_ids]
base_probabilities = torch.softmax(mask_logits, dim=-1)

print(dict(zip(base_tokens, base_probabilities.tolist())))

Extract sequence representations

import torch
from transformers import AutoModelForMaskedLM, AutoTokenizer

model_id = "FishCaduceus/FishCaduceus-20L-512"
sequence = "ACGTACGTACGTACGT"

tokenizer = AutoTokenizer.from_pretrained(
    model_id,
    trust_remote_code=True,
)
model = AutoModelForMaskedLM.from_pretrained(
    model_id,
    trust_remote_code=True,
)
model.eval()

inputs = tokenizer(
    sequence,
    return_tensors="pt",
    truncation=True,
    max_length=512,
)

with torch.inference_mode():
    outputs = model(
        **inputs,
        output_hidden_states=True,
    )

token_embeddings = outputs.hidden_states[-1]
sequence_embedding = token_embeddings.mean(dim=1)

print("Token embeddings:", token_embeddings.shape)
print("Sequence embedding:", sequence_embedding.shape)

Repository files

The repository includes the files required to load the custom FishCaduceus model and tokenizer:

  • config.json
  • model weights (pytorch_model.bin or model.safetensors)
  • configuration_caduceus.py
  • modeling_caduceus.py
  • modeling_rcps.py
  • tokenization_caduceus.py
  • tokenizer.json
  • tokenizer_config.json
  • special_tokens_map.json
  • requirements.txt
  • README.md

Citation

The FishCaduceus manuscript is in preparation. Citation information will be added after publication.

Users of the model should also acknowledge the original Caduceus architecture and other upstream software components where appropriate.

Acknowledgements

FishCaduceus builds on the Caduceus architecture and related open-source sequence-modeling software. The model was developed for research on fish genomes at the Institute of Hydrobiology, Chinese Academy of Sciences.

License

This repository is released under the Apache License 2.0. Users are responsible for complying with the licenses of all upstream software dependencies.

Contact

For questions, please contact: xqxia@ihb.ac.cn

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

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

GPU в ailist

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

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

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

Класс архитектуры
CaduceusForMaskedLM
Ревизия весов
30cd90f

0 моделей