All models

hyenadna-medium-160k-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 · 485 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 (21 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
6.6M
Operations
485
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-medium-160k-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
m1610
Graph hash
e3a9f88a079c7524a057acb58f0e08db34c00387cac88beeef212a8a568bc33e
Skeleton hash
2134a208ea7b4e41e68608efa4afecf4bb30dc7dcc7f16eb00b7fec151f754da
Architecture hash
5698f67639546a8367cbda8fd8d953e24bd489e1a31877d28a20742a68b5ebbe
Diagram SHA-256
059f7434a86c4e4deb38b4c0f52c39b0aa93125764b6fdd6d486cdcd5e491b37
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 medium-160k 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}, 
}