Downloads · 30 days
51
7% of all-time downloads
AIRI-Institute/genatator-moderngena-base-multispecies-region-model
genatator-moderngena-base-multispecies-region-model is a fill-mask model from AIRI-Institute. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
GENATATOR-ModernGENA (Region Model) is a DNA language model fine-tuned for intragenic region detection directly from genomic DNA sequences.
Downloads · 30 days
51
7% of all-time downloads
All-time downloads
710
Public
Parameters
136M
542 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors542 MB · 100%
From the Hugging Face model README
GENATATOR-ModernGENA (Region Model) is a DNA language model fine-tuned for intragenic region detection directly from genomic DNA sequences.
The model performs token-level multilabel classification to identify strand-aware genomic regions, complementing the edge model used for transcript boundary detection.
This model focuses on region-level signal detection, specifically:
Model name on Hugging Face:
genatator-moderngena-base-multispecies-region-model
Architecture properties:
The model predicts six classes.
The correct order of output classes is:
["TSS+", "TSS-", "PolyA+", "PolyA-", "Intragenic+", "Intragenic-"]
Where:
TSS+ — transcription start site on the forward strandTSS- — transcription start site on the reverse strandPolyA+ — transcript termination site on the forward strandPolyA- — transcript termination site on the reverse strandIntragenic+ — intragenic region (forward strand)Intragenic- — intragenic region (reverse strand)This model was fine-tuned on full genomic sequences, including intergenic regions.
Training data includes annotations for:
Dataset characteristics:
The model is trained to distinguish both transcribed regions and background genomic sequence across species.
This model is the region model in the ModernGENA transcript discovery pipeline.
It predicts region-level probability tracks for:
The full pipeline consists of:
Edge model predicts transcript boundaries (TSS / PolyA)
Region model (this model) predicts intragenic regions
Post-processing
The region model is used to:
The model outputs region probability tracks, which are used during post-processing to filter and validate transcript predictions.
from transformers import AutoTokenizer, AutoModelForTokenClassification
repo_id = "AIRI-Institute/genatator-moderngena-base-multispecies-region-model"
tokenizer = AutoTokenizer.from_pretrained(
repo_id,
trust_remote_code=True,
)
model = AutoModelForTokenClassification.from_pretrained(
repo_id,
trust_remote_code=True,
)
model.eval()
import torch
from transformers import AutoTokenizer, AutoModelForTokenClassification
repo_id = "AIRI-Institute/genatator-moderngena-base-multispecies-region-model"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForTokenClassification.from_pretrained(repo_id, trust_remote_code=True)
sequence = "ACGTACGTACGTACGTACGTACGTACGTACGT"
enc = tokenizer(sequence, return_tensors="pt")
with torch.no_grad():
outputs = model(**enc)
logits = outputs.logits
print("Input shape:", enc["input_ids"].shape)
print("Logits shape:", logits.shape)
Example output:
Input shape: torch.Size([1, sequence_length])
Logits shape: torch.Size([1, sequence_length, 6])
Each token receives 6 logits corresponding to the six region and boundary classes.
To obtain transcript annotations:
GENATATOR-ModernGENA region model is a ModernBERT-based DNA language model for strand-aware intragenic region detection across multiple species.
It complements the edge model and enables: