Downloads · 30 days
10
2% of all-time downloads
HBDX/Seq-TransfoRNA
Seq-TransfoRNA is a machine learning model from HBDX. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as gpl.
This model has been pushed to the Hub using the PytorchModelHubMixin integration: - Library: [More Information Needed] - Docs: [More Information Needed]
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
544
Public
Parameters
1.8M
78 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.1 MB · 91%
From the Hugging Face model README
This model has been pushed to the Hub using the PytorchModelHubMixin integration:
from transforna import GeneEmbeddModel,RnaTokenizer
import torch
model_name = 'Seq'
model_path = f"HBDX/{model_name}-TransfoRNA"
#load model and tokenizer
model = GeneEmbeddModel.from_pretrained(model_path)
model.eval()
#init tokenizer.
tokenizer = RnaTokenizer.from_pretrained(model_path,model_name=model_name)
output = tokenizer(['AAAGTCGGAGGTTCGAAGACGATCAGATAC','TTTTCGGAACTGAGGCCATGATTAAGAGGG'])
#inference
#gene_embedds is the latent space representation of the input sequence.
gene_embedd, _, activations,attn_scores_first,attn_scores_second = \
model(output['input_ids'])
#get sub class labels
sub_class_labels = model.convert_ids_to_labels(activations)
#get major class labels
major_class_labels = model.convert_subclass_to_majorclass(sub_class_labels)