buetnlpbio/bidna-bert
was trained on only Human Genome DNA dataset for 1 epoch (for ablation). Performance on other DNA types may be limited.
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/bidna-tokenizer")
config = transformers.BertConfig.from_pretrained("buetnlpbio/bidna-bert")
mysterybert = AutoModelForMaskedLM.from_pretrained("buetnlpbio/bidna-bert",config=config,trust_remote_code=True)
mysterybert.cls = torch.nn.Identity()
# To get sequence embeddings
seq_embed = mysterybert(**tokenizer("AGCTACGTACGT", return_tensors="pt"))
print(seq_embed.logits.shape) # CLS + 4 BPE token embeddings + SEP# 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 bidna-bert on huggingface.co
10
Total runs
0
24-hour runs
-1
3-day runs
0
7-day runs
6
30-day runs
More Information About bidna-bert huggingface.co Model
bidna-bert huggingface.co
bidna-bert huggingface.co is an AI model on huggingface.co that provides bidna-bert's model effect (), which can be used instantly with this buetnlpbio bidna-bert model. huggingface.co supports a free trial of the bidna-bert model, and also provides paid use of the bidna-bert. Support call bidna-bert model through api, including Node.js, Python, http.
bidna-bert huggingface.co is an online trial and call api platform, which integrates bidna-bert's modeling effects, including api services, and provides a free online trial of bidna-bert, you can try bidna-bert online for free by clicking the link below.
buetnlpbio bidna-bert online free url in huggingface.co:
bidna-bert is an open source model from GitHub that offers a free installation service, and any user can find bidna-bert on GitHub to install. At the same time, huggingface.co provides the effect of bidna-bert install, users can directly use bidna-bert installed effect in huggingface.co for debugging and trial. It also supports api for free installation.