loubnabnl's picture
loubnabnl HF Staff
Update README.md
cb4c13a verified
metadata
license: other
task_categories:
  - text-generation
tags:
  - biology
  - genomics
  - dna
pretty_name: Carbon Pretraining Corpus
size_categories:
  - 1T<n<10T
language: []
configs:
  - config_name: eukaryote_generator
    data_files:
      - split: train
        path: eukaryote_generator/**/*.parquet
  - config_name: mrna_evo2
    data_files:
      - split: train
        path: mrna_evo2/*.parquet
  - config_name: mrna_splice_evo2
    data_files:
      - split: train
        path: mrna_splice_evo2/*.parquet
  - config_name: prokaryote_evo2
    data_files:
      - split: train
        path: prokaryote_evo2/*.parquet
  - config_name: eukaryote_generator_10B_subset
    data_files:
      - split: train
        path: eukaryote_generator_10B_subset/**/*.parquet

🧬 Carbon Pretraining Corpus

Description

173M DNA & RNA sequences Β· 1.1 trillion nucleotides β€” the DNA pretraining mixture used to train Carbon, a genomic foundation model.

This dataset is a collection of data sources intended for training genomic foundation models, such as Carbon. It contains DNA and RNA sequences spanning eukaryote and prokaryote species. Across the four main configs it totals 1.1 T DNA base pairs (180B tokens with Carbon's 6-mer tokenizer). A pre-sampled 10B-token eukaryote subset (eukaryote_generator_10B_subset) is also provided for smaller / faster runs.

Subset Domain Source Size Rows Nucleotides
eukaryote_generator Eukaryote genomes (≀ 100 kbp) GenerTeam / GENERATOR 191.9 GB 46,323,396 423.4 Gbp
mrna_evo2 Messenger RNA Arc Institute / OpenGenome2 54.8 GB 52,702,454 115.9 Gbp
mrna_splice_evo2 mRNA + splice & promoter Arc Institute / OpenGenome2 92.9 GB 56,877,762 197.4 Gbp
prokaryote_evo2 Prokaryote genomes (GTDB + IMG/PR) Arc Institute / OpenGenome2 166.0 GB 17,408,059 357.5 Gbp
eukaryote_generator_10B_subset Eukaryote subsample (10B tokens, natural species distribution) derived from eukaryote_generator 27.6 GB 6,562,876 60.0 Gbp

Nucleotides are counted in base pairs (Gbp = billion nucleotides).

Quick biology primer

DNA is the molecule that stores genetic information in all living things. It is a sequence of four letters β€” A, T, G, C β€” and a genome can be anywhere from thousands to billions of these letters long. Training a language model on DNA means treating those letters like tokens and learning the statistical patterns of life.

This corpus covers three major layers of biological complexity:

  • Eukaryotes β€” organisms with a nucleus (animals, plants, fungi, protists). Complex, large genomes with introns, regulatory regions, and lots of repetition.
  • Prokaryotes β€” bacteria and archaea. Simpler, denser genomes; genes are packed tightly with less non-coding "junk."
  • mRNA β€” the processed, spliced transcript of a gene. This is what actually gets translated into protein. Much shorter than full genomic sequences. Including mRNA teaches the model about gene structure without the noise of intergenic regions.

DNA sequences in this corpus look like this:

ATGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGC

A 6-mer tokenizer, such as Carbon's, splits this into non-overlapping windows of 6 nucleotides β€” one token per 6 bases:

ATGCTA | GCTAGC | TAGCTA | GCTAGC | TAGCTA | GCTAGC | ...

Loading the data

from datasets import load_dataset

ds = load_dataset(
    "hf-carbon/carbon-pretraining-corpus",
    "mrna_evo2",          # or: eukaryote_generator | mrna_splice_evo2 | prokaryote_evo2 | eukaryote_generator_10B_subset
    split="train",
    streaming=True,
)

for example in ds.take(3):
    print(example)

Dataset composition

1. eukaryote_generator β€” Eukaryote Genomes

Source: GenerTeam/pretrain_data_eukaryote

Genomic sequences from eukaryotic organisms (fungi, plants, protozoa, invertebrate and vertebrate), packaged by the GenerTeam as part of their GENERator genomic foundation model. This is the main part of Carbon's training data, which is focused on eukaryote species. Each row carries full taxonomic metadata, gene type, strand orientation, and chromosome coordinates alongside the raw sequence.

Following GENERator, we filter out sequences longer than 100 kbp, as excluding them improves training performance on DNA downstream benchmarks. For long-context training, you can concatenate genes from the same contig to build longer samples.

Example row:

{
  "species_type": "fungi",
  "gene_type": "protein_coding",
  "strand": "+",
  "sequence": "ATGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGC...",
  "taxonomy": "Eukaryota; Fungi; Ascomycota; ...",
  "record_id": "NC_001224.1",
  "start": 1872,
  "end": 3503
}

2. mrna_evo2 β€” Messenger RNA Sequences

Source: arcinstitute/opengenome2 (mrna split)

Processed mRNA sequences β€” the "final edited" version of a gene after the cell has removed introns (non-coding interruptions) and kept only the exons. This is the sequence that gets read to produce protein. These sequences are shorter and more information-dense than raw genomic DNA.

3. mrna_splice_evo2 β€” Augmented mRNA Transcripts

Source: arcinstitute/opengenome2 (mrna_splice_promoter)

The same mRNA transcripts as mrna_evo2, with augmentations applied by the Evo2 team: each transcript gets an extra 1,024 bp of upstream promoter sequence prepended, and an extra 32 bp of flanking sequence around each exon boundary to expose splice sites. The resulting exon chunks are concatenated with a special @ separator into a single stitched sequence per transcript.

Sequences here are systematically longer than mrna_evo2 β€” the extra promoter and splice flanks are the only difference, not a different set of genes.

4. prokaryote_evo2 β€” Prokaryote Genomes

Upstream: arcinstitute/opengenome2 (gtdb_v220_imgpr split)

Long chromosomal chunks from bacteria and archaea, sourced from GTDB v220 (a curated taxonomy of 85 K prokaryote genomes) and IMG/PR (a DOE database of environmental prokaryote sequences). Prokaryote genomes are compact β€” genes sit back-to-back with minimal intergenic space β€” so these sequences are biologically rich per nucleotide.

5. eukaryote_generator_10B_subset β€” 10B-token eukaryote subsample

Source: derived from eukaryote_generator (this dataset).

A pre-sampled subset of eukaryote_generator totalling 60 Gbp (10 B tokens at 6-mer tokenization) for smaller / faster model trainings that don't need the full 423 Gbp eukaryote slice. Rows are uniformly sampled at the row level from the filtered eukaryote data, which keeps the species distribution proportional to the natural per-species base-pair count:

Species Natural share In subset
vertebrate_other 42.03% 42.03%
vertebrate_mammalian 27.20% 27.24%
invertebrate 19.56% 19.54%
plant 7.91% 7.90%
fungi 2.69% 2.68%
protozoa 0.60% 0.60%

Same schema as eukaryote_generator (full structured metadata columns).

βš—οΈ Carbon Training Mixture

Data weights

The proportions below reflect the target mixture for Carbon's pure-DNA pretraining runs (1 T token target):

Subset Approx. weight
eukaryote_generator 70%
mrna_evo2 16%
prokaryote_evo2 10%
mrna_splice_evo2 4%

Metadata conditioning in Carbon training (eukaryote_generator only)

In Carbon we added optional metadata tags to a fraction of eukaryote sequences, so the model learns to use biological context when available but doesn't depend on it. Tags are prepended before the sequence with random dropout at tokenization time:

# 50% of sequences β€” no tags
<dna>ATGCTAGCTA...</dna>

# 16.7% β€” species + gene type
<species>fungi<gene_type>protein_coding<dna>ATGCTAGCTA...</dna>

# 16.7% β€” species only
<species>fungi<dna>ATGCTAGCTA...</dna>

# 16.7% β€” gene type only
<gene_type>protein_coding<dna>ATGCTAGCTA...</dna>

At inference time you can prompt with any combination of tags or none at all. The three OpenGenome2 subsets are tokenized as plain <dna>SEQUENCE</dna> without metadata conditioning.

License

This dataset is a mirror of two upstream sources with different permissive licenses:

Subset License Upstream
eukaryote_generator MIT GenerTeam/pretrain_data_eukaryote
eukaryote_generator_10B_subset MIT derived from eukaryote_generator (GenerTeam/pretrain_data_eukaryote)
mrna_evo2 Apache-2.0 arcinstitute/opengenome2
mrna_splice_evo2 Apache-2.0 arcinstitute/opengenome2
prokaryote_evo2 Apache-2.0 arcinstitute/opengenome2