/ Модель

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

Контекст
440 токенов
Параметры
435 120
Лицензия
AGPL 3.0
Архитектура
bert · dense
Библиотека
transformers
Опубликована
26 ноя 2026

RNABERT-StruSem-RMI

ЭмбеддингиТекст → embedding3 профессии
56скачиваний за 30 дней0лайковвеса обновлены26 ноя 2026

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

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

Адаптированный RNABERT извлекает векторные признаки последовательностей РНК для исследовательских и downstream-задач, включая моделирование взаимодействий с малыми молекулами.

Это адаптированный чекпойнт RNABERT в формате Transformers BertModel, опубликованный для извлечения признаков последовательностей РНК в рамках StruSem-RMI. Исходную RNABERT разработали Manato Akiyama и Yasubumi Sakakibara; данный репозиторий содержит только энкодер последовательностей, а не полную модель предсказания взаимодействий РНК с малыми молекулами.

Модель предназначена для получения векторных представлений последовательностей РНК, которые можно использовать в воспроизводимых экспериментах и последующем обучении моделей взаимодействия РНК и малых молекул. Архитектура — BertModel с шестью слоями трансформера, размер — 435,1 тыс. параметров, контекст — до 440 токенов. Для воспроизведения признаков требуется совместимый SimpleRnaTokenizer из проекта StruSem-RMI и соответствующие настройки предобработки; в описанном сценарии энкодер работает в режиме оценки, без обновления параметров.

Чекпойнт выпущен под лицензией AGPL-3.0. Он сам по себе не классифицирует взаимодействия и не включает обученный классификатор StruSem-RMI; результаты воспроизведения зависят от сохранения исходной токенизации и программной среды.

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

  • извлечение признаков из последовательностей РНК
  • получение векторных представлений РНК для последующего обучения
  • подготовка признаков РНК для предсказания взаимодействий с малыми молекулами
  • воспроизведение экспериментов StruSem-RMI

Ограничения

Чекпойнт не предсказывает взаимодействия РНК с малыми молекулами самостоятельно и не содержит downstream-классификатора. Для воспроизведения признаков необходимы исходный SimpleRnaTokenizer, настройки предобработки и совместимая программная среда.

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

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

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

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

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

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Эмбеддинги» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

RNABERT-StruSem-RMI

Overview

This repository contains the adapted RNABERT checkpoint used for RNA sequence feature extraction in StruSem-RMI, a knowledge-enhanced multimodal framework for RNA–small molecule interaction prediction. The checkpoint is packaged in a Transformers-compatible BertModel format and is provided to facilitate reproduction of the RNA sequence features described in Supplementary Method S9 of the associated manuscript.

RNABERT was originally developed by Manato Akiyama and Yasubumi Sakakibara. The checkpoint in this repository is an RNA sequence encoder, not the complete StruSem-RMI interaction prediction model.

The upstream checkpoint revision was not recorded in the available local checkpoint inventory. The checksums below identify the exact local checkpoint files provided for reproduction.

Model configuration

PropertyValue
ArchitectureBertModel
Model typebert
Transformer layers6
Hidden size120
Attention heads12
Intermediate size40
Vocabulary size26
Maximum positional capacity440 tokens
Parameters480,840
Weight data typefloat32
Feature representationpooler_output

Download and installation

First, prepare the Python environment described in the StruSem-RMI repository. From the root of the StruSem-RMI project, run:

python -m pip install huggingface_hub
hf download zxliu54/RNABERT-StruSem-RMI config.json model.safetensors vocab.txt special_tokens_map.json tokenizer_config.json --local-dir pretrained_models/rnabert

The required files may also be downloaded manually from the Files and versions page. Place them in the following directory:

StruSem-RMI/
└── pretrained_models/
    └── rnabert/
        ├── config.json
        ├── model.safetensors
        ├── vocab.txt
        ├── special_tokens_map.json
        └── tokenizer_config.json

The repository also contains pytorch_model.bin as an alternative weight serialization. The checksums and example in this model card refer to model.safetensors, which is the recommended file for reproducibility. For version-pinned downloads, use --revision with the full commit hash of the selected repository revision.

RNA sequence feature extraction

StruSem-RMI uses the SimpleRnaTokenizer implemented in create_data.py, rather than a substitute tokenizer. The pretrained encoder is operated in evaluation mode without gradient computation. The resulting features are cached before downstream model training, and the encoder parameters are not updated during that training.

