multimolecule / hyenadna-tiny

huggingface.co
Total runs: 18
24-hour runs: 0
7-day runs: 2
30-day runs: -5
Model's Last Updated: May 31 2026
text-generation

Introduction of hyenadna-tiny

Model Details of hyenadna-tiny

HyenaDNA

Pre-trained model on human reference genome using a causal language modeling (CLM) objective with the Hyena operator.

Disclaimer

This is an UNOFFICIAL implementation of the HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution by Eric Nguyen, Michael Poli, Marjan Faizi, et al.

The OFFICIAL repository of HyenaDNA is at HazyResearch/hyena-dna .

The MultiMolecule team has confirmed that the provided model and checkpoints are producing the same intermediate representations as the original implementation.

The team releasing HyenaDNA did not write this model card for this model so this model card has been written by the MultiMolecule team.

Model Details

HyenaDNA is a decoder-only model pre-trained on the human reference genome with single nucleotide tokenization in a self-supervised fashion. This means that the model was trained on the raw nucleotides of DNA sequences only, with an automatic process to generate inputs and labels from those sequences. Please refer to the Training Details section for more information on the training process.

HyenaDNA replaces the attention mechanism with the Hyena operator — a subquadratic sequence mixer based on implicit long convolutions. This enables O(L log L) complexity for sequence modeling, allowing the model to handle context lengths up to 1 million base pairs at single nucleotide resolution.

The Hyena operator uses:

  • Implicit filters : MLP-parameterized convolution kernels with learned positional embeddings
  • Element-wise gating : Multiplicative interactions between projected input channels
  • FFT convolution : Efficient computation via the Fast Fourier Transform
Variants
Model Specification
Variants Num Layers Hidden Size Intermediate Size Num Parameters (M) FLOPs (G) MACs (G) Max Num Tokens
HyenaDNA-large-1m 8 256 1024 6.62 6.69 3.35 1,000,002
HyenaDNA-medium-450k 450,002
HyenaDNA-medium-160k 160,002
HyenaDNA-small-32k 4 3.34 3.35 1.67 32,770
HyenaDNA-tiny-1k-d256 2 1.71 1.67 0.84 1,026
HyenaDNA-tiny-16k-d128 128 512 0.45 0.44 0.22 16,386
HyenaDNA-tiny-1k 1,026
Links
Usage

The model file depends on the multimolecule library. You can install it using pip:

pip install multimolecule
Direct Use
Text Generation

You can use this model directly with a pipeline for text generation:

import multimolecule  # you must import multimolecule to register models
from transformers import pipeline

generator = pipeline("text-generation", model="multimolecule/hyenadna-tiny-160k")
output = generator("ATCGATCGATCG", max_new_tokens=50)
Downstream Use
Extract Features

Here is how to use this model to get the features of a given sequence in PyTorch:

from multimolecule import DnaTokenizer, HyenaDnaModel


tokenizer = DnaTokenizer.from_pretrained("multimolecule/hyenadna-tiny-160k")
model = HyenaDnaModel.from_pretrained("multimolecule/hyenadna-tiny-160k")

text = "ATCGATCGATCGATCG"
input = tokenizer(text, return_tensors="pt")

output = model(**input)
Sequence Classification / Regression

This model is not fine-tuned for any specific task. You will need to fine-tune the model on a downstream task to use it for sequence classification or regression.

Here is how to use this model as backbone to fine-tune for a sequence-level task in PyTorch:

import torch
from multimolecule import DnaTokenizer, HyenaDnaForSequencePrediction


tokenizer = DnaTokenizer.from_pretrained("multimolecule/hyenadna-tiny-160k")
model = HyenaDnaForSequencePrediction.from_pretrained("multimolecule/hyenadna-tiny-160k")

text = "ATCGATCGATCGATCG"
input = tokenizer(text, return_tensors="pt")
label = torch.tensor([1])

output = model(**input, labels=label)
Token Classification / Regression

This model is not fine-tuned for any specific task. You will need to fine-tune the model on a downstream task to use it for token classification or regression.

Here is how to use this model as backbone to fine-tune for a nucleotide-level task in PyTorch:

import torch
from multimolecule import DnaTokenizer, HyenaDnaForTokenPrediction


tokenizer = DnaTokenizer.from_pretrained("multimolecule/hyenadna-tiny-160k")
model = HyenaDnaForTokenPrediction.from_pretrained("multimolecule/hyenadna-tiny-160k")

text = "ATCGATCGATCGATCG"
input = tokenizer(text, return_tensors="pt")
label = torch.randint(2, (len(text), ))

output = model(**input, labels=label)
Training Details

HyenaDNA used Causal Language Modeling (CLM) as the pre-training objective: given a DNA sequence, the model is trained to predict the next nucleotide token autoregressively.

Training Data

