multimolecule / splicebert

huggingface.co
Total runs: 21
24-hour runs: 0
7-day runs: 0
30-day runs: -146
Model's Last Updated: Có thể 17 2025
fill-mask

Introduction of splicebert

Model Details of splicebert

SpliceBERT

Pre-trained model on messenger RNA precursor (pre-mRNA) using a masked language modeling (MLM) objective.

Disclaimer

This is an UNOFFICIAL implementation of the Self-supervised learning on millions of pre-mRNA sequences improves sequence-based RNA splicing prediction by Ken Chen, et al.

The OFFICIAL repository of SpliceBERT is at chenkenbio/SpliceBERT .

!!! 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 SpliceBERT did not write this model card for this model so this model card has been written by the MultiMolecule team.

Model Details

SpliceBERT is a bert -style model pre-trained on a large corpus of messenger RNA precursor 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
splicebert 6 512 16 2048 19.72 5.04 2.52 1024
splicebert.510nt 19.45 510
splicebert-human.510nt
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/splicebert')
>>> unmasker("uagc<mask>uaucagacugauguuga")

[{'score': 0.09628374129533768,
  'token': 6,
  'token_str': 'A',
  'sequence': 'U A G C A U A U C A G A C U G A U G U U G A'},
 {'score': 0.09019321203231812,
  'token': 19,
  'token_str': 'W',
  'sequence': 'U A G C W U A U C A G A C U G A U G U U G A'},
 {'score': 0.08448788523674011,
  'token': 9,
  'token_str': 'U',
  'sequence': 'U A G C U U A U C A G A C U G A U G U U G A'},
 {'score': 0.07201363891363144,
  'token': 14,
  'token_str': 'H',
  'sequence': 'U A G C H U A U C A G A C U G A U G U U G A'},
 {'score': 0.06648518145084381,
  'token': 17,
  'token_str': 'M',
  'sequence': 'U A G C M U A U C A G A C U G A U G U U G A'}]
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, SpliceBertModel


tokenizer = RnaTokenizer.from_pretrained('multimolecule/splicebert')
model = SpliceBertModel.from_pretrained('multimolecule/splicebert')

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, SpliceBertForSequencePrediction


tokenizer = RnaTokenizer.from_pretrained('multimolecule/splicebert')
model = SpliceBertForSequencePrediction.from_pretrained('multimolecule/splicebert')

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, SpliceBertForNucleotidePrediction


tokenizer = RnaTokenizer.from_pretrained('multimolecule/splicebert')
model = SpliceBertForNucleotidePrediction.from_pretrained('multimolecule/splicebert')

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, SpliceBertForContactPrediction


tokenizer = RnaTokenizer.from_pretrained('multimolecule/splicebert')
model = SpliceBertForContactPrediction.from_pretrained('multimolecule/splicebert')

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

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

SpliceBERT 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 SpliceBERT model was pre-trained on messenger RNA precursor sequences from UCSC Genome Browser . UCSC Genome Browser provides visualization, analysis, and download of comprehensive vertebrate genome data with aligned annotation tracks (known genes, predicted genes, ESTs, mRNAs, CpG islands, etc.).

SpliceBERT collected reference genomes and gene annotations from the UCSC Genome Browser for 72 vertebrate species. It applied bedtools getfasta to extract pre-mRNA sequences from the reference genomes based on the gene annotations. The pre-mRNA sequences are then used to pre-train SpliceBERT. The pre-training data contains 2 million pre-mRNA sequences with a total length of 65 billion nucleotides.

Note [ 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

SpliceBERT 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 V100 GPUs.

  • Learning rate: 1e-4
  • Learning rate scheduler: ReduceLROnPlateau(patience=3)
  • Optimizer: AdamW

SpliceBERT trained model in a two-stage training process:

  1. Pre-train with sequences of a fixed length of 510 nucleotides.
  2. Pre-train with sequences of a variable length between 64 and 1024 nucleotides.

The intermediate model after the first stage is available as multimolecule/splicebert.510nt .

SpliceBERT also pre-trained a model on human data only to validate the contribution of multi-species pre-training. The intermediate model after the first stage is available as multimolecule/splicebert-human.510nt .

Citation

BibTeX :

@article {chen2023self,
    author = {Chen, Ken and Zhou, Yue and Ding, Maolin and Wang, Yu and Ren, Zhixiang and Yang, Yuedong},
    title = {Self-supervised learning on millions of pre-mRNA sequences improves sequence-based RNA splicing prediction},
    elocation-id = {2023.01.31.526427},
    year = {2023},
    doi = {10.1101/2023.01.31.526427},
    publisher = {Cold Spring Harbor Laboratory},
    abstract = {RNA splicing is an important post-transcriptional process of gene expression in eukaryotic cells. Predicting RNA splicing from primary sequences can facilitate the interpretation of genomic variants. In this study, we developed a novel self-supervised pre-trained language model, SpliceBERT, to improve sequence-based RNA splicing prediction. Pre-training on pre-mRNA sequences from vertebrates enables SpliceBERT to capture evolutionary conservation information and characterize the unique property of splice sites. SpliceBERT also improves zero-shot prediction of variant effects on splicing by considering sequence context information, and achieves superior performance for predicting branchpoint in the human genome and splice sites across species. Our study highlighted the importance of pre-training genomic language models on a diverse range of species and suggested that pre-trained language models were promising for deciphering the sequence logic of RNA splicing.Competing Interest StatementThe authors have declared no competing interest.},
    URL = {https://www.biorxiv.org/content/early/2023/05/09/2023.01.31.526427},
    eprint = {https://www.biorxiv.org/content/early/2023/05/09/2023.01.31.526427.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 SpliceBERT 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 splicebert on huggingface.co

21
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-146
30-day runs

More Information About splicebert huggingface.co Model

More splicebert license Visit here:

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

splicebert huggingface.co

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

multimolecule splicebert online free

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

multimolecule splicebert online free url in huggingface.co:

https://huggingface.co/multimolecule/splicebert

splicebert install

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

splicebert install url in huggingface.co:

https://huggingface.co/multimolecule/splicebert

Url of splicebert

Provider of splicebert huggingface.co

multimolecule
ORGANIZATIONS

Other API from multimolecule

huggingface.co

Total runs: 53.7K
Run Growth: 50.7K
Growth Rate: 94.29%
Updated:Có thể 31 2026
huggingface.co

Total runs: 12.8K
Run Growth: -20.9K
Growth Rate: -164.14%
Updated:Tháng hai 02 2026
huggingface.co

Total runs: 1.2K
Run Growth: 107
Growth Rate: 9.01%
Updated:Tháng hai 02 2026
huggingface.co

Total runs: 310
Run Growth: -7.4K
Growth Rate: -2388.71%
Updated:Tháng hai 02 2026
huggingface.co

Total runs: 303
Run Growth: 124
Growth Rate: 40.92%
Updated:Tháng hai 02 2026
huggingface.co

Total runs: 165
Run Growth: -537
Growth Rate: -325.45%
Updated:Tháng hai 02 2026
huggingface.co

Total runs: 48
Run Growth: 0
Growth Rate: 0.00%
Updated:Tháng 12 16 2024
huggingface.co

Total runs: 26
Run Growth: 26
Growth Rate: 100.00%
Updated:Tháng bảy 08 2026
huggingface.co

Total runs: 10
Run Growth: -11
Growth Rate: -110.00%
Updated:Có thể 31 2026
huggingface.co

Total runs: 8
Run Growth: 4
Growth Rate: 50.00%
Updated:Có thể 31 2026
huggingface.co

Total runs: 7
Run Growth: 2
Growth Rate: 28.57%
Updated:Tháng sáu 01 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Tháng 9 14 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Tháng 9 14 2024