genbio-ai / AIDO.DNA-7B

huggingface.co
Total runs: 73
24-hour runs: 0
7-day runs: 36
30-day runs: -2
Model's Last Updated: September 13 2025

Introduction of AIDO.DNA-7B

Model Details of AIDO.DNA-7B

AIDO.DNA-7B

AIDO.DNA-7B is DNA foundation model trained on 10.6 billion nucleotides from 796 species, enabling genome mining, in silico mutagenesis studies, gene expression prediction, and directed sequence generation.

By scaling model depth while maintaining a short context length of 4000 nucleotides, AIDO.DNA shows substantial improvements across a breadth of tasks in functional genomics using transfer learning, sequence generation, and unsupervised annotation of functional elements. Notably, AIDO.DNA outperforms prior encoder-only architectures without new data, suggesting that new scaling laws are needed to achieve compute-optimal DNA language models.

An Overview of AIDO.DNA-7B
Model Architectural Details

AIDO.DNA-7B is based on the bidirectional transformer encoder (BERT) architecture with single-nucleotide tokenization, and is optimized using a masked language modeling (MLM) training objective.

To learn semantically meaningful representations, we employed an BERT-style encoder-only dense transformer architecture. We make minor updates to this architecture to align with current best practices, including using SwiGLU and LayerNorms. Additionally, we use Rotary Positional Embeddings (RoPE), given that DNA syntax does not function based on absolute nucleotide positions but nucleotides interact in highly local and context-specific ways. Below are more detailes about the model architecture:

Model Arch Component Value
Num Attention Heads 32
Num Hidden Layers 32
Hidden Size 4352
Intermediate Size 11584
Vocab Size 16
Context Length 4000
Pre-training of AIDO.DNA-7B

Here we briefly introduce the details of pre-training of AIDO.DNA-7B. For more detailed information, please refer to our paper .

Data

To test whether representation capacity has limited the development of DNA language models in previous studies, we utilize the data set and splits from the Nucleotide Transformer. Starting from a total of 812 genomes with 712 for training, 50 for validation, and 50 for testing, we removed 17 entries which had been deleted from NCBI since the original dataset’s publication on Hugging Face. One of these was the important model organism Rattus norvegigus, which we replaced with the current reference genome. This resulted in 696 genomes for training, 50 for validation, and 50 for testing. We pre-trained AIDO.DNA-7B With a total of 10.6 billion training tokens.

Training Details

The weights of our seven billion parameter model occupy over 200GB of memory in 32 bit precision. To train a model of this size, we use model parallelism to split training across 256 H100 GPUs using the Megatron-LM framework. We also employed bfloat16 mixed precision training and FlashAttention-2 to allow for training with large context length at scale. With this configuration, AIDO.DNA-7B took 8 days to train.

Hyper-params Value
Global Batch Size 1024
Per Device Micro Batch Size 2
Precision Mixed FP32-BF16
Total Iters 100000
Tokenization

To minimize bias and learn high-resolution single-nucleotide dependencies, we opted to align closely with the real data and use character-level tokenization with a 5-letter vocabulary: A, T, C, G, N , where N is commonly used in gene sequencing to denote uncertain elements. Sequences were also prefixed with a [CLS] token and suffixed with a [EOS] token as hooks for downstream tasks. We chose a context length of 4,000 nucleotides as the longest context which would fit within AIDO.DNA-7B during pretraining, and chunked our dataset of 796 genomes into non-overlapping segments.

Evaluation of AIDO.DNA-7B

We evaluate the benefits of pretraining AIDO.DNA-7B by conducting a comprehensive series of experiments related to functional genomics, genome mining, metabolic engineering, synthetic biology, and therapeutics design, covering supervised, unsupervised, and generative objectives. Unless otherwise stated, hyperparameters were determined by optimizing model performance on a 10% validation split of the training data, and models were tested using the checkpoint with the lowest validation loss. For more detailed information, please refer to our paper ).

Results
Downstream results of AIDO.DNA-7B
How to Use
Build any downstream models from this backbone with ModelGenerator

For more information, visit: Model Generator

