Downloads · 30 days
33
1% of all-time downloads
mogam-ai/CDS-BART-denoising
CDS-BART-denoising is a feature extraction model from mogam-ai. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as mit.
CDS-BART is designed as an easy-to-use tool, facilitating accessibility for researchers to leverage the development of mRNA vaccines and therapeutics. The model is based on BART and pre-trained with mRNA data contains…
Downloads · 30 days
33
1% of all-time downloads
All-time downloads
5.8K
Public
Parameters
203M
812 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors812 MB · 100%
From the Hugging Face model README
CDS-BART is designed as an easy-to-use tool, facilitating accessibility for researchers to leverage the development of mRNA vaccines and therapeutics. The model is based on BART and pre-trained with mRNA data contains nine taxonomic groups provided by the NCBI RefSeq database. It is a BART-based foundation model that can be fine-tuned for various mRNA downstream tasks such as mRFP expression, mRNA stability.
The example code for loading pre-trained denoising model and tokenzier. BartModel has pre-trained for denoising and sequence representation tasks.
from transformers import (
BartTokenizerFast,
BartModel,
)
# Load tokenizer
tokenizer = BartTokenizerFast.from_pretrained("mogam-ai/CDS-BART-denoising")
# Load pre-trained model
model = BartModel.from_pretrained("mogam-ai/CDS-BART-denoising")
example_sequences = [
'ACGCGAGCGUCAUUUCGCGGGGCAUAUGUA'
]
encoded = tokenizer(
example_sequences,
max_length=850,
truncation=True,
padding="max_length",
return_tensors="pt"
)
output = model(
input_ids = encoded['input_ids'],
attention_mask = encoded['attention_mask']
)
hidden_states = output.last_hidden_state
Can add more here!