lewtun HF Staff commited on
Commit
3ce8356
·
verified ·
1 Parent(s): 9e224c0

Add the FineDNA dataset card with mid, SFT and RL configs

Browse files
Files changed (1) hide show
  1. README.md +483 -0
README.md ADDED
@@ -0,0 +1,483 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - text-generation
7
+ tags:
8
+ - biology
9
+ - genomics
10
+ - dna
11
+ - midtraining
12
+ - sft
13
+ - rl
14
+ pretty_name: FineDNA
15
+ configs:
16
+ - config_name: mid_dna_eukaryote_fungi
17
+ data_files:
18
+ - split: train
19
+ path: mid/dna_eukaryote_fungi/train-*.parquet
20
+ - config_name: mid_dna_eukaryote_protozoa
21
+ data_files:
22
+ - split: train
23
+ path: mid/dna_eukaryote_protozoa/train-*.parquet
24
+ - config_name: mid_dna_eukaryote_plant
25
+ data_files:
26
+ - split: train
27
+ path: mid/dna_eukaryote_plant/train-*.parquet
28
+ - config_name: mid_dna_eukaryote_invertebrate
29
+ data_files:
30
+ - split: train
31
+ path: mid/dna_eukaryote_invertebrate/train-*.parquet
32
+ - config_name: mid_dna_eukaryote_vertebrate_mammalian
33
+ data_files:
34
+ - split: train
35
+ path: mid/dna_eukaryote_vertebrate_mammalian/train-*.parquet
36
+ - config_name: mid_dna_eukaryote_vertebrate_other
37
+ data_files:
38
+ - split: train
39
+ path: mid/dna_eukaryote_vertebrate_other/train-*.parquet
40
+ - config_name: mid_dna_mrna
41
+ data_files:
42
+ - split: train
43
+ path: mid/dna_mrna/train-*.parquet
44
+ - config_name: mid_dna_mrna_splice
45
+ data_files:
46
+ - split: train
47
+ path: mid/dna_mrna_splice/train-*.parquet
48
+ - config_name: mid_dna_prokaryote
49
+ data_files:
50
+ - split: train
51
+ path: mid/dna_prokaryote/train-*.parquet
52
+ - config_name: mid_bio_p90_biorxiv
53
+ data_files:
54
+ - split: train
55
+ path: mid/bio_p90_biorxiv/train-*.parquet
56
+ - split: validation
57
+ path: mid/bio_p90_biorxiv/validation-*.parquet
58
+ - config_name: mid_bio_p90_biostars
59
+ data_files:
60
+ - split: train
61
+ path: mid/bio_p90_biostars/train-*.parquet
62
+ - split: validation
63
+ path: mid/bio_p90_biostars/validation-*.parquet
64
+ - config_name: mid_bio_p90_finepdfs
65
+ data_files:
66
+ - split: train
67
+ path: mid/bio_p90_finepdfs/train-*.parquet
68
+ - split: validation
69
+ path: mid/bio_p90_finepdfs/validation-*.parquet
70
+ - config_name: mid_bio_p90_fineweb
71
+ data_files:
72
+ - split: train
73
+ path: mid/bio_p90_fineweb/train-*.parquet
74
+ - split: validation
75
+ path: mid/bio_p90_fineweb/validation-*.parquet
76
+ - config_name: mid_bio_p90_pubmed
77
+ data_files:
78
+ - split: train
79
+ path: mid/bio_p90_pubmed/train-*.parquet
80
+ - split: validation
81
+ path: mid/bio_p90_pubmed/validation-*.parquet
82
+ - config_name: mid_bio_rest
83
+ data_files:
84
+ - split: train
85
+ path: mid/bio_rest/train-*.parquet
86
+ - split: validation
87
+ path: mid/bio_rest/validation-*.parquet
88
+ - config_name: mid_bio_gemini_fim
89
+ data_files:
90
+ - split: train
91
+ path: mid/bio_gemini_fim/train-*.parquet
92
+ - config_name: mid_bio_gemini_nonfim
93
+ data_files:
94
+ - split: train
95
+ path: mid/bio_gemini_nonfim/train-*.parquet
96
+ - split: validation
97
+ path: mid/bio_gemini_nonfim/validation-*.parquet
98
+ - config_name: mid_english_fineweb_edu
99
+ data_files:
100
+ - split: train
101
+ path: mid/english_fineweb_edu/train-*.parquet
102
+ - config_name: mid_english_dclm
103
+ data_files:
104
+ - split: train
105
+ path: mid/english_dclm/train-*.parquet
106
+ - config_name: mid_english_finepdfs_edu
107
+ data_files:
108
+ - split: train
109
+ path: mid/english_finepdfs_edu/train-*.parquet
110
+ - config_name: mid_instruct_nemotron_chat_v3
111
+ data_files:
112
+ - split: train
113
+ path: mid/instruct_nemotron_chat_v3/train-*.parquet
114
+ - config_name: mid_instruct_nemotron_if_v3
115
+ data_files:
116
+ - split: train
117
+ path: mid/instruct_nemotron_if_v3/train-*.parquet
118
+ - config_name: mid_instruct_nemotron_if_v2
119
+ data_files:
120
+ - split: train
121
+ path: mid/instruct_nemotron_if_v2/train-*.parquet
122
+ - config_name: sft_mix
123
+ data_files:
124
+ - split: train
125
+ path: sft/mix/train-*.parquet
126
+ - split: test
127
+ path: sft/mix/test-*.parquet
128
+ - config_name: sft_sequence_continuation
129
+ data_files:
130
+ - split: train
131
+ path: sft/sequence_continuation/train-*.parquet
132
+ - config_name: sft_variant_effect_prediction
133
+ data_files:
134
+ - split: train
135
+ path: sft/variant_effect_prediction/train-*.parquet
136
+ - config_name: sft_dna_computation
137
+ data_files:
138
+ - split: train
139
+ path: sft/dna_computation/train-*.parquet
140
+ - config_name: sft_sequence_classification
141
+ data_files:
142
+ - split: train
143
+ path: sft/sequence_classification/train-*.parquet
144
+ - config_name: sft_chat
145
+ data_files:
146
+ - split: train
147
+ path: sft/chat/train-*.parquet
148
+ - config_name: sft_sequence_analysis
149
+ data_files:
150
+ - split: train
151
+ path: sft/sequence_analysis/train-*.parquet
152
+ - config_name: sft_instruction_following
153
+ data_files:
154
+ - split: train
155
+ path: sft/instruction_following/train-*.parquet
156
+ - config_name: sft_biology_qa
157
+ data_files:
158
+ - split: train
159
+ path: sft/biology_qa/train-*.parquet
160
+ - config_name: rl_mix
161
+ data_files:
162
+ - split: train
163
+ path: rl/mix/train-*.parquet
164
+ ---
165
+
166
+ ![FineDNA](https://huggingface.co/datasets/HuggingFaceBio/FineDNA/resolve/main/assets/finedna-banner.png)
167
+
168
+ # FineDNA
169
+
170
+ FineDNA is the training data of [Carbon-X](https://huggingface.co/HuggingFaceBio/Carbon-X), the model that taught
171
+ Qwen3-14B to read DNA, for all three of its training stages. Each stage is a group of configs:
172
+
173
+ | stage | configs | rows | starts from |
174
+ |---|---|---:|---|
175
+ | [Mid-training](#mid-training) | `mid_*`, one per source (23) | 514.30B tokens, of which the run read 302B | `Qwen/Qwen3-14B` |
176
+ | [SFT](#sft) | `sft_mix`, and `sft_*` for each of its 8 domains | 203,923 `train`, 100 `test` | `HuggingFaceBio/Carbon-X-Base` |
177
+ | [RL](#rl) | `rl_mix` | 98,433 `train` | `HuggingFaceBio/Carbon-X-SFT` |
178
+
179
+ `sft_mix` and `rl_mix` are the rows the SFT and GRPO trainers used, in the order they used them. Mid-training has no
180
+ single mix: Megatron samples the `mid_*` configs with the weights in [the mix](#the-mix) below.
181
+
182
+ ```python
183
+ from datasets import load_dataset
184
+
185
+ # one mid-training source; the mid-training configs total about 950 GB, so stream them
186
+ ds = load_dataset("HuggingFaceBio/FineDNA", "mid_dna_mrna", split="train", streaming=True)
187
+ # the SFT mixture, or one of its domains
188
+ ds = load_dataset("HuggingFaceBio/FineDNA", "sft_mix")
189
+ ds = load_dataset("HuggingFaceBio/FineDNA", "sft_chat", split="train")
190
+ # the RL blend
191
+ ds = load_dataset("HuggingFaceBio/FineDNA", "rl_mix", split="train")
192
+ ```
193
+
194
+ The training recipes for every stage are in [`huggingface/carbon`](https://github.com/huggingface/carbon/tree/main/carbon-x).
195
+
196
+ ## Mid-training
197
+
198
+ The `mid_*` configs hold every source of the 302B-token mid-training run, one config per source: genomes and
199
+ transcripts, biology text that contains DNA, English web and PDF text, and instruction data. Their files are under
200
+ `mid/<source>/`.
201
+
202
+ Every config holds all the data Carbon-X sampled from for that source. That is not the whole upstream dataset: the
203
+ DNA, for example, is GENERator and OpenGenome2 after the filtering described below. The **share of training** column
204
+ below is the weight each config gets, and those weights are the recipe: they decide how much of each config the run
205
+ read, so some configs were read several times and some only in part. Tokenize the `text` column with the Carbon-X
206
+ tokenizer, train with these weights, and you get the same data diet as Carbon-X.
207
+
208
+ ### The mix
209
+
210
+ | | unique tokens | share of training |
211
+ |---|---:|---:|
212
+ | DNA | 181.96B | 55% |
213
+ | Biology text | 15.75B | 15% |
214
+ | English | 310.22B | 20% |
215
+ | Instruction | 6.36B | 10% |
216
+ | **Total** | **514.30B** | **100%** |
217
+
218
+ Carbon-X trained on 302B of these 514.30B tokens. Long-DNA biology text was read about 7 times and
219
+ instruction data about 5; of English, prokaryote and mRNA-splice the run read only a part.
220
+
221
+ | config | documents | tokens | share of training (weight) | tokens read by Carbon-X | passes |
222
+ |---|---:|---:|---:|---:|---:|
223
+ | `mid_dna_eukaryote_fungi` | 6,607,490 | 1.88B | 1.12% | 3.37B | 1.79 |
224
+ | `mid_dna_eukaryote_protozoa` | 1,257,499 | 366.8M | 0.19% | 581.3M | 1.58 |
225
+ | `mid_dna_eukaryote_plant` | 9,429,321 | 5.55B | 3.08% | 9.30B | 1.68 |
226
+ | `mid_dna_eukaryote_invertebrate` | 8,716,932 | 13.71B | 7.58% | 22.90B | 1.67 |
227
+ | `mid_dna_eukaryote_vertebrate_mammalian` | 7,169,696 | 18.96B | 10.32% | 31.16B | 1.64 |
228
+ | `mid_dna_eukaryote_vertebrate_other` | 12,420,543 | 29.56B | 16.21% | 48.95B | 1.66 |
229
+ | `mid_dna_mrna` | 52,702,454 | 19.41B | 8.80% | 26.58B | 1.37 |
230
+ | `mid_dna_mrna_splice` | 56,877,102 | 32.93B | 2.20% | 6.64B | 0.20 |
231
+ | `mid_dna_prokaryote` | 17,408,059 | 59.60B | 5.50% | 16.61B | 0.28 |
232
+ | `mid_bio_p90_biorxiv` | 7,262 | 99.1M | 0.24% | 710.3M | 7.17 |
233
+ | `mid_bio_p90_biostars` | 2,036 | 3.1M | 0.01% | 25.4M | 8.19 |
234
+ | `mid_bio_p90_finepdfs` | 51,241 | 1.96B | 4.58% | 13.84B | 7.07 |
235
+ | `mid_bio_p90_fineweb` | 8,205 | 79.7M | 0.19% | 560.2M | 7.03 |
236
+ | `mid_bio_p90_pubmed` | 68,330 | 854.2M | 1.99% | 6.01B | 7.03 |
237
+ | `mid_bio_rest` | 914,391 | 12.16B | 7.00% | 21.14B | 1.74 |
238
+ | `mid_bio_gemini_fim` | 56,866 | 262.8M | 0.50% | 1.51B | 5.74 |
239
+ | `mid_bio_gemini_nonfim` | 72,343 | 333.4M | 0.50% | 1.51B | 4.53 |
240
+ | `mid_english_fineweb_edu` | 96,541,686 | 99.35B | 8.00% | 24.16B | 0.24 |
241
+ | `mid_english_dclm` | 88,340,007 | 111.98B | 8.00% | 24.16B | 0.22 |
242
+ | `mid_english_finepdfs_edu` | 17,596,723 | 98.89B | 4.00% | 12.08B | 0.12 |
243
+ | `mid_instruct_nemotron_chat_v3` | 562,376 | 2.25B | 3.53% | 10.67B | 4.75 |
244
+ | `mid_instruct_nemotron_if_v3` | 249,748 | 632.0M | 0.99% | 3.00B | 4.75 |
245
+ | `mid_instruct_nemotron_if_v2` | 1,997,510 | 3.48B | 5.47% | 16.53B | 4.75 |
246
+
247
+ *Tokens* is the config's size with the Carbon-X tokenizer (estimated from a 2,000-document sample per config).
248
+ *Tokens read by Carbon-X* is share x 302B. *Passes* is how many times over the run read the config: below 1, it read
249
+ only that fraction of it.
250
+
251
+ ### How to train on it
252
+
253
+ 1. Tokenize `text` with [`HuggingFaceBio/carbon-x`](https://huggingface.co/HuggingFaceBio/carbon-x). It detects DNA in
254
+ text and encodes it with its 6-mer DNA vocabulary. DNA configs already wrap sequences in `<dna>…</dna>`. To
255
+ tokenize a source straight from the Hub, read `hf://datasets/HuggingFaceBio/FineDNA/mid/<source>`.
256
+ 2. Sample configs by the *share of training* column. In Megatron, that is the weight of each `--data-path` prefix.
257
+ Within a config, split its weight across shards in proportion to their size, so every document is equally likely.
258
+ 3. Train for 302B tokens: 72,000 iterations at a global batch of 512 x 8,192 tokens, from the frozen-DNA-embedding
259
+ Qwen3-14B checkpoint (a short first stage that trains only the new DNA embeddings). The full recipe, including the vocabulary extension and that first stage, is in the
260
+ [Carbon-X midtraining recipe](https://github.com/huggingface/carbon/tree/main/carbon-x/training/midtraining).
261
+ Training longer with the same weights repeats the same data more often; for more unique DNA or English, add data
262
+ from the original datasets linked below.
263
+
264
+ ### What is in it
265
+
266
+ **DNA (55%).** Eukaryote genomic windows from [GENERator](https://huggingface.co/datasets/GenerTeam/pretrain_data_eukaryote),
267
+ up to 100 kbp, in six species groups weighted by the corpus's natural distribution. mRNA, mRNA with splice and promoter
268
+ context, and prokaryote genomes (GTDB and IMG/PR) from [OpenGenome2](https://huggingface.co/datasets/arcinstitute/opengenome2).
269
+ All DNA configs are complete: they hold every sequence the run could sample from. Carbon-X read eukaryote and mRNA
270
+ more than once, and about 28% of prokaryote and
271
+ 20% of mRNA-splice.
272
+ The raw sequences are also in [`HuggingFaceBio/carbon-pretraining-corpus`](https://huggingface.co/datasets/HuggingFaceBio/carbon-pretraining-corpus).
273
+ Here they are formatted exactly as they were trained on:
274
+
275
+ - every sequence is cut to a multiple of 6 bp (the tokenizer reads 6-mers) and wrapped in `<dna>…</dna>`;
276
+ - eukaryote sequences carry metadata tags half the time, chosen at random: species group and gene type, species group
277
+ only, or gene type only, e.g. `<mammalian_species><protein_coding_region><dna>ATG…</dna>`;
278
+ - mRNA and prokaryote sequences are uppercased, splice-junction markers (`@`) are removed, and mRNA longer than
279
+ 100,000 bases is dropped.
280
+
281
+ **Biology text (15%).** Web pages, papers and forum posts that contain DNA, plus synthetic annotations. The web and
282
+ paper configs were built in two steps; the code is in [`mid/pipeline/`](https://huggingface.co/datasets/HuggingFaceBio/FineDNA/tree/main/mid/pipeline).
283
+
284
+ 1. **Find documents that contain DNA:** [`1_regex_filter.py`](https://huggingface.co/datasets/HuggingFaceBio/FineDNA/blob/main/mid/pipeline/1_regex_filter.py). We ran a regex filter over
285
+ FineWeb-Edu, FinePDFs, PubMed Central, bioRxiv and Biostars. A document is kept when
286
+ - it has a run of 15 or more nucleotide letters (A, T, C, G, U, N) using at least 3 different ones,
287
+ - that run is not inside curly braces, which in scraped text is usually LaTeX, and
288
+ - it mentions a molecular-biology keyword (dna, gene, primer, pcr, ...).
289
+ 2. **Split by DNA length:** [`2_p90_split.py`](https://huggingface.co/datasets/HuggingFaceBio/FineDNA/blob/main/mid/pipeline/2_p90_split.py), which finds DNA with
290
+ [`tag_dna_sequences.py`](https://huggingface.co/datasets/HuggingFaceBio/FineDNA/blob/main/mid/pipeline/tag_dna_sequences.py). Documents whose longest DNA sequence is at least 39 bp, the
291
+ 90th percentile, form `mid_bio_p90_*`. Everything else forms `mid_bio_rest`. Short runs are mostly primers and motifs; the
292
+ p90 documents carry real sequences. In our ablations, training on them instead of every regex hit improved DNA
293
+ benchmarks, so in the mix they get as much weight as `mid_bio_rest` and are read about seven times.
294
+
295
+ | config | what it is |
296
+ |---|---|
297
+ | `mid_bio_p90_biorxiv`, `mid_bio_p90_biostars`, `mid_bio_p90_finepdfs`, `mid_bio_p90_fineweb`, `mid_bio_p90_pubmed` | documents with long DNA sequences, one config per source |
298
+ | `mid_bio_rest` | the other regex hits from the same five sources, whose longest DNA sequence is under 39 bp |
299
+ | `mid_bio_gemini_nonfim` | genomic regions described by Gemini next to their sequence |
300
+ | `mid_bio_gemini_fim` | the same kind of documents in Qwen's fill-in-the-middle format: part of each document is moved to the end, and the model learns to fill it in |
301
+
302
+ **English (20%).** [FineWeb-Edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) (100BT sample),
303
+ [DCLM](https://huggingface.co/datasets/HuggingFaceFW/dclm_100BT-shuffled) and
304
+ [FinePDFs-Edu](https://huggingface.co/datasets/HuggingFaceFW/finepdfs_edu_100BT-shuffled), to keep the model's English.
305
+
306
+ **Instruction (10%).** [Nemotron Instruction-Following-Chat v3](https://huggingface.co/datasets/nvidia/Nemotron-SFT-Instruction-Following-Chat-v3)
307
+ (chat and instruction-following splits) and [v2](https://huggingface.co/datasets/nvidia/Nemotron-SFT-Instruction-Following-Chat-v2)
308
+ (chat), rendered with the Qwen3 chat template, reasoning traces kept. Mid-training starts from an instruct model, and
309
+ this keeps it able to follow instructions.
310
+
311
+ ### How the mix matches the run
312
+
313
+ Every config was rebuilt from its source and checked against the document counts in the training run's log: each
314
+ holds everything the run sampled from for that source. How much of each the run read is set by the weights, as in the table above.
315
+ Where the run read only part of a config, which documents Megatron happened to draw cannot be recovered, but training
316
+ with the same weights draws the same amount from the same pool.
317
+
318
+ Two pieces of data are included although they never reached the run, so that the pools are complete:
319
+ 1,720,988 documents of `mid_dna_eukaryote_invertebrate` and
320
+ 1,726,948 of `mid_english_dclm`, from tokenization shards that were missing when Carbon-X
321
+ trained.
322
+
323
+ Biology configs also have a `validation` split: the documents held out of training to track loss.
324
+
325
+ ### Columns
326
+
327
+ Every mid-training config has the same columns:
328
+
329
+ | column | |
330
+ |---|---|
331
+ | `text` | the document, as it was tokenized |
332
+ | `id` | the source's document id, where it has one |
333
+ | `source` | the config name without `mid_`, or for biology text the original source (`pubmed`, `biorxiv`, …) |
334
+ | `metadata` | the source's other fields, as a JSON string |
335
+
336
+ The `mid/` files are copied unchanged from [`HuggingFaceBio/FineDNA-Mid`](https://huggingface.co/datasets/HuggingFaceBio/FineDNA-Mid)
337
+ at revision `663538d6`.
338
+
339
+ ## SFT
340
+
341
+ Supervised fine-tuning conversations for a DNA language model: 204,023 rows (203,923 `train`, 100 `test`) drawn
342
+ from 20 source datasets with the Carbon-X SFT mixture weights. `sft_mix` holds exactly the rows the SFT trainer builds
343
+ from that mixture (seed 0), so training on its `train` split reproduces the mixture without any further weighting.
344
+
345
+ Each domain also has its own config, `sft_<domain>`, holding the `sft_mix` `train` rows of that domain in the same
346
+ order, with no test split, e.g. `load_dataset("HuggingFaceBio/FineDNA", "sft_chat")`.
347
+
348
+ ### Columns
349
+
350
+ - `messages`: the conversation, as a list of `{role, content}` turns.
351
+ - `chat_template_kwargs`: `{"tokenizer_kwargs": {"auto_dna_tags": <bool>}}`, passed per example to
352
+ `apply_chat_template` so the DNA tokenizer wraps sequences in `<dna>...</dna>`. It is `false` only for the sequence
353
+ rewriting rows, whose answers are plain text. Keep it when selecting training columns.
354
+ - `domain`: the kind of task, one of the eight below.
355
+
356
+ ### Domains
357
+
358
+ | config | train | test (in `sft_mix`) | what the rows teach |
359
+ | --- | ---: | ---: | --- |
360
+ | `sft_sequence_continuation` | 58,727 | 27 | predict the next 1–32 nucleotides after a 4–8 kb eukaryotic context |
361
+ | `sft_variant_effect_prediction` | 57,254 | 24 | decide whether a single-nucleotide variant is benign or pathogenic from its sequence window, with templated reasoning |
362
+ | `sft_dna_computation` | 44,925 | 25 | answers computed exactly from the sequence: counting, GC content, melting temperature, translation, restriction sites, base lookup, coordinates, edits, rewriting |
363
+ | `sft_sequence_classification` | 16,396 | 11 | multiple-choice functional genomics: promoter vs enhancer, species of origin, TF motifs, TF binding sites |
364
+ | `sft_chat` | 8,553 | 6 | multi-turn conversations on molecular-biology concepts, the assistant's identity, honesty about its limits, and pushing back on false claims |
365
+ | `sft_sequence_analysis` | 7,561 | 3 | free-text, mostly multi-turn discussion of a pasted sequence: primer checks, annotation, coding potential, troubleshooting |
366
+ | `sft_instruction_following` | 5,904 | 1 | answering in the format the user asks for, and following format constraints on biology prompts |
367
+ | `sft_biology_qa` | 4,603 | 3 | genetics, molecular biology and bioinformatics questions from Biology StackExchange, Biostars, real user chats and Nemotron chat data |
368
+
369
+ ### Sources
370
+
371
+ Every source is the `_decontaminated_ngram_dna_homology` variant of the config below, `train` split. Each is shuffled
372
+ with seed 0 and truncated to `int(rows × weight)`; the result is concatenated, shuffled with seed 0 and split into
373
+ `train` and a 100-row `test` set with seed 0.
374
+
375
+ | dataset | config | revision | rows | weight | rows used | domain |
376
+ | --- | --- | --- | ---: | ---: | ---: | --- |
377
+ | `HuggingFaceBio/sequence-recovery-qa` | `varlen` | `e09cae72` | 58,754 | 1.0 | 58,754 | `sequence_continuation` |
378
+ | `HuggingFaceBio/sequence-recovery-qa` | `rewrite` | `e09cae72` | 24,730 | 0.1266728 | 3,132 | `dna_computation` |
379
+ | `HuggingFaceBio/carbon-format-if` | `format_if_v2` | `390592d0` | 5,196 | 1.0 | 5,196 | `instruction_following` |
380
+ | `HuggingFaceBio/basic-dna-sft-data-v3` | `all_diversify_30pct` | `72dc7e73` | 63,848 | 0.151 | 9,641 | `dna_computation` |
381
+ | `HuggingFaceBio/carbon-sequence-contextfree-v8-regex-10k` | `final` | `5f17e938` | 10,000 | 0.3 | 3,000 | `sequence_analysis` |
382
+ | `HuggingFaceBio/carbon-gemini-repair-sft` | `default` | `63cccfc7` | 11,907 | 0.3 | 3,572 | `sequence_analysis` |
383
+ | `HuggingFaceBio/carbon-sequence-contextfree-v6-1000` | `final` | `e2792417` | 992 | 1.0 | 992 | `sequence_analysis` |
384
+ | `HuggingFaceBio/carbon-bioSE-sft` | `final` | `31dc6d39` | 2,072 | 1.0 | 2,072 | `biology_qa` |
385
+ | `HuggingFaceBio/carbon-biostars-sft-v2` | `final` | `5014a6b6` | 1,327 | 1.0 | 1,327 | `biology_qa` |
386
+ | `HuggingFaceBio/wild-bio-prompts-luna-generated-verified-v1` | `final` | `35440c49` | 842 | 1.0 | 842 | `biology_qa` |
387
+ | `HuggingFaceBio/seqqa2-luna-sft-structurednotags-dna8-clean-v3` | `final` | `38644f1f` | 853 | 1.0 | 853 | `dna_computation` |
388
+ | `HuggingFaceBio/genomeqa-sft` | `enhancer_promoter_diversify_10pct` | `398703a5` | 10,559 | 0.4 | 4,223 | `sequence_classification` |
389
+ | `HuggingFaceBio/genomeqa-sft` | `eukaryote_cls_diversify_10pct` | `398703a5` | 9,143 | 0.4 | 3,657 | `sequence_classification` |
390
+ | `HuggingFaceBio/genomeqa-sft` | `tf_motif_diversify_10pct` | `398703a5` | 13,058 | 0.4 | 5,223 | `sequence_classification` |
391
+ | `HuggingFaceBio/genomeqa-sft` | `tfbs_diversify_10pct` | `398703a5` | 8,262 | 0.4 | 3,304 | `sequence_classification` |
392
+ | `HuggingFaceBio/vepqa-sft-draft-loubna` | `templated_reasoning_multiview_v2_all` | `76e39513` | 74,484 | 0.769 | 57,278 | `variant_effect_prediction` |
393
+ | `HuggingFaceBio/nemotron-data-filtered-carbon` | `biology_en_max8704` | `50df980c` | 3,656 | 0.1 | 365 | `biology_qa` |
394
+ | `HuggingFaceBio/nemotron-data-filtered-carbon` | `instruction_following_bio_en_max8704` | `50df980c` | 709 | 1.0 | 709 | `instruction_following` |
395
+ | `HuggingFaceBio/easy-dna-chat-v2` | `all` | `53923d9a` | 11,502 | 0.7442 | 8,559 | `chat` |
396
+ | `HuggingFaceBio/carbon-dna-skills` | `all` | `d703e0cd` | 39,156 | 0.8 | 31,324 | `dna_computation` |
397
+
398
+ `carbon-format-if` rows reuse examples from basic-dna, seqqa2 and sequence-recovery `varlen` with a format instruction
399
+ added, so they are labelled by purpose (`instruction_following`) rather than content.
400
+
401
+ ### Reproducing
402
+
403
+ The `sft/` files are copied unchanged from [`HuggingFaceBio/FineDNA-SFT`](https://huggingface.co/datasets/HuggingFaceBio/FineDNA-SFT)
404
+ at revision `400d761b`, which was built with:
405
+
406
+ ```bash
407
+ python sft/scripts/create_dataset.py --output_dataset HuggingFaceBio/FineDNA-SFT
408
+ ```
409
+
410
+ [`sft/scripts/create_dataset.py`](sft/scripts/create_dataset.py) pins the full revision of every source above and needs
411
+ read access to them (all are private). Its output matches the trainer's mixture loader row for row on both splits.
412
+
413
+ The domain configs are then split from the mixture's `train` split at revision `60b6e0d5`:
414
+
415
+ ```bash
416
+ python sft/scripts/create_subset.py --dataset HuggingFaceBio/FineDNA-SFT --revision 60b6e0d5c9af34bd97de521cc2cf5fb3e977771c
417
+ ```
418
+
419
+ ## RL
420
+
421
+ Verifiable prompts for reinforcement learning of a DNA language model: 98,433 rows in one `train` split, covering
422
+ 80,406 distinct prompts. Every prompt has a gold answer or constraint set that a reward function checks in code. The
423
+ blend was calibrated on rollouts from Carbon-X-SFT and excludes the prompts that model saw during SFT. It is meant for
424
+ one epoch. The rows of `rl_mix` are in the order the GRPO trainer's mixture loader produces (seed 0), so training on it
425
+ reproduces the blend exactly.
426
+
427
+ Some prompts appear more than once on purpose, for groups that learn slowly under RL: `basic_dna` repeats half of each
428
+ task type (10,153 second copies), `bioreason` repeats 30% of each subgroup and label (4,614), and `dna_skills` repeats
429
+ every prompt (3,260).
430
+
431
+ ### Columns
432
+
433
+ - `prompt`: the conversation to complete, as a list of `{role, content}` turns (2,983 rows open with a system turn).
434
+ - `answer_text`: the gold answer that most rewards compare against.
435
+ - `task_group`: which reward scores the row. Each task reward returns `None` for rows of other groups.
436
+ - `task_type`: the sub-task, used by the `basic_dna` and `seqrecqa_position` rewards (null elsewhere).
437
+ - `verifier_metadata`: the constraints an instruction-following reply must meet (`if` rows only).
438
+ - `gold_answer_json`: the exact answer the DNA-skills verifier checks (`dna_skills` rows only).
439
+ - `domain`: the kind of task. It uses the same labels as the SFT domains. Five of the eight occur here because the
440
+ blend has no chat, sequence-analysis or sequence-continuation prompts.
441
+
442
+ ### Task groups
443
+
444
+ | domain | task group | rows | what the prompts ask |
445
+ | --- | --- | ---: | --- |
446
+ | `dna_computation` | `basic_dna` | 30,461 | short-sequence computations with code-checked answers: base counts, melting temperature, restriction fragments, CRISPR cut sites, translation, motif spacing |
447
+ | `dna_computation` | `dna_skills` | 6,520 | exact operations on longer sequences: locate a base or snippet, convert coordinates, compare, edit, translate, design |
448
+ | `dna_computation` | `seqrecqa_position` | 6,000 | localisation: the position of a base, 6-base block, variant block, 12-base span, single-base difference or snippet |
449
+ | `variant_effect_prediction` | `bioreason` | 19,996 | is a coding-sequence or non-SNV variant pathogenic or benign |
450
+ | `variant_effect_prediction` | `vepqa` | 7,426 | is a single-nucleotide variant pathogenic or benign, judged from its sequence window |
451
+ | `sequence_classification` | `genomeqa` | 14,032 | multiple-choice functional genomics: promoter vs enhancer, species of origin, TF motifs and binding sites, splice sites, histone marks |
452
+ | `biology_qa` | `bio_mcq` | 9,998 | four- and ten-option biology knowledge questions |
453
+ | `instruction_following` | `if` | 4,000 | prompts with verifiable formatting constraints |
454
+
455
+ In total, `dna_computation` has 42,981 rows, `variant_effect_prediction` 27,422, `sequence_classification` 14,032,
456
+ `biology_qa` 9,998 and `instruction_following` 4,000.
457
+
458
+ ### Source
459
+
460
+ | dataset | config | revision | rows |
461
+ | --- | --- | --- | ---: |
462
+ | `HuggingFaceBio/Rollouts-Carbon-14B-SFT-v36.52-step-000019119` | `blend_all_v0` | `205d8b22` | 98,433 |
463
+
464
+ Only the six columns the trainer reads are kept, and `domain` is added from `task_group`. The rows are shuffled twice
465
+ with seed 0, matching the trainer's mixture loader (once per source, once after concatenation).
466
+
467
+ ### Reproducing
468
+
469
+ The `rl/` files are copied unchanged from [`HuggingFaceBio/FineDNA-RL`](https://huggingface.co/datasets/HuggingFaceBio/FineDNA-RL)
470
+ at revision `2315ddc7`, which was built with:
471
+
472
+ ```bash
473
+ python rl/scripts/create_dataset.py --output_dataset HuggingFaceBio/FineDNA-RL
474
+ ```
475
+
476
+ [`rl/scripts/create_dataset.py`](rl/scripts/create_dataset.py) pins the full source revision and needs read access to
477
+ it (the source is private). Its output matches the trainer's mixture loader row for row.
478
+
479
+ ## License
480
+
481
+ Each mid-training config keeps the license and terms of its source: GENERator, OpenGenome2, FineWeb-Edu, DCLM,
482
+ FinePDFs-Edu, PubMed Central, bioRxiv, Biostars, and Nemotron. The SFT and RL rows are built from the sources listed in
483
+ their sections. Check the source dataset before use.