multimolecule / mrnafm

huggingface.co
Total runs: 189
24-hour runs: 0
7-day runs: 6
30-day runs: 31
Model's Last Updated: February 02 2026
fill-mask

Introduction of mrnafm

Model Details of mrnafm

mRNA-FM

Pre-trained model on mRNA CoDing Sequence (CDS) using a masked language modeling (MLM) objective.

Disclaimer

This is an UNOFFICIAL implementation of the Interpretable RNA Foundation Model from Unannotated Data for Highly Accurate RNA Structure and Function Predictions by Jiayang Chen, Zhihang Hue, Siqi Sun, et al.

The OFFICIAL repository of RNA-FM is at ml4bio/RNA-FM .

!!! Success "Reproducibility"

The MultiMolecule team has confirmed that the provided model and checkpoints are producing the same intermediate representations as the original implementation.

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

Model Details

RNA-FM 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.

Variations
Model Specification
Variants Num Layers Hidden Size Num Heads Intermediate Size Num Parameters (M) FLOPs (G) MACs (G) Max Num Tokens
RNA-FM 12 640 20 5120 99.52 25.68 12.83 1024
mRNA-FM 1280 239.25 61.43 30.7
Links
Usage

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

pip install multimolecule
Direct Use

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
>>> unmasker = pipeline('fill-mask', model='multimolecule/mrnafm')
>>> unmasker("ctg<mask>aagcggcccacgcggactgacgggcggggg")

[{'score': 0.09500275552272797,
  'token': 58,
  'token_str': 'GAG',
  'sequence': 'CUG GAG AAG CGG CCC ACG CGG ACU GAC GGG CGG GGG'},
 {'score': 0.09362148493528366,
  'token': 67,
  'token_str': 'GGC',
  'sequence': 'CUG GGC AAG CGG CCC ACG CGG ACU GAC GGG CGG GGG'},
 {'score': 0.07337076216936111,
  'token': 8,
  'token_str': 'AAG',
  'sequence': 'CUG AAG AAG CGG CCC ACG CGG ACU GAC GGG CGG GGG'},
 {'score': 0.07307938486337662,
  'token': 57,
  'token_str': 'GAC',
  'sequence': 'CUG GAC AAG CGG CCC ACG CGG ACU GAC GGG CGG GGG'},
 {'score': 0.06616155058145523,
  'token': 73,
  'token_str': 'GUG',
  'sequence': 'CUG GUG AAG CGG CCC ACG CGG ACU GAC GGG CGG GGG'}]
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, RnaFmModel


tokenizer = RnaTokenizer.from_pretrained('multimolecule/mrnafm')
model = RnaFmModel.from_pretrained('multimolecule/mrnafm')

text = "UAGCUUAUCAGACUGAUGUUGA"
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, RnaFmForSequencePrediction


tokenizer = RnaTokenizer.from_pretrained('multimolecule/mrnafm')
model = RnaFmForSequencePrediction.from_pretrained('multimolecule/mrnafm')

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

output = model(**input, labels=label)
Nucleotide 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 nucleotide 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, RnaFmForNucleotidePrediction


tokenizer = RnaTokenizer.from_pretrained('multimolecule/mrnafm')
model = RnaFmForNucleotidePrediction.from_pretrained('multimolecule/mrnafm')

text = "UAGCUUAUCAGACUGAUGUUGA"
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, RnaFmForContactPrediction


tokenizer = RnaTokenizer.from_pretrained('multimolecule/mrnafm')
model = RnaFmForContactPrediction.from_pretrained('multimolecule/mrnafm')

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

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

RNA-FM 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 RNA-FM model was pre-trained on RNAcentral . RNAcentral is a comprehensive database of non-coding RNA sequences from a wide range of species. It combines 47 different databases, adding up to around 27 million RNA sequences in total.

RNA-FM applied CD-HIT (CD-HIT-EST) with a cut-off at 100% sequence identity to remove redundancy from the RNAcentral. The final dataset contains 23.7 million non-redundant RNA sequences.

RNA-FM preprocessed all tokens by replacing "U"s with "T"s.

Note that during model conversions, "T" is replaced with "U". [ 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

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

  • 15% of the tokens are masked.
  • In 80% of the cases, the masked tokens are replaced by <mask> .
  • In 10% of the cases, the masked tokens are replaced by a random token (different) from the one they replace.
  • In the 10% remaining cases, the masked tokens are left as is.
PreTraining

The model was trained on 8 NVIDIA A100 GPUs with 80GiB memories.

  • Learning rate: 1e-4
  • Weight decay: 0.01
  • Learning rate scheduler: inverse square root
  • Learning rate warm-up: 10,000 steps
Citation

BibTeX :

@article{chen2022interpretable,
  title={Interpretable rna foundation model from unannotated data for highly accurate rna structure and function predictions},
  author={Chen, Jiayang and Hu, Zhihang and Sun, Siqi and Tan, Qingxiong and Wang, Yixuan and Yu, Qinze and Zong, Licheng and Hong, Liang and Xiao, Jin and King, Irwin and others},
  journal={arXiv preprint arXiv:2204.00300},
  year={2022}
}
Contact

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

Please contact the authors of the RNA-FM paper for questions or comments on the paper/model.

License

This model is licensed under the AGPL-3.0 License .

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

Runs of multimolecule mrnafm on huggingface.co

189
Total runs
0
24-hour runs
0
3-day runs
6
7-day runs
31
30-day runs

More Information About mrnafm huggingface.co Model

More mrnafm license Visit here:

https://choosealicense.com/licenses/agpl-3.0

mrnafm huggingface.co

mrnafm huggingface.co is an AI model on huggingface.co that provides mrnafm's model effect (), which can be used instantly with this multimolecule mrnafm model. huggingface.co supports a free trial of the mrnafm model, and also provides paid use of the mrnafm. Support call mrnafm model through api, including Node.js, Python, http.

multimolecule mrnafm online free

mrnafm huggingface.co is an online trial and call api platform, which integrates mrnafm's modeling effects, including api services, and provides a free online trial of mrnafm, you can try mrnafm online for free by clicking the link below.

multimolecule mrnafm online free url in huggingface.co:

https://huggingface.co/multimolecule/mrnafm

mrnafm install

mrnafm is an open source model from GitHub that offers a free installation service, and any user can find mrnafm on GitHub to install. At the same time, huggingface.co provides the effect of mrnafm install, users can directly use mrnafm installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mrnafm install url in huggingface.co:

https://huggingface.co/multimolecule/mrnafm

Url of mrnafm

Provider of mrnafm huggingface.co

multimolecule
ORGANIZATIONS

Other API from multimolecule

huggingface.co

Total runs: 12.8K
Run Growth: -20.9K
Growth Rate: -164.14%
Updated:February 02 2026
huggingface.co

Total runs: 1.2K
Run Growth: 107
Growth Rate: 9.01%
Updated:February 02 2026
huggingface.co

Total runs: 310
Run Growth: -7.4K
Growth Rate: -2388.71%
Updated:February 02 2026
huggingface.co

Total runs: 165
Run Growth: -537
Growth Rate: -325.45%
Updated:February 02 2026
huggingface.co

Total runs: 48
Run Growth: 0
Growth Rate: 0.00%
Updated:December 16 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 14 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 14 2024