buetnlpbio/nuc-only-rna-bert
is trained on Nucleotide tokens only (for ablation). Please consider using
buetnlpbio/birna-bert
instead.
Model Card for Model ID
BiRNA-BERT is a BERT-style transformer encoder model that generates embeddings for RNA sequences. BiRNA-BERT has been trained on BPE tokens and individual nucleotides. As a result, it can generate both granular nucleotide-level embeddings and efficient sequence-level embeddings (using BPE).
import torch
import transformers
from transformers import AutoModelForMaskedLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("buetnlpbio/birna-tokenizer")
config = transformers.BertConfig.from_pretrained("buetnlpbio/nuc-only-rna-bert")
mysterybert = AutoModelForMaskedLM.from_pretrained("buetnlpbio/nuc-only-rna-bert",config=config,trust_remote_code=True)
mysterybert.cls = torch.nn.Identity()
# To get nucleotide embeddings
char_embed = mysterybert(**tokenizer("A G C T A C G T A C G T", return_tensors="pt"))
print(char_embed.logits.shape) # CLS + 12 nucleotide token embeddings + SEP
Runs of buetnlpbio nuc-only-rna-bert on huggingface.co
51
Total runs
0
24-hour runs
-1
3-day runs
10
7-day runs
45
30-day runs
More Information About nuc-only-rna-bert huggingface.co Model
nuc-only-rna-bert huggingface.co
nuc-only-rna-bert huggingface.co is an AI model on huggingface.co that provides nuc-only-rna-bert's model effect (), which can be used instantly with this buetnlpbio nuc-only-rna-bert model. huggingface.co supports a free trial of the nuc-only-rna-bert model, and also provides paid use of the nuc-only-rna-bert. Support call nuc-only-rna-bert model through api, including Node.js, Python, http.
nuc-only-rna-bert huggingface.co is an online trial and call api platform, which integrates nuc-only-rna-bert's modeling effects, including api services, and provides a free online trial of nuc-only-rna-bert, you can try nuc-only-rna-bert online for free by clicking the link below.
buetnlpbio nuc-only-rna-bert online free url in huggingface.co:
nuc-only-rna-bert is an open source model from GitHub that offers a free installation service, and any user can find nuc-only-rna-bert on GitHub to install. At the same time, huggingface.co provides the effect of nuc-only-rna-bert install, users can directly use nuc-only-rna-bert installed effect in huggingface.co for debugging and trial. It also supports api for free installation.