Datasets:
README: add eukaryote_generator_10B_subset, post-filter stats, fix weights/typos
Browse files
README.md
CHANGED
|
@@ -27,23 +27,28 @@ configs:
|
|
| 27 |
data_files:
|
| 28 |
- split: train
|
| 29 |
path: prokaryote_evo2/*.parquet
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
---
|
| 31 |
|
| 32 |
# 🧬 Carbon Pretraining Corpus
|
| 33 |
|
| 34 |
## Description
|
| 35 |
|
| 36 |
-
> **~
|
| 37 |
|
| 38 |
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.
|
| 39 |
-
|
| 40 |
|
| 41 |
| Subset | Domain | Source | Size | Rows | Nucleotides |
|
| 42 |
|---|---|---|---:|---:|---:|
|
| 43 |
-
| `eukaryote_generator` | Eukaryote genomes | GenerTeam / GENERATOR |
|
| 44 |
| `mrna_evo2` | Messenger RNA | Arc Institute / OpenGenome2 | 54.8 GB | 52,702,454 | ~115.9 Gbp |
|
| 45 |
| `mrna_splice_evo2` | mRNA + splice & promoter | Arc Institute / OpenGenome2 | 92.9 GB | 56,877,762 | ~197.4 Gbp |
|
| 46 |
| `prokaryote_evo2` | Prokaryote genomes (GTDB + IMG/PR) | Arc Institute / OpenGenome2 | 166.0 GB | 17,408,059 | ~357.5 Gbp |
|
|
|
|
| 47 |
|
| 48 |
Nucleotides are counted in base pairs (Gbp = billion nucleotides).
|
| 49 |
|
|
@@ -63,10 +68,10 @@ DNA sequences in this corpus look like this:
|
|
| 63 |
ATGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGC
|
| 64 |
```
|
| 65 |
|
| 66 |
-
A 6-mer tokenizer, such as Carbon's, splits this into overlapping windows of 6 nucleotides:
|
| 67 |
|
| 68 |
```
|
| 69 |
-
ATGCTA |
|
| 70 |
```
|
| 71 |
|
| 72 |
## Loading the data
|
|
@@ -77,7 +82,7 @@ from datasets import load_dataset
|
|
| 77 |
|
| 78 |
ds = load_dataset(
|
| 79 |
"hf-carbon/carbon-pretraining-corpus",
|
| 80 |
-
"mrna_evo2", # or: eukaryote_generator | mrna_splice_evo2 | prokaryote_evo2
|
| 81 |
split="train",
|
| 82 |
streaming=True,
|
| 83 |
)
|
|
@@ -93,9 +98,9 @@ for example in ds.take(3):
|
|
| 93 |
|
| 94 |
**Source:** [GenerTeam/pretrain_data_eukaryote](https://huggingface.co/datasets/GenerTeam/pretrain_data_eukaryote)
|
| 95 |
|
| 96 |
-
Genomic sequences from eukaryotic organisms (fungi, plants, animals, and more), packaged by the GenerTeam as part of their [GENERator](https://arxiv.org/abs/2502.07272) genomic foundation model. This is the main part
|
| 97 |
|
| 98 |
-
Following GENERator, we filter out sequences longer than 100 kbp, as excluding them improves training performance on DNA
|
| 99 |
|
| 100 |
|
| 101 |
**Example row:**
|
|
@@ -133,6 +138,23 @@ Sequences here are systematically longer than `mrna_evo2` — the extra promoter
|
|
| 133 |
|
| 134 |
Long chromosomal chunks from bacteria and archaea, sourced from [GTDB v220](https://gtdb.ecogenomic.org/) (a curated taxonomy of ~85 K prokaryote genomes) and [IMG/PR](https://img.jgi.doe.gov/) (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.
|
| 135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
|
| 137 |
## ⚗️ Carbon Training Mixture
|
| 138 |
|
|
@@ -142,13 +164,13 @@ The proportions below reflect the target mixture for Carbon's pure-DNA pretraini
|
|
| 142 |
|
| 143 |
| Subset | Approx. weight |
|
| 144 |
|---|---:|
|
| 145 |
-
| `
|
| 146 |
-
| `
|
| 147 |
-
| `
|
| 148 |
-
| `
|
| 149 |
|
| 150 |
|
| 151 |
-
### Metadata conditioning in
|
| 152 |
|
| 153 |
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:
|
| 154 |
|
|
@@ -175,6 +197,7 @@ This dataset is a mirror of two upstream sources with different permissive licen
|
|
| 175 |
| Subset | License | Upstream |
|
| 176 |
|---|---|---|
|
| 177 |
| `eukaryote_generator` | [MIT](https://huggingface.co/datasets/GenerTeam/pretrain_data_eukaryote) | GenerTeam/pretrain_data_eukaryote |
|
|
|
|
| 178 |
| `mrna_evo2` | [Apache-2.0](https://huggingface.co/datasets/arcinstitute/opengenome2) | arcinstitute/opengenome2 |
|
| 179 |
| `mrna_splice_evo2` | [Apache-2.0](https://huggingface.co/datasets/arcinstitute/opengenome2) | arcinstitute/opengenome2 |
|
| 180 |
| `prokaryote_evo2` | [Apache-2.0](https://huggingface.co/datasets/arcinstitute/opengenome2) | arcinstitute/opengenome2 |
|
|
|
|
| 27 |
data_files:
|
| 28 |
- split: train
|
| 29 |
path: prokaryote_evo2/*.parquet
|
| 30 |
+
- config_name: eukaryote_generator_10B_subset
|
| 31 |
+
data_files:
|
| 32 |
+
- split: train
|
| 33 |
+
path: eukaryote_generator_10B_subset/**/*.parquet
|
| 34 |
---
|
| 35 |
|
| 36 |
# 🧬 Carbon Pretraining Corpus
|
| 37 |
|
| 38 |
## Description
|
| 39 |
|
| 40 |
+
> **~173M DNA & RNA sequences · ~1.1 trillion nucleotides** — the DNA pretraining mixture used to train [Carbon](https://github.com/huggingface/carbon), a genomic foundation model.
|
| 41 |
|
| 42 |
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.
|
| 43 |
+
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.
|
| 44 |
|
| 45 |
| Subset | Domain | Source | Size | Rows | Nucleotides |
|
| 46 |
|---|---|---|---:|---:|---:|
|
| 47 |
+
| `eukaryote_generator` | Eukaryote genomes (≤ 100 kbp) | GenerTeam / GENERATOR | 191.9 GB | 46,323,396 | ~423.4 Gbp |
|
| 48 |
| `mrna_evo2` | Messenger RNA | Arc Institute / OpenGenome2 | 54.8 GB | 52,702,454 | ~115.9 Gbp |
|
| 49 |
| `mrna_splice_evo2` | mRNA + splice & promoter | Arc Institute / OpenGenome2 | 92.9 GB | 56,877,762 | ~197.4 Gbp |
|
| 50 |
| `prokaryote_evo2` | Prokaryote genomes (GTDB + IMG/PR) | Arc Institute / OpenGenome2 | 166.0 GB | 17,408,059 | ~357.5 Gbp |
|
| 51 |
+
| `eukaryote_generator_10B_subset` | Eukaryote subsample (10B tokens, natural species distribution) | derived from `eukaryote_generator` | 27.6 GB | 6,562,876 | 60.0 Gbp |
|
| 52 |
|
| 53 |
Nucleotides are counted in base pairs (Gbp = billion nucleotides).
|
| 54 |
|
|
|
|
| 68 |
ATGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGCTAGC
|
| 69 |
```
|
| 70 |
|
| 71 |
+
A 6-mer tokenizer, such as Carbon's, splits this into non-overlapping windows of 6 nucleotides — one token per 6 bases:
|
| 72 |
|
| 73 |
```
|
| 74 |
+
ATGCTA | GCTAGC | TAGCTA | GCTAGC | TAGCTA | GCTAGC | ...
|
| 75 |
```
|
| 76 |
|
| 77 |
## Loading the data
|
|
|
|
| 82 |
|
| 83 |
ds = load_dataset(
|
| 84 |
"hf-carbon/carbon-pretraining-corpus",
|
| 85 |
+
"mrna_evo2", # or: eukaryote_generator | mrna_splice_evo2 | prokaryote_evo2 | eukaryote_generator_10B_subset
|
| 86 |
split="train",
|
| 87 |
streaming=True,
|
| 88 |
)
|
|
|
|
| 98 |
|
| 99 |
**Source:** [GenerTeam/pretrain_data_eukaryote](https://huggingface.co/datasets/GenerTeam/pretrain_data_eukaryote)
|
| 100 |
|
| 101 |
+
Genomic sequences from eukaryotic organisms (fungi, plants, animals, and more), packaged by the GenerTeam as part of their [GENERator](https://arxiv.org/abs/2502.07272) 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.
|
| 102 |
|
| 103 |
+
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.
|
| 104 |
|
| 105 |
|
| 106 |
**Example row:**
|
|
|
|
| 138 |
|
| 139 |
Long chromosomal chunks from bacteria and archaea, sourced from [GTDB v220](https://gtdb.ecogenomic.org/) (a curated taxonomy of ~85 K prokaryote genomes) and [IMG/PR](https://img.jgi.doe.gov/) (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.
|
| 140 |
|
| 141 |
+
### 5. `eukaryote_generator_10B_subset` — 10B-token eukaryote subsample
|
| 142 |
+
|
| 143 |
+
**Source:** derived from `eukaryote_generator` (this dataset).
|
| 144 |
+
|
| 145 |
+
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:
|
| 146 |
+
|
| 147 |
+
| Species | Natural share | In subset |
|
| 148 |
+
|---|---:|---:|
|
| 149 |
+
| `vertebrate_other` | 42.03% | 42.03% |
|
| 150 |
+
| `vertebrate_mammalian` | 27.20% | 27.24% |
|
| 151 |
+
| `invertebrate` | 19.56% | 19.54% |
|
| 152 |
+
| `plant` | 7.91% | 7.90% |
|
| 153 |
+
| `fungi` | 2.69% | 2.68% |
|
| 154 |
+
| `protozoa` | 0.60% | 0.60% |
|
| 155 |
+
|
| 156 |
+
Same schema as `eukaryote_generator` (full structured metadata columns).
|
| 157 |
+
|
| 158 |
|
| 159 |
## ⚗️ Carbon Training Mixture
|
| 160 |
|
|
|
|
| 164 |
|
| 165 |
| Subset | Approx. weight |
|
| 166 |
|---|---:|
|
| 167 |
+
| `eukaryote_generator` | ~70% |
|
| 168 |
+
| `mrna_evo2` | ~16% |
|
| 169 |
+
| `prokaryote_evo2` | ~10% |
|
| 170 |
+
| `mrna_splice_evo2` | ~4% |
|
| 171 |
|
| 172 |
|
| 173 |
+
### Metadata conditioning in Carbon training (`eukaryote_generator` only)
|
| 174 |
|
| 175 |
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:
|
| 176 |
|
|
|
|
| 197 |
| Subset | License | Upstream |
|
| 198 |
|---|---|---|
|
| 199 |
| `eukaryote_generator` | [MIT](https://huggingface.co/datasets/GenerTeam/pretrain_data_eukaryote) | GenerTeam/pretrain_data_eukaryote |
|
| 200 |
+
| `eukaryote_generator_10B_subset` | [MIT](https://huggingface.co/datasets/GenerTeam/pretrain_data_eukaryote) | derived from `eukaryote_generator` (GenerTeam/pretrain_data_eukaryote) |
|
| 201 |
| `mrna_evo2` | [Apache-2.0](https://huggingface.co/datasets/arcinstitute/opengenome2) | arcinstitute/opengenome2 |
|
| 202 |
| `mrna_splice_evo2` | [Apache-2.0](https://huggingface.co/datasets/arcinstitute/opengenome2) | arcinstitute/opengenome2 |
|
| 203 |
| `prokaryote_evo2` | [Apache-2.0](https://huggingface.co/datasets/arcinstitute/opengenome2) | arcinstitute/opengenome2 |
|