The HyenaDNA model was pre-trained on the human reference genome (GRCh38). The training data consists of single nucleotide-level DNA sequences from all human chromosomes. Sequences are tokenized at the individual character level (A, C, G, T, N) without k-mer encoding.

The dataset is split into training and test sets by chromosome, with held-out chromosomes used for evaluation.

Training Procedure
Preprocessing

HyenaDNA used causal language modeling (CLM) as the pre-training objective: given a DNA sequence of length L, the model predicts the next nucleotide at each position, i.e., predicting token x_{t+1} given x_1, ..., x_t.

Single nucleotide tokenization is used with a vocabulary of 12 tokens: A, C, G, T, N, and special tokens (CLS, SEP, BOS, MASK, PAD, RESERVED, UNK).

Sequence Length Warm-up

A key training strategy in HyenaDNA is progressive sequence length warm-up. Training begins with short sequences and gradually increases the context length:

  1. Training starts with sequences of length L=64.
  2. The sequence length is doubled at each warm-up stage (64 → 128 → 256 → ... → target length).
  3. This strategy enables stable training at very long context lengths that would be difficult to train from scratch.
Pre-training

The model was trained on up to 8 NVIDIA A100 (80GB) GPUs.

  • Batch size: 64 -- 256
  • Steps: 10,000 -- 20,000
  • Optimizer: AdamW
  • Learning rate: 1.5e-4 -- 6e-4
  • Learning rate scheduler: Cosine
  • Weight decay: 0.1
Citation
@inproceedings{NEURIPS2023_86ab6927,
  author = {Nguyen, Eric and Poli, Michael and Faizi, Marjan and Thomas, Armin and Wornow, Michael and Birch-Sykes, Callum and Massaroli, Stefano and Patel, Aman and Rabideau, Clayton and Bengio, Yoshua and Ermon, Stefano and R\'{e}, Christopher and Baccus, Stephen},
  booktitle = {Advances in Neural Information Processing Systems},
  editor = {A. Oh and T. Naumann and A. Globerson and K. Saenko and M. Hardt and S. Levine},
  pages = {43177--43201},
  publisher = {Curran Associates, Inc.},
  title = {HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution},
  url = {https://proceedings.neurips.cc/paper_files/paper/2023/file/86ab6927ee4ae9bde4247793c46797c7-Paper-Conference.pdf},
  volume = {36},
  year = {2023}
}

The artifacts distributed in this repository are part of the MultiMolecule project. If you use MultiMolecule in your research, you must cite the MultiMolecule project as follows:

@software{chen_2024_12638419,
  author    = {Chen, Zhiyuan and Zhu, Sophia Y.},
  title     = {MultiMolecule},
  doi       = {10.5281/zenodo.12638419},
  publisher = {Zenodo},
  url       = {https://doi.org/10.5281/zenodo.12638419},
  year      = 2024,
  month     = may,
  day       = 4
}
Contact

Please use GitHub issues of MultiMolecule for any questions or comments on the model card.

Please contact the authors of the HyenaDNA paper for questions or comments on the paper/model.

License

This model is licensed under the GNU Affero General Public License .

For additional terms and clarifications, please refer to our License FAQ .

SPDX-License-Identifier: AGPL-3.0-or-later

Runs of multimolecule hyenadna-tiny on huggingface.co

18
Total runs
0
24-hour runs
0
3-day runs
2
7-day runs
-5
30-day runs

More Information About hyenadna-tiny huggingface.co Model

More hyenadna-tiny license Visit here:

https://choosealicense.com/licenses/agpl-3.0

hyenadna-tiny huggingface.co

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

multimolecule hyenadna-tiny online free

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

multimolecule hyenadna-tiny online free url in huggingface.co:

https://huggingface.co/multimolecule/hyenadna-tiny

hyenadna-tiny install

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

hyenadna-tiny install url in huggingface.co:

https://huggingface.co/multimolecule/hyenadna-tiny

Url of hyenadna-tiny

Provider of hyenadna-tiny huggingface.co

multimolecule
ORGANIZATIONS

Other API from multimolecule

huggingface.co

Total runs: 12.8K
Run Growth: -20.9K
Growth Rate: -164.14%
Updated:February 02 2026
huggingface.co

Total runs: 1.2K
Run Growth: 107
Growth Rate: 9.01%
Updated:February 02 2026
huggingface.co

Total runs: 310
Run Growth: -7.4K
Growth Rate: -2388.71%
Updated:February 02 2026
huggingface.co

Total runs: 303
Run Growth: 124
Growth Rate: 40.92%
Updated:February 02 2026
huggingface.co

Total runs: 165
Run Growth: -537
Growth Rate: -325.45%
Updated:February 02 2026
huggingface.co

Total runs: 48
Run Growth: 0
Growth Rate: 0.00%
Updated:December 16 2024
huggingface.co

Total runs: 31
Run Growth: 27
Growth Rate: 87.10%
Updated:May 31 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 14 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 14 2024