CreatiPhage-1.5
CreatiPhage-1.5 is a 140.27M-parameter autoregressive DNA language model for bacteriophage genome understanding and generation. This repository contains the FP32 inference weights for the pretrained base checkpoint at step 32,440.
Evaluation
Figure 3a鈥揵. Panel a compares next-token perplexity on shared, frozen genome splits. Panel b shows mean Spearman correlation on five bacterial assays. Whiskers span one standard deviation across five folds.
| Model | Validation perplexity 路 3,000 genomes | Test perplexity 路 7,500 genomes |
|---|---|---|
| CreatiPhage-1.5 | 2.9944 | 2.9753 |
| CreatiPhage-1 | 3.3677 | 3.3550 |
| megaDNA | 3.5590 | 3.5491 |
CreatiPhage-1.5 had the lowest perplexity on both splits and the highest mean correlation on all five assays. On a separate panel of 62 phage 位 genes, CreatiPhage-1 had the highest AUROC for coding, start and stop perturbations. Technical report, Table 1
Generated sequences, protein predictions, structural matches, and completeness estimates are computational results. They do not demonstrate biological activity or experimental safety.
Quick start
git clone https://github.com/dhnihaoya/CreatiPhage-1.5.git
cd CreatiPhage-1.5
pip install -r requirements.txt
python examples/generate.py \
--checkpoint dinghhhhhhhhhhhhhhh/CreatiPhage-1.5 \
--primer ATGCGT --length 32 --device cpu
from creatiphage import CreatiPhage
model = CreatiPhage.from_pretrained(
"dinghhhhhhhhhhhhhhh/CreatiPhage-1.5"
).eval()
The loader downloads model.safetensors and config.json directly. It does not require trust_remote_code or Transformers.
Model details
Figure 1a. The model predicts the next nucleotide from the observed prefix. Layout and phage artwork adapted from CPDD, as credited in the report.
- Parameters: 140,271,798, stored as FP32 SafeTensors.
- Context: 131,072 tokens, including special tokens.
- Backbone: 13 layers, hidden width 768, 12 query heads, and 2 key/value heads.
- Attention: 4,096-token local causal attention with global layers 0, 4, 8, and 12.
- Other components: Engram k-mer memory, block attention residuals, QK normalization, RoPE, and SwiGLU.
- Readouts: a tied next-token head and a separate 64-class next-three-base auxiliary head. The primary head is used for likelihoods and generation.
- Training: 787,316 records spanning 33.06 Gbp; two core passes in opposite orientations, with medium-quality segments filling unused window space.
- Checkpoint: step 32,440 of the final pretraining recipe.
The final feed-forward layer has width 1,920 rather than 3,776. The auxiliary three-base head is retained because it was part of training, but is not required for next-token inference.
Tokenization
The vocabulary is BOS/PAD=0, A=1, T=2, C=3, G=4, EOS=5, and FRAGMENT=6. Complete records use [BOS, bases, EOS]; incomplete training fragments use [FRAGMENT, BOS, bases, EOS]. Only ACGT sequence input is accepted.
For generation, prepend BOS and stop at the first EOS. Keep model weights in FP32. On CUDA, BF16 autocast can be used for acceleration without casting the stored weights to BF16.
Files
model.safetensors: all 210 model tensors in FP32, without optimizer state.config.json: public model architecture and checkpoint metadata.tokenizer.json: nucleotide and special-token IDs.generation_config.json: default generation settings.
License
The model weights are released under Creative Commons Attribution 4.0 International. The accompanying code is released separately under Apache License 2.0.
Citation
@techreport{ding2026creatiphage15,
title={CreatiPhage-1.5: An improved DNA language model for bacteriophages},
author={Ding, Hao and Wu, Nannan and Qiu, Tianyi},
year={2026},
note={Technical report}
}
- Downloads last month
- 47


