AIRI-Institute/GENA_LM
关于
GENA-LM is a transformer masked language model trained on human DNA sequence.
人工智能与机器学习可以做什么
- ModernBERT-based encoder architecture
- Regulatory and coding regions upsampling during pretraining
- Hybrid local/global attention
- RoPE positional embeddings
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文modernGENA
ModernGENA is a DNA foundation model family based on a ModernBERT-style encoder adapted for genomic sequence modeling.
We are releasing modernGENA base and large, designed to be faster and more efficient that our previous generation of GENA models
Start from our modernGENA examples and see the paper Back to BERT in 2026: ModernGENA as a Strong, Efficient Baseline for DNA Foundation Models.
Pre-trained models
| Model | Hugging Face |
|---|---|
| modernGENA base | AIRI-Institute/moderngena-base |
| modernGENA large | AIRI-Institute/moderngena-large |
Technical features
- ModernBERT-based encoder architecture
- Regulatory and coding regions upsampling during pretraining
- Hybrid local/global attention
- RoPE positional embeddings
- End-to-end unpadding
- FlashAttention-based efficient inference on compatible hardware
- Same 32k BPE tokenizer as GENA-LM for straightforward transition from previous GENA workflows
Pretraining corpus
- 443 vertebrate genome assemblies
- 353,574,093,776 bp total
- Includes both forward strand and reverse complement sequences
- Excludes sequences containing ambiguous symbols other than
A/C/G/T - Sampling window:
[-16 kbp, +8 kbp]around each unique TSS - Overlapping intervals merged with BEDTools, both strands included
Benchmarking

Inference efficiency on an NVIDIA A100 (80 GB). Models from the primary baseline set are benchmarked. Throughput is averaged over 10 timing runs per model.

ModernGENA improves downstream performance on NT bench and leads among comparable-size models. Circles denote task-specific ranks, while diamonds indicate the average rank across tasks.
Quick start
Load a pretrained model
import importlib.util
from transformers import AutoTokenizer, AutoModel
model_kwargs = {"trust_remote_code": True}
if importlib.util.find_spec("flash_attn") is not None:
model_kwargs["attn_implementation"] = "flash_attention_2"
tokenizer = AutoTokenizer.from_pretrained("AIRI-Institute/moderngena-base", **model_kwargs)
model = AutoModel.from_pretrained("AIRI-Institute/moderngena-base", **model_kwargs)
Swap the model name to AIRI-Institute/moderngena-large to use modernGENA large.
Run training examples
See examples/modernGENA for:
- sequence classification (
sequence_classification/) - token regression (
token_regression/)
From the repository root:
conda env create -f examples/modernGENA/environment.yml
conda activate moderngena-example
bash examples/modernGENA/sequence_classification/download_and_prepare_data.sh
python examples/modernGENA/sequence_classification/train.py
Citation
ModernGENA: Back to BERT in 2026: ModernGENA as a Strong, Efficient Baseline for DNA Foundation Models
original GENA paper:
@article{GENA_LM,
author = {Fishman, Veniamin and Kuratov, Yuri and Shmelev, Aleksei and Petrov, Maxim and Penzar, Dmitry and Shepelin, Denis and Chekanov, Nikolay and Kardymon, Olga and Burtsev, Mikhail},
title = {GENA-LM: a family of open-source foundational DNA language models for long sequences},
journal = {Nucleic Acids Research},
volume = {53},
number = {2},
pages = {gkae1310},
year = {2025},
month = {01},
issn = {0305-1048},
doi = {10.1093/nar/gkae1310},
url = {https://doi.org/10.1093/nar/gkae1310},
eprint = {https://academic.oup.com/nar/article-pdf/53/2/gkae1310/61443229/gkae1310.pdf},
}
探索相关项目
加载中…