The MultiMolecule team has confirmed that the provided model and checkpoints are producing the same intermediate representations as the original implementation.
The team releasing RibonanzaNet did not write this model card for this model so this model card has been written by the MultiMolecule team.
Model Details
RibonanzaNet is a
bert
-style model.
RibonanzaNet follows the modification from the
RNAdegformer
where it introduces a 1D convolution with residual connection at the beginning of each encoder layer.
Different from RNAdegformer, RibonanzaNet does not apply deconvolution at the end of the encoder layers, and updates the pairwise representation through outer product mean and triangular update.
RibonanzaNet is pre-trained on a large corpus of RNA sequences with chemical mapping (2A3 and DMS) measurements.
Please refer to the
Training Details
section for more information on the training process.
Developed by
: Shujun He, Rui Huang, Jill Townley, Rachael C. Kretsch, Thomas G. Karagianes, David B.T. Cox, Hamish Blair, Dmitry Penzar, Valeriy Vyaltsev, Elizaveta Aristova, Arsenii Zinkevich, Artemy Bakulin, Hoyeol Sohn, Daniel Krstevski, Takaaki Fukui, Fumiya Tatematsu, Yusuke Uchida, Donghoon Jang, Jun Seong Lee, Roger Shieh, Tom Ma, Eduard Martynov, Maxim V. Shugaev, Habib S.T. Bukhari, Kazuki Fujikawa, Kazuki Onodera, Christof Henkel, Shlomo Ron, Jonathan Romano, John J. Nicol, Grace P. Nye, Yuan Wu, Christian Choe, Walter Reade, Eterna participants, Rhiju Das
The model file depends on the
multimolecule
library. You can install it using pip:
pip install multimolecule
Direct Use
Masked Language Modelling
You can use this model directly to predict chemical mapping:
>>> from multimolecule import RnaTokenizer, RibonanzaNetForPreTraining
>>> tokenizer = RnaTokenizer.from_pretrained("multimolecule/ribonanzanet")
>>> model = RibonanzaNetForPreTraining.from_pretrained("multimolecule/ribonanzanet")
RNA Secondary Structure Prediction
You can use this model to predict the secondary structure of an RNA sequence:
>>> import multimolecule # you must import multimolecule to register models>>> from transformers import pipeline
>>> predictor = pipeline("rna-secondary-structure", model="multimolecule/ribonanzanet")
>>> predictor("agcagucauuauggcgaa")
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, RibonanzaNetModel
tokenizer = RnaTokenizer.from_pretrained("multimolecule/ribonanzanet")
model = RibonanzaNetModel.from_pretrained("multimolecule/ribonanzanet")
text = "UAGCUUAUCAGACUGAUGUUG"input = tokenizer(text, return_tensors="pt")
output = model(**input)
Sequence Classification / Regression
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, RibonanzaNetForSequencePrediction
tokenizer = RnaTokenizer.from_pretrained("multimolecule/ribonanzanet")
model = RibonanzaNetForSequencePrediction.from_pretrained("multimolecule/ribonanzanet")
text = "UAGCUUAUCAGACUGAUGUUG"input = tokenizer(text, return_tensors="pt")
label = torch.tensor([1])
output = model(**input, labels=label)
Token Classification / Regression
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, RibonanzaNetForTokenPrediction
tokenizer = RnaTokenizer.from_pretrained("multimolecule/ribonanzanet")
model = RibonanzaNetForTokenPrediction.from_pretrained("multimolecule/ribonanzanet")
text = "UAGCUUAUCAGACUGAUGUUG"input = tokenizer(text, return_tensors="pt")
label = torch.randint(2, (len(text), ))
output = model(**input, labels=label)
Contact Classification / Regression
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, RibonanzaNetForContactPrediction
tokenizer = RnaTokenizer.from_pretrained("multimolecule/ribonanzanet")
model = RibonanzaNetForContactPrediction.from_pretrained("multimolecule/ribonanzanet")
text = "UAGCUUAUCAGACUGAUGUUG"input = tokenizer(text, return_tensors="pt")
label = torch.randint(2, (len(text), len(text)))
output = model(**input, labels=label)
Training Details
TODO
Training Data
TODO
Training Procedure
Preprocessing
TODO
PreTraining
The model was trained on 10 NVIDIA L40S GPUs with 48GiB memories.
TODO
Citation
BibTeX
:
@article{He2024.02.24.581671,
author = {He, Shujun and Huang, Rui and Townley, Jill and Kretsch, Rachael C. and Karagianes, Thomas G. and Cox, David B.T. and Blair, Hamish and Penzar, Dmitry and Vyaltsev, Valeriy and Aristova, Elizaveta and Zinkevich, Arsenii and Bakulin, Artemy and Sohn, Hoyeol and Krstevski, Daniel and Fukui, Takaaki and Tatematsu, Fumiya and Uchida, Yusuke and Jang, Donghoon and Lee, Jun Seong and Shieh, Roger and Ma, Tom and Martynov, Eduard and Shugaev, Maxim V. and Bukhari, Habib S.T. and Fujikawa, Kazuki and Onodera, Kazuki and Henkel, Christof and Ron, Shlomo and Romano, Jonathan and Nicol, John J. and Nye, Grace P. and Wu, Yuan and Choe, Christian and Reade, Walter and Eterna participants and Das, Rhiju},
title = {Ribonanza: deep learning of RNA structure through dual crowdsourcing},
elocation-id = {2024.02.24.581671},
year = {2024},
doi = {10.1101/2024.02.24.581671},
publisher = {Cold Spring Harbor Laboratory},
abstract = {Prediction of RNA structure from sequence remains an unsolved problem, and progress has been slowed by a paucity of experimental data. Here, we present Ribonanza, a dataset of chemical mapping measurements on two million diverse RNA sequences collected through Eterna and other crowdsourced initiatives. Ribonanza measurements enabled solicitation, training, and prospective evaluation of diverse deep neural networks through a Kaggle challenge, followed by distillation into a single, self-contained model called RibonanzaNet. When fine tuned on auxiliary datasets, RibonanzaNet achieves state-of-the-art performance in modeling experimental sequence dropout, RNA hydrolytic degradation, and RNA secondary structure, with implications for modeling RNA tertiary structure.Competing Interest StatementStanford University is filing patent applications based on concepts described in this paper. R.D. is a cofounder of Inceptive.},
url = {https://www.biorxiv.org/content/early/2024/06/11/2024.02.24.581671},
eprint = {https://www.biorxiv.org/content/early/2024/06/11/2024.02.24.581671.full.pdf},
journal = {bioRxiv}
}
Contact
Please use GitHub issues of
MultiMolecule
for any questions or comments on the model card.
Please contact the authors of the
RibonanzaNet paper
for questions or comments on the paper/model.
ribonanzanet-ss huggingface.co is an AI model on huggingface.co that provides ribonanzanet-ss's model effect (), which can be used instantly with this multimolecule ribonanzanet-ss model. huggingface.co supports a free trial of the ribonanzanet-ss model, and also provides paid use of the ribonanzanet-ss. Support call ribonanzanet-ss model through api, including Node.js, Python, http.
ribonanzanet-ss huggingface.co is an online trial and call api platform, which integrates ribonanzanet-ss's modeling effects, including api services, and provides a free online trial of ribonanzanet-ss, you can try ribonanzanet-ss online for free by clicking the link below.
multimolecule ribonanzanet-ss online free url in huggingface.co:
ribonanzanet-ss is an open source model from GitHub that offers a free installation service, and any user can find ribonanzanet-ss on GitHub to install. At the same time, huggingface.co provides the effect of ribonanzanet-ss install, users can directly use ribonanzanet-ss installed effect in huggingface.co for debugging and trial. It also supports api for free installation.