buetnlpbio / bpe-only-rna-bert

huggingface.co
Total runs: 86
24-hour runs: -93
7-day runs: -79
30-day runs: -53
Model's Last Updated: July 14 2024
fill-mask

Introduction of bpe-only-rna-bert

Model Details of bpe-only-rna-bert

buetnlpbio/bpe-only-rna-bert is trained on BPE 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).

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/birna-tokenizer")

config = transformers.BertConfig.from_pretrained("buetnlpbio/bpe-only-rna-bert")
mysterybert = AutoModelForMaskedLM.from_pretrained("buetnlpbio/bpe-only-rna-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

Runs of buetnlpbio bpe-only-rna-bert on huggingface.co

86
Total runs
-93
24-hour runs
-86
3-day runs
-79
7-day runs
-53
30-day runs

More Information About bpe-only-rna-bert huggingface.co Model

bpe-only-rna-bert huggingface.co

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

bpe-only-rna-bert huggingface.co Url

https://huggingface.co/buetnlpbio/bpe-only-rna-bert

buetnlpbio bpe-only-rna-bert online free

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

buetnlpbio bpe-only-rna-bert online free url in huggingface.co:

https://huggingface.co/buetnlpbio/bpe-only-rna-bert

bpe-only-rna-bert install

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

bpe-only-rna-bert install url in huggingface.co:

https://huggingface.co/buetnlpbio/bpe-only-rna-bert

Url of bpe-only-rna-bert

bpe-only-rna-bert huggingface.co Url

Provider of bpe-only-rna-bert huggingface.co

buetnlpbio
ORGANIZATIONS

Other API from buetnlpbio