buetnlpbio / nuc-only-dna-bert

huggingface.co
Total runs: 71
24-hour runs: 1
7-day runs: 14
30-day runs: 35
Model's Last Updated: 2024年7月14日
fill-mask

Introduction of nuc-only-dna-bert

Model Details of nuc-only-dna-bert

buetnlpbio/nuc-only-dna-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).

BiRNA-BERT was trained using the MosaicBERT framework - https://huggingface.co/mosaicml/mosaic-bert-base

Usage

Extracting RNA embeddings
import torch
import transformers
from transformers import AutoModelForMaskedLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("buetnlpbio/bidna-tokenizer")

config = transformers.BertConfig.from_pretrained("buetnlpbio/nuc-only-dna-bert")
mysterybert = AutoModelForMaskedLM.from_pretrained("buetnlpbio/nuc-only-dna-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-dna-bert on huggingface.co

71
Total runs
1
24-hour runs
3
3-day runs
14
7-day runs
35
30-day runs

More Information About nuc-only-dna-bert huggingface.co Model

nuc-only-dna-bert huggingface.co

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

nuc-only-dna-bert huggingface.co Url

https://huggingface.co/buetnlpbio/nuc-only-dna-bert

buetnlpbio nuc-only-dna-bert online free

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

buetnlpbio nuc-only-dna-bert online free url in huggingface.co:

https://huggingface.co/buetnlpbio/nuc-only-dna-bert

nuc-only-dna-bert install

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

nuc-only-dna-bert install url in huggingface.co:

https://huggingface.co/buetnlpbio/nuc-only-dna-bert

Url of nuc-only-dna-bert

nuc-only-dna-bert huggingface.co Url

Provider of nuc-only-dna-bert huggingface.co

buetnlpbio
ORGANIZATIONS

Other API from buetnlpbio