loubnabnl HF Staff commited on
Commit
9f2f426
·
verified ·
1 Parent(s): 1716cbd

Add README with subset configs

Browse files
Files changed (1) hide show
  1. README.md +112 -14
README.md CHANGED
@@ -1,4 +1,15 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
2
  configs:
3
  - config_name: eukaryote_generator
4
  data_files:
@@ -20,32 +31,119 @@ configs:
20
 
21
  # Carbon pretraining corpus
22
 
23
- Private aggregation of the four sources used for Carbon pure-DNA pretraining,
24
- all stored as parquet for direct `load_dataset` access.
 
 
 
 
 
 
 
25
 
26
  ## Subsets
27
 
28
- | Subset | Source | Description |
29
- |---|---|---|
30
- | `eukaryote_generator` | [GenerTeam/pretrain_data_eukaryote](https://huggingface.co/datasets/GenerTeam/pretrain_data_eukaryote) | Eukaryote DNA, sharded by species (`fungi/`, `plants/`, `protozoa/`, `vertebrate_mammalian/`, ...) |
31
- | `mrna_evo2` | [arcinstitute/opengenome2 / mrna](https://huggingface.co/datasets/arcinstitute/opengenome2/tree/main/json/pretraining_or_both_phases/mrna) | mRNA sequences, train chunks only |
32
- | `mrna_splice_evo2` | [arcinstitute/opengenome2 / mrna_splice_promoter](https://huggingface.co/datasets/arcinstitute/opengenome2/tree/main/json/pretraining_or_both_phases/mrna_splice_promoter) | mRNA + splice + promoter, train chunks only |
33
- | `prokaryote_evo2` | [arcinstitute/opengenome2 / gtdb_v220_imgpr](https://huggingface.co/datasets/arcinstitute/opengenome2/tree/main/json/pretraining_or_both_phases/gtdb_v220_imgpr) | Prokaryote (GTDB v220 + IMG/PR), train chunks only |
34
 
35
  Test splits from opengenome2 are not included (this is a pretraining corpus).
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  ## Usage
38
 
39
  ```python
40
  from datasets import load_dataset
41
 
42
- # pick any subset
43
- ds = load_dataset("hf-carbon/carbon-pretraining-corpus", "mrna_evo2", split="train", streaming=True)
 
 
 
 
44
  print(next(iter(ds)))
45
  ```
46
 
47
- ## License
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
 
49
- Defer to upstream sources:
50
- - GenerTeam/pretrain_data_eukaryote — see upstream repo.
51
- - arcinstitute/opengenome2 — see upstream repo.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ task_categories:
4
+ - text-generation
5
+ tags:
6
+ - biology
7
+ - genomics
8
+ - dna
9
+ - pretraining
10
+ - carbon
11
+ - parquet
12
+ pretty_name: Carbon pretraining corpus
13
  configs:
14
  - config_name: eukaryote_generator
15
  data_files:
 
31
 
32
  # Carbon pretraining corpus
33
 
34
+ Private aggregation of the DNA-side sources used for Carbon pretraining, mirrored
35
+ into one Hub dataset with four loadable configs. The goal is to make the
36
+ pretraining mixture reproducible without re-stitching data from multiple upstream
37
+ repositories.
38
+
39
+ All files are stored as Parquet. OpenGenome2 JSONL sources were converted to
40
+ Parquet and their `metadata.file_path` values were scrubbed so the metadata keeps
41
+ only useful upstream provenance such as `{"source": "data_mrna_train_chunk1.jsonl.gz"}`
42
+ and, where present, the upstream `record` id.
43
 
44
  ## Subsets
45
 
46
+ | Config | Upstream source | Files | Size | Rows / sequence stats |
47
+ |---|---:|---:|---:|---|
48
+ | `eukaryote_generator` | [GenerTeam/pretrain_data_eukaryote](https://huggingface.co/datasets/GenerTeam/pretrain_data_eukaryote) | 456 | 376.80 GB | Rich schema with `sequence`, `taxonomy`, `species_type`, `gene_type`, coordinates, and boundary markers. A sampled fungi shard has 187,500 rows with mean sequence length ~1,631 nt. |
49
+ | `mrna_evo2` | [OpenGenome2 mRNA](https://huggingface.co/datasets/arcinstitute/opengenome2/tree/main/json/pretraining_or_both_phases/mrna) | 11 | 54.78 GB | 52,702,454 rows; 115.94 Gbp total; mean 2,200 nt; min 64; max 99,994. |
50
+ | `mrna_splice_evo2` | [OpenGenome2 mRNA splice/promoter](https://huggingface.co/datasets/arcinstitute/opengenome2/tree/main/json/pretraining_or_both_phases/mrna_splice_promoter) | 19 | 92.89 GB | 56,877,762 rows; 197.36 Gbp total; mean 3,470 nt; min 96; max 122,533. |
51
+ | `prokaryote_evo2` | [OpenGenome2 GTDB v220 + IMG/PR](https://huggingface.co/datasets/arcinstitute/opengenome2/tree/main/json/pretraining_or_both_phases/gtdb_v220_imgpr) | 34 | 165.98 GB | 17,408,059 rows; 357.45 Gbp total; mean 20,533 nt; min 20; max 16,040,666. |
52
 
53
  Test splits from opengenome2 are not included (this is a pretraining corpus).
54
 
55
+ ## Schema
56
+
57
+ `eukaryote_generator` preserves the GenerTeam Parquet schema:
58
+
59
+ ```text
60
+ begin_of_sequence, end_of_sequence, begin_of_gene, end_of_gene, gene_type,
61
+ species_type, strand, sequence, molecule_type, topology, taxonomy, record_id,
62
+ start, end
63
+ ```
64
+
65
+ The three OpenGenome2-derived configs have:
66
+
67
+ ```text
68
+ text, metadata
69
+ ```
70
+
71
+ After scrubbing, `metadata` no longer contains local `/scratch/...` paths. It
72
+ contains a compact upstream source filename, and for prokaryote rows may also
73
+ include `record`.
74
+
75
  ## Usage
76
 
77
  ```python
78
  from datasets import load_dataset
79
 
80
+ ds = load_dataset(
81
+ "hf-carbon/carbon-pretraining-corpus",
82
+ "mrna_evo2",
83
+ split="train",
84
+ streaming=True,
85
+ )
86
  print(next(iter(ds)))
87
  ```
88
 
89
+ To stream the four configs together:
90
+
91
+ ```python
92
+ from datasets import interleave_datasets, load_dataset
93
+
94
+ configs = [
95
+ "eukaryote_generator",
96
+ "prokaryote_evo2",
97
+ "mrna_splice_evo2",
98
+ "mrna_evo2",
99
+ ]
100
+ streams = [
101
+ load_dataset("hf-carbon/carbon-pretraining-corpus", cfg, split="train", streaming=True)
102
+ for cfg in configs
103
+ ]
104
+ mixed = interleave_datasets(streams, seed=42)
105
+ ```
106
 
107
+ Pass `probabilities=` to `interleave_datasets` if you want to reproduce a
108
+ specific training mixture.
109
+
110
+ ## Provenance
111
+
112
+ This mirror is derived from:
113
+
114
+ - [GenerTeam/pretrain_data_eukaryote](https://huggingface.co/datasets/GenerTeam/pretrain_data_eukaryote), MIT license.
115
+ - [arcinstitute/opengenome2](https://huggingface.co/datasets/arcinstitute/opengenome2), Apache-2.0 license.
116
+
117
+ The OpenGenome2 configs include train chunks only:
118
+
119
+ - `json/pretraining_or_both_phases/mrna/*_train_*.jsonl.gz`
120
+ - `json/pretraining_or_both_phases/mrna_splice_promoter/*_train_*.jsonl.gz`
121
+ - `json/pretraining_or_both_phases/gtdb_v220_imgpr/*_train_*.jsonl.gz`
122
+
123
+ ## Limitations
124
+
125
+ - This is a private pretraining mirror, not a benchmark dataset.
126
+ - OpenGenome2 test chunks are intentionally omitted.
127
+ - No additional deduplication or quality filtering was applied beyond upstream processing.
128
+ - The configs are schema-asymmetric: `eukaryote_generator` has a rich structured schema, while OpenGenome2-derived configs are `text` plus `metadata`.
129
+ - Sequence casing, ambiguity codes, and length distributions differ by upstream source.
130
+
131
+ ## Citation
132
+
133
+ If you use this mirror, cite the upstream datasets:
134
+
135
+ ```bibtex
136
+ @misc{generteam2025generator,
137
+ title = {GENERATOR: A Long-Context Generative Genomic Foundation Model},
138
+ author = {GenerTeam},
139
+ year = {2025},
140
+ eprint = {2502.07272},
141
+ archivePrefix= {arXiv},
142
+ }
143
+
144
+ @misc{arcinstitute_opengenome2,
145
+ title = {OpenGenome2},
146
+ author = {Arc Institute},
147
+ howpublished = {Hugging Face dataset: arcinstitute/opengenome2},
148
+ }
149
+ ```