All models

hyenadna-small-32k-seqlen-hf (LongSafari)

HyenaDNA is an attention-free DNA language model that reads genomes one nucleotide at a time over long contexts.

Molecules, proteins and genomics · 245 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (15 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
HyenaDNA
Parameters
3.3M
Operations
245
Framework
PyTorch
Recurrent
No
Published
NeurIPS (arXiv 2023)
Cited by
428 (as of 30 November 2026)
Authors
Eric Nguyen, Michael Poli, Marjan Faizi and others
Name in source
LongSafari:hyenadna-small-32k-seqlen-hf
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1611
Graph hash
1b8fef92a8ed82638b0b0f6383ddc1656569741e590ceaa28b174d8a83cea8ad
Skeleton hash
dcb2fc14ae106e77e2fef16156a907ac41345c20ee46c4a416a7b91b892e5732
Architecture hash
beeaa24c4d65bef831bae86a759c60985c65debbb5ee3bf023f176324d463bda
Diagram SHA-256
12f9c3a95af072bdacdee3ac80251ec3e0a46652e914f6933a32ea4f7daf19e0
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

For this small-32k checkpoint, the model card suggests an A100-40GB GPU for pretraining and a T4 for fine-tuning and inference.

About this model's family

HyenaDNA is a genomic foundation model: a network pretrained on the human reference genome that reads DNA one nucleotide at a time, with context lengths of up to 1 million tokens. The paper's starting point is that earlier Transformer-based genomic models were limited by the quadratic scaling of attention to contexts of 512 to 4k tokens, and that their tokenizers or fixed k-mers gave up single nucleotide resolution.

The model is a decoder-only stack of blocks, each a Hyena operator followed by a feed-forward network. Hyena operators are a subquadratic replacement for attention, built from implicit convolutions and gating. The tokenizer works on single characters with a vocabulary of 4 nucleotides plus special tokens, and pretraining is next nucleotide prediction. For ultralong sequences the authors add a sequence length warm-up schedule that starts at 64 and doubles the window at each stage.

On fine-tuned benchmarks from the Nucleotide Transformer, the paper reports the best results at the time on 12 of 18 datasets, using a model with orders of magnitude fewer parameters and less pretraining data. The released checkpoints come in different model sizes and maximum training sequence lengths, all pretrained on a single human reference genome (hg38).

Key idea. HyenaDNA applies the attention-free Hyena architecture to DNA, pretraining on the human reference genome at single nucleotide resolution with context lengths of up to 1 million tokens.

  • hyenadna
  • hyena dna
  • genomic foundation model
  • dna language model
  • long-range genomic sequence modeling
  • single nucleotide resolution
  • dna sequence classification
  • genomics
  • longsafari

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{nguyen2023hyenadnalongrangegenomicsequence,
      title={HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution}, 
      author={Eric Nguyen and Michael Poli and Marjan Faizi and Armin Thomas and Callum Birch-Sykes and Michael Wornow and Aman Patel and Clayton Rabideau and Stefano Massaroli and Yoshua Bengio and Stefano Ermon and Stephen A. Baccus and Chris Ré},
      year={2023},
      eprint={2306.15794},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2306.15794}, 
}