/ Модель

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

Контекст
513 токенов
Параметры
113 млн
Лицензия
AGPL 3.0
Архитектура
rnaernie · dense
Библиотека
multimolecule
Опубликована
31 мая 2026

rnaernie

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

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

5 011скачиваний за 30 дней1лайквеса обновлены31 мая 2026

Бенчмарки

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

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

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

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

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

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

RNAErnie — модель семейства BERT–ERNIE, разработанная Ning Wang и соавторами; репозиторий multimolecule/rnaernie содержит неофициальную реализацию и веса. Модель предварительно обучена на последовательностях некодирующих РНК из RNAcentral с многоэтапным маскированием нуклеотидов, подпоследовательностей и мотивов. Она предназначена прежде всего для восстановления замаскированных участков последовательности и получения признаковых представлений РНК.

Архитектура включает 12 слоёв, размер скрытого представления 768 и 12 голов внимания. В карточке указано 86,06 млн параметров и контекст до 512 токенов; метаданные репозитория сообщают 113,3 млн параметров и 513 токенов. Поддерживается работа с последовательностями РНК; токенизатор может преобразовывать T в U. Модель не дообучена для конкретной классификации или регрессии, поэтому для таких задач её требуется адаптировать на целевых данных.

Веса опубликованы в форматах PyTorch и safetensors, библиотека для использования — multimolecule. Лицензия — AGPL-3.0. Авторы реализации предупреждают, что не могут подтвердить совпадение промежуточных представлений с оригинальной реализацией RNAErnie.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

RNAErnie

Pre-trained model on non-coding RNA (ncRNA) using a multi-stage masked language modeling (MLM) objective.

Statement

Multi-purpose RNA language modelling with motif-aware pretraining and type-guided fine-tuning is published in Nature Machine Intelligence, which is a Closed Access / Author-Fee journal.

Machine learning has been at the forefront of the movement for free and open access to research.

We see no role for closed access or author-fee publication in the future of machine learning research and believe the adoption of these journals as an outlet of record for the machine learning community would be a retrograde step.

The MultiMolecule team is committed to the principles of open access and open science.

We do NOT endorse the publication of manuscripts in Closed Access / Author-Fee journals and encourage the community to support Open Access journals and conferences.

Please consider signing the Statement on Nature Machine Intelligence.

Disclaimer

This is an UNOFFICIAL implementation of the RNAErnie: An RNA Language Model with Structure-enhanced Representations by Ning Wang, Jiang Bian, Haoyi Xiong, et al.

The OFFICIAL repository of RNAErnie is at CatIIIIIIII/RNAErnie.

[!WARNING] The MultiMolecule team is unable to confirm that the provided model and checkpoints are producing the same intermediate representations as the original implementation. This is because

The proposed method is published in a Closed Access / Author-Fee journal.

The team releasing RNAErnie did not write this model card for this model so this model card has been written by the MultiMolecule team.

Model Details

RNAErnie is a bert-style model pre-trained on a large corpus of non-coding RNA sequences in a self-supervised fashion. This means that the model was trained on the raw nucleotides of RNA sequences only, with an automatic process to generate inputs and labels from those texts. Please refer to the Training Details section for more information on the training process.

Note that during the conversion process, additional tokens such as [IND] and ncRNA class symbols are removed.

Model Specification

Num LayersHidden SizeNum HeadsIntermediate SizeNum Parameters (M)FLOPs (G)MACs (G)Max Num Tokens
1276812307286.0696.8848.32512

Links

Usage

The model file depends on the multimolecule library. You can install it using pip:

pip install multimolecule

Direct Use

Masked Language Modeling

You can use this model directly with a pipeline for masked language modeling:

import multimolecule  # you must import multimolecule to register models
from transformers import pipeline

predictor = pipeline("fill-mask", model="multimolecule/rnaernie")
output = predictor("gguc<mask>cucugguuagaccagaucugagccu")

Downstream Use

Extract Features

Here is how to use this model to get the features of a given sequence in PyTorch:

from multimolecule import RnaTokenizer, RnaErnieModel


tokenizer = RnaTokenizer.from_pretrained("multimolecule/rnaernie")
model = RnaErnieModel.from_pretrained("multimolecule/rnaernie")

text = "UAGCUUAUCAGACUGAUGUUG"
input = tokenizer(text, return_tensors="pt")

output = model(**input)

Sequence Classification / Regression

[!NOTE] This model is not fine-tuned for any specific task. You will need to fine-tune the model on a downstream task to use it for sequence classification or regression.