mgen fit --model SequenceClassification --model.backbone aido_dna_7b --data SequenceClassificationDataModule --data.path <hf_or_local_path_to_your_dataset>
mgen test --model SequenceClassification --model.backbone aido_dna_7b --data SequenceClassificationDataModule --data.path <hf_or_local_path_to_your_dataset>
Or use directly in Python
Embedding
from modelgenerator.tasks import Embed
model = Embed.from_config({"model.backbone": "aido_dna_7b"}).eval()
collated_batch = model.collate({"sequences": ["ACGT", "AGCT"]})
embedding = model(collated_batch)
print(embedding.shape)
print(embedding)
Sequence Level Classification
import torch
from modelgenerator.tasks import SequenceClassification
model = SequenceClassification.from_config({"model.backbone": "aido_dna_7b", "model.n_classes": 2}).eval()
collated_batch = model.collate({"sequences": ["ACGT", "AGCT"]})
logits = model(collated_batch)
print(logits)
print(torch.argmax(logits, dim=-1))
Token Level Classification
import torch
from modelgenerator.tasks import TokenClassification
model = TokenClassification.from_config({"model.backbone": "aido_dna_7b", "model.n_classes": 3}).eval()
collated_batch = model.collate({"sequences": ["ACGT", "AGCT"]})
logits = model(collated_batch)
print(logits)
print(torch.argmax(logits, dim=-1))
Regression
from modelgenerator.tasks import SequenceRegression
model = SequenceRegression.from_config({"model.backbone": "aido_dna_7b"}).eval()
collated_batch = model.collate({"sequences": ["ACGT", "AGCT"]})
logits = model(collated_batch)
print(logits)
Citation

Please cite AIDO.DNA using the following BibTeX code:

@inproceedings{ellington_accurate_2024,
    title = {Accurate and General DNA Representations Emerge from Genome Foundation Models at Scale},
    url = {https://www.biorxiv.org/content/10.1101/2024.12.01.625444v1},
    doi = {10.1101/2024.12.01.625444},
    publisher = {bioRxiv},
    author = {Ellington, Caleb N. and Sun, Ning and Ho, Nicholas and Tao, Tianhua and Mahbub, Sazan and Li, Dian and Zhuang, Yonghao and Wang, Hongyi and Song, Le and Xing, Eric P.},
    year = {2024},
    booktitle = {NeurIPS 2024 Workshop on AI for New Drug Modalities},
}

Runs of genbio-ai AIDO.DNA-7B on huggingface.co

73
Total runs
0
24-hour runs
1
3-day runs
36
7-day runs
-2
30-day runs

More Information About AIDO.DNA-7B huggingface.co Model

More AIDO.DNA-7B license Visit here:

https://choosealicense.com/licenses/other

AIDO.DNA-7B huggingface.co

AIDO.DNA-7B huggingface.co is an AI model on huggingface.co that provides AIDO.DNA-7B's model effect (), which can be used instantly with this genbio-ai AIDO.DNA-7B model. huggingface.co supports a free trial of the AIDO.DNA-7B model, and also provides paid use of the AIDO.DNA-7B. Support call AIDO.DNA-7B model through api, including Node.js, Python, http.

genbio-ai AIDO.DNA-7B online free

AIDO.DNA-7B huggingface.co is an online trial and call api platform, which integrates AIDO.DNA-7B's modeling effects, including api services, and provides a free online trial of AIDO.DNA-7B, you can try AIDO.DNA-7B online for free by clicking the link below.

genbio-ai AIDO.DNA-7B online free url in huggingface.co:

https://huggingface.co/genbio-ai/AIDO.DNA-7B

AIDO.DNA-7B install

AIDO.DNA-7B is an open source model from GitHub that offers a free installation service, and any user can find AIDO.DNA-7B on GitHub to install. At the same time, huggingface.co provides the effect of AIDO.DNA-7B install, users can directly use AIDO.DNA-7B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

AIDO.DNA-7B install url in huggingface.co:

https://huggingface.co/genbio-ai/AIDO.DNA-7B

Url of AIDO.DNA-7B

AIDO.DNA-7B huggingface.co Url

Provider of AIDO.DNA-7B huggingface.co

genbio-ai
ORGANIZATIONS

Other API from genbio-ai

huggingface.co

Total runs: 48
Run Growth: -25
Growth Rate: -53.19%
Updated:July 26 2026