SettingValue
Local checkpoint directorypretrained_models/rnabert/
Model loadertransformers.AutoModel
TokenizerSimpleRnaTokenizer
Maximum RNA input length267 tokens (including boundary tokens)
Paddingmax_length
TruncationEnabled
Feature representationpooler_output
Embedding dimension120
Encoder modeEvaluation mode
Feature extractionOffline, without gradient computation

The current StruSem-RMI tokenizer uses character-level encoding, uppercase conversion, and the special-token lookup defaults defined in the project code. With the supplied vocabulary, the resulting padding, initial-boundary, final-boundary and unknown-character IDs are 0, 2, 3 and 1, respectively. These are the project's effective encoding IDs, which differ from some of the special-token IDs declared in the vocabulary or model configuration. Preserve the original tokenizer behavior when reproducing the StruSem-RMI features.

Example

Run the following example from the root of StruSem-RMI after installing its dependencies and downloading the checkpoint:

import torch
from transformers import AutoModel
from create_data import SimpleRnaTokenizer

path = "pretrained_models/rnabert"
tokenizer = SimpleRnaTokenizer.from_pretrained(path)
model = AutoModel.from_pretrained(
    path, local_files_only=True, use_safetensors=True
).eval()

inputs = tokenizer(
    "ACGUN",
    max_length=267,
    padding="max_length",
    truncation=True,
    return_tensors="pt",
)

with torch.no_grad():
    features = model(
        input_ids=inputs["input_ids"],
        attention_mask=inputs["attention_mask"],
    ).pooler_output

assert features.shape == (1, 120)
assert torch.isfinite(features).all()
print(features.shape)

Expected output:

torch.Size([1, 120])

The complete preprocessing, feature caching, training and prediction procedures are provided in the StruSem-RMI source code.

Checkpoint integrity

The following SHA-256 values identify the files used for this release:

FileSHA-256
model.safetensorseb3a6d402126a5f5bf1972e9679a1f22484e73e920b28901618aed4767d31082
config.jsone67e6e33fa63d178e3b7b3921c1a8efa5e10a1db3cee8b017c38c83c87f3fb8f
vocab.txt686c991af8379cbb812ada930086ad17f820327a99097eb7857ae38ef2da2572

The weight checksum matches the RNABERT checksum documented in Supplementary Method S9 of the associated manuscript.

On Linux, verify the files from the root of StruSem-RMI:

sha256sum pretrained_models/rnabert/model.safetensors pretrained_models/rnabert/config.json pretrained_models/rnabert/vocab.txt

Matching file checksums establish the identity of these files. Reproducing cached features also requires the original tokenizer implementation, preprocessing settings and a compatible software environment.

Intended use

This checkpoint is intended for RNA sequence feature extraction and reproducible research with StruSem-RMI. It does not independently predict RNA–small molecule interactions and does not include the trained downstream interaction classifier.

Citation

Please cite the original RNABERT publication:

@article{akiyama2022informative,
  title={Informative RNA base embedding for RNA structural alignment and clustering by deep representation learning},
  author={Akiyama, Manato and Sakakibara, Yasubumi},
  journal={NAR Genomics and Bioinformatics},
  volume={4},
  number={1},
  pages={lqac012},
  year={2022},
  doi={10.1093/nargab/lqac012}
}

Please also acknowledge MultiMolecule where its implementation or checkpoint conversion contributes to the work:

@software{chen_2024_12638419,
  author={Chen, Zhiyuan and Zhu, Sophia Y.},
  title={MultiMolecule},
  year={2024},
  doi={10.5281/zenodo.12638419},
  url={https://doi.org/10.5281/zenodo.12638419}
}

For applications using StruSem-RMI, please also acknowledge the associated manuscript, A traceable multimodal database and knowledge-enhanced model for RNA–small molecule interaction prediction, and the StruSem-RMI repository.

License and attribution

RNABERT is credited to its original authors. The related MultiMolecule RNABERT distribution and the previously linked yangheng/rnabert model card identify their licensing as AGPL-3.0-or-later.

Relevant upstream resources include the MultiMolecule source code, RNABERT model documentation, RNAcentral data repository, and original RNABERT repository.

See the GNU Affero General Public License v3.0 and the MultiMolecule License FAQ for the applicable terms of the respective upstream distributions. Reuse and redistribution remain subject to the applicable upstream rights, notices and corresponding-source requirements.

Contact

For questions about this adaptation or its use in StruSem-RMI, please use the StruSem-RMI GitHub issues page.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BertModel
Ревизия весов
43eb826

0 моделей