Here is how to use this model as backbone to fine-tune for a sequence-level task in PyTorch:

import torch
from multimolecule import RnaTokenizer, RnaErnieForSequencePrediction


tokenizer = RnaTokenizer.from_pretrained("multimolecule/rnaernie")
model = RnaErnieForSequencePrediction.from_pretrained("multimolecule/rnaernie")

text = "UAGCUUAUCAGACUGAUGUUG"
input = tokenizer(text, return_tensors="pt")
label = torch.tensor([1])

output = model(**input, labels=label)

Token Classification / Regression

[!NOTE] This model is not fine-tuned for any specific task. You will need to fine-tune the model on a downstream task to use it for token classification or regression.

Here is how to use this model as backbone to fine-tune for a nucleotide-level task in PyTorch:

import torch
from multimolecule import RnaTokenizer, RnaErnieForTokenPrediction


tokenizer = RnaTokenizer.from_pretrained("multimolecule/rnaernie")
model = RnaErnieForTokenPrediction.from_pretrained("multimolecule/rnaernie")

text = "UAGCUUAUCAGACUGAUGUUG"
input = tokenizer(text, return_tensors="pt")
label = torch.randint(2, (len(text), ))

output = model(**input, labels=label)

Contact Classification / Regression

[!NOTE] This model is not fine-tuned for any specific task. You will need to fine-tune the model on a downstream task to use it for contact classification or regression.

Here is how to use this model as backbone to fine-tune for a contact-level task in PyTorch:

import torch
from multimolecule import RnaTokenizer, RnaErnieForContactPrediction


tokenizer = RnaTokenizer.from_pretrained("multimolecule/rnaernie")
model = RnaErnieForContactPrediction.from_pretrained("multimolecule/rnaernie")

text = "UAGCUUAUCAGACUGAUGUUG"
input = tokenizer(text, return_tensors="pt")
label = torch.randint(2, (len(text), len(text)))

output = model(**input, labels=label)

Training Details

RNAErnie used Masked Language Modeling (MLM) as the pre-training objective: taking a sequence, the model randomly masks 15% of the tokens in the input then runs the entire masked sentence through the model and has to predict the masked tokens. This is comparable to the Cloze task in language modeling.

Training Data

The RNAErnie model was pre-trained on RNAcentral. RNAcentral is a free, public resource that offers integrated access to a comprehensive and up-to-date set of non-coding RNA sequences provided by a collaborating group of Expert Databases representing a broad range of organisms and RNA types.

RNAErnie used a subset of RNAcentral for pre-training. The subset contains 23 million sequences. RNAErnie preprocessed all tokens by replacing "T"s with "S"s.

Note that [RnaTokenizer][multimolecule.RnaTokenizer] will convert "T"s to "U"s for you, you may disable this behaviour by passing replace_T_with_U=False.

Training Procedure

Preprocessing

RNAErnie used masked language modeling (MLM) as the pre-training objective. The masking procedure is similar to the one used in BERT:

  • Mask rate: 15%
  • Replacement: <mask> for 80% of masked tokens
  • Replacement: random token for 10% of masked tokens
  • Replacement: unchanged token for 10% of masked tokens

Pre-training

RNAErnie used a special 3-stage training pipeline to pre-train the model, each with a different masking strategy:

Base-level Masking: The masking applies to each nucleotide in the sequence. Subsequence-level Masking: The masking applies to subsequences of 4-8bp in the sequence. Motif-level Masking: The model is trained on motif datasets.

The model was trained on 4 NVIDIA V100 GPUs with 32GiB memories.

  • Batch size: 50
  • Steps: 2,580,000
  • Optimizer: AdamW
  • Learning rate: 1e-4
  • Learning rate warm-up: 129,000 steps
  • Learning rate cool-down: 129,000 steps
  • Minimum learning rate: 5e-5
  • Weight decay: 0.01

Citation

Citation information is not available for papers published in Closed Access / Author-Fee journals.

[!NOTE] The artifacts distributed in this repository are part of the MultiMolecule project. If MultiMolecule supports your research, please cite the MultiMolecule project as follows:

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

Contact

Please use GitHub issues of MultiMolecule for any questions or comments on the model card.

Please contact the authors of the RNAErnie paper for questions or comments on the paper/model.

License

This model implementation is licensed under the GNU Affero General Public License.

For additional terms and clarifications, please refer to our License FAQ.

SPDX-License-Identifier: AGPL-3.0-or-later

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

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

GPU в ailist

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

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

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

Класс архитектуры
RnaErnieForPreTraining
Ревизия весов
f4d0494

0 моделей