All models

hyenadna-tiny-1k-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 · 125 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 (12 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
438.1K
Operations
125
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-tiny-1k-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
m1613
Graph hash
48f81e31a5c155d66a1a79a277a0e48d681a121e7153bf889aa1bbab13edf926
Skeleton hash
5529656adc509218c8951ef6d87df257d119e3ba7c8404f38457aa8059a83155
Architecture hash
bd58365eea460e1eb52daca48be9b4304cf28d0ed09dd1ed42c075b394ea84b1
Diagram SHA-256
2664404a35fdfbc1abe711ef60d137c5c77e8df5c2332e3181f028f462ce008b
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 tiny-1k checkpoint, the model card suggests that a T4 GPU is enough for pretraining, 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}, 
}