Downloads · 30 days
1K
36% of all-time downloads
AIRI-Institute/moderngena-large
moderngena-large is a machine learning model from AIRI-Institute. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
ModernGENA is a DNA foundation model based on ModernBERT (a modernized BERT-style encoder architecture) adapted for genomic sequence modeling. ModernGENA large is the 377M-parameter version introduced in the paper Bac…
Downloads · 30 days
1K
36% of all-time downloads
All-time downloads
2.8K
Public
Parameters
378M
3 GB on disk
Likes
4
Public
Click a slice to open those files.
.bin1.5 GB · 50%
From the Hugging Face model README
ModernGENA is a DNA foundation model based on ModernBERT (a modernized BERT-style encoder architecture) adapted for genomic sequence modeling.
ModernGENA large is the 377M-parameter version introduced in the paper Back to BERT in 2026: ModernGENA as a Strong, Efficient Baseline for DNA Foundation Models.
How to load pre-trained model to fine-tune it on classification task: GENA_LM repository
torch.compile supportThis makes it a practical baseline for genomic modeling experiments and future architectural comparisons.
ModernGENA uses the 32k BPE vocabulary (AIRI-Institute/gena-lm-bert-base-t2t) introduced in GENA-LM, built over the DNA alphabet symbols A/T/G/C/N, with special tokens [CLS], [SEP], [PAD], [UNK], and [MASK].
A/C/G/TTo reduce overrepresentation of simple repeats and enrich biologically informative regions, training intervals were sampled around transcription start sites:
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("AIRI-Institute/gena-lm-bert-base-t2t")
model = AutoModel.from_pretrained("AIRI-Institute/moderngena-large", trust_remote_code=True, attn_implementation="flash_attention_2")
For evaluation results, see our paper: