Views
No views yet
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.
[!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 becauseThe proposed method is published in a Closed Access / Author-Fee journal.
| Variants | Num Layers | Hidden Size | Num Heads | Intermediate Size | Num Parameters (M) | FLOPs (G) | MACs (G) | Max Num Tokens |
|---|---|---|---|---|---|---|---|---|
| UTR-LM MRL | 6 | 128 | 16 | 512 | 1.21 | 2.10 | 1.01 | 1022 |
| UTR-LM TE_EL |
multimolecule library. You can install it using pip:pip install multimolecule1import multimolecule # you must import multimolecule to register models
2from transformers import pipeline
3
4predictor = pipeline("fill-mask", model="multimolecule/utrlm-te_el")
5output = predictor("gguc<mask>cucugguuagaccagaucugagccu")1import multimolecule # you must import multimolecule to register models
2from transformers import pipeline
3
4predictor = pipeline("rna-secondary-structure", model="multimolecule/utrlm-mrl")
5output = predictor("ggucucucugguuagaccagaucugagccu")1import multimolecule # you must import multimolecule to register models
2from transformers import pipeline
3
4predictor = pipeline("mean-ribosome-load", model="multimolecule/utrlm-mrl")
5output = predictor("ggucucucugguuagaccagaucugagccu")1from multimolecule import RnaTokenizer, UtrLmModel
2
3
4tokenizer = RnaTokenizer.from_pretrained("multimolecule/utrlm-te_el")
5model = UtrLmModel.from_pretrained("multimolecule/utrlm-te_el")
6
7text = "UAGCUUAUCAGACUGAUGUUG"
8input = tokenizer(text, return_tensors="pt")
9
10output = model(**input)[!NOTE] The MRL checkpoint exposes its supervised mean-ribosome-load head throughUtrLmForPreTraining. The TE/EL checkpoint exposes a separate supervised translation-efficiency and expression-level head through the same class.UtrLmForSequencePredictioncreates a fresh sequence-level head for downstream fine-tuning.
1import torch
2from multimolecule import RnaTokenizer, UtrLmForSequencePrediction
3
4
5tokenizer = RnaTokenizer.from_pretrained("multimolecule/utrlm-te_el")
6model = UtrLmForSequencePrediction.from_pretrained("multimolecule/utrlm-te_el")
7
8text = "UAGCUUAUCAGACUGAUGUUG"
9input = tokenizer(text, return_tensors="pt")
10label = torch.tensor([1])
11
12output = model(**input, labels=label)[!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.
1import torch
2from multimolecule import RnaTokenizer, UtrLmForTokenPrediction
3
4
5tokenizer = RnaTokenizer.from_pretrained("multimolecule/utrlm-te_el")
6model = UtrLmForTokenPrediction.from_pretrained("multimolecule/utrlm-te_el")
7
8text = "UAGCUUAUCAGACUGAUGUUG"
9input = tokenizer(text, return_tensors="pt")
10label = torch.randint(2, (len(text), ))
11
12output = model(**input, labels=label)[!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.
1import torch
2from multimolecule import RnaTokenizer, UtrLmForContactPrediction
3
4
5tokenizer = RnaTokenizer.from_pretrained("multimolecule/utrlm-te_el")
6model = UtrLmForContactPrediction.from_pretrained("multimolecule/utrlm-te_el")
7
8text = "UAGCUUAUCAGACUGAUGUUG"
9input = tokenizer(text, return_tensors="pt")
10label = torch.randint(2, (len(text), len(text)))
11
12output = model(**input, labels=label)<mask> token in the MLM task.RnaTokenizer][multimolecule.RnaTokenizer] will convert "T"s to "U"s for you, you may disable this behaviour by passing replace_T_with_U=False.<mask> for 80% of masked tokens1@article {chu2023a,
2 author = {Chu, Yanyi and Yu, Dan and Li, Yupeng and Huang, Kaixuan and Shen, Yue and Cong, Le and Zhang, Jason and Wang, Mengdi},
3 title = {A 5{\textquoteright} UTR Language Model for Decoding Untranslated Regions of mRNA and Function Predictions},
4 elocation-id = {2023.10.11.561938},
5 year = {2023},
6 doi = {10.1101/2023.10.11.561938},
7 publisher = {Cold Spring Harbor Laboratory},
8 abstract = {The 5{\textquoteright} UTR, a regulatory region at the beginning of an mRNA molecule, plays a crucial role in regulating the translation process and impacts the protein expression level. Language models have showcased their effectiveness in decoding the functions of protein and genome sequences. Here, we introduced a language model for 5{\textquoteright} UTR, which we refer to as the UTR-LM. The UTR-LM is pre-trained on endogenous 5{\textquoteright} UTRs from multiple species and is further augmented with supervised information including secondary structure and minimum free energy. We fine-tuned the UTR-LM in a variety of downstream tasks. The model outperformed the best-known benchmark by up to 42\% for predicting the Mean Ribosome Loading, and by up to 60\% for predicting the Translation Efficiency and the mRNA Expression Level. The model also applies to identifying unannotated Internal Ribosome Entry Sites within the untranslated region and improves the AUPR from 0.37 to 0.52 compared to the best baseline. Further, we designed a library of 211 novel 5{\textquoteright} UTRs with high predicted values of translation efficiency and evaluated them via a wet-lab assay. Experiment results confirmed that our top designs achieved a 32.5\% increase in protein production level relative to well-established 5{\textquoteright} UTR optimized for therapeutics.Competing Interest StatementThe authors have declared no competing interest.},
9 URL = {https://www.biorxiv.org/content/early/2023/10/14/2023.10.11.561938},
10 eprint = {https://www.biorxiv.org/content/early/2023/10/14/2023.10.11.561938.full.pdf},
11 journal = {bioRxiv}
12}[!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:
1@software{chen_2024_12638419,
2 author = {Chen, Zhiyuan and Zhu, Sophia Y.},
3 title = {MultiMolecule},
4 doi = {10.5281/zenodo.12638419},
5 publisher = {Zenodo},
6 url = {https://doi.org/10.5281/zenodo.12638419},
7 year = 2024,
8 month = may,
9 day = 4
10}SPDX-License-Identifier: AGPL-3.0-or-later