GENA-LM is a transformer masked language model trained on human DNA sequence.
See the codeModernGENA 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.
| Model | Hugging Face |
|---|---|
| modernGENA base | AIRI-Institute/moderngena-base |
| modernGENA large | AIRI-Institute/moderngena-large |
A/C/G/T[-16 kbp, +8 kbp] around each unique TSS
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.
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.
See examples/modernGENA for:
sequence_classification/)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
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},
}
Jupyter Notebook
89.5%
Python
8.3%
Shell
2.2%
GENA-LM is a transformer masked language model trained on human DNA sequence.
See the codeModernGENA 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.
| Model | Hugging Face |
|---|---|
| modernGENA base | AIRI-Institute/moderngena-base |
| modernGENA large | AIRI-Institute/moderngena-large |
A/C/G/T[-16 kbp, +8 kbp] around each unique TSS
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.
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.
See examples/modernGENA for:
sequence_classification/)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
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},
}
Jupyter Notebook
89.5%
Python
8.3%
Shell
2.2%