lewtun HF Staff commited on
Commit
2ece4e5
·
verified ·
1 Parent(s): d678627

Add SFT and RL token counts to the card

Browse files
Files changed (1) hide show
  1. README.md +32 -25
README.md CHANGED
@@ -171,8 +171,8 @@ Qwen3-14B to read DNA, for all three of its training stages. Each stage is a gro
171
  | stage | configs | size | starts from |
172
  |---|---|---:|---|
173
  | [Mid-training](#mid-training) | `mid_*`, one per source (23) | 514.30B tokens, of which the run read 302B | [`Qwen/Qwen3-14B`](https://huggingface.co/Qwen/Qwen3-14B) |
174
- | [SFT](#sft) | `sft_mix`, and `sft_*` for each of its 8 domains | 203,923 conversations | [`HuggingFaceBio/Carbon-X-Base`](https://huggingface.co/HuggingFaceBio/Carbon-X-Base) |
175
- | [RL](#rl) | `rl_mix` | 98,433 prompts | [`HuggingFaceBio/Carbon-X-SFT`](https://huggingface.co/HuggingFaceBio/Carbon-X-SFT) |
176
 
177
  `sft_mix` and `rl_mix` are the rows the SFT and GRPO trainers used, in the order they used them. Mid-training has no
178
  single mix: Megatron samples the `mid_*` configs with the weights in [the mix](#the-mix) below.
@@ -313,8 +313,9 @@ Biology configs also have a `validation` split: the documents held out of traini
313
 
314
  ## SFT
315
 
316
- Supervised fine-tuning conversations for a DNA language model: 203,923 rows. `sft_mix` holds exactly the rows the
317
- SFT trainer built from the Carbon-X SFT mixture, so training on it reproduces the mixture without any further weighting.
 
318
 
319
  Each domain also has its own config, `sft_<domain>`, holding the `sft_mix` rows of that domain in the same order, e.g.
320
  `load_dataset("HuggingFaceBio/FineDNA", "sft_chat")`.
@@ -329,20 +330,23 @@ Each domain also has its own config, `sft_<domain>`, holding the `sft_mix` rows
329
 
330
  ### Domains
331
 
332
- | config | rows | what the rows teach |
333
- | --- | ---: | --- |
334
- | `sft_biology_qa` | 4,603 | genetics, molecular biology and bioinformatics questions from Biology StackExchange, Biostars, real user chats and Nemotron chat data |
335
- | `sft_chat` | 8,553 | multi-turn conversations on molecular-biology concepts, the assistant's identity, honesty about its limits, and pushing back on false claims |
336
- | `sft_dna_computation` | 44,925 | answers computed exactly from the sequence: counting, GC content, melting temperature, translation, restriction sites, base lookup, coordinates, edits, rewriting |
337
- | `sft_instruction_following` | 5,904 | answering in the format the user asks for, and following format constraints on biology prompts |
338
- | `sft_sequence_analysis` | 7,561 | free-text, mostly multi-turn discussion of a pasted sequence: primer checks, annotation, coding potential, troubleshooting |
339
- | `sft_sequence_classification` | 16,396 | multiple-choice functional genomics: promoter vs enhancer, species of origin, TF motifs, TF binding sites |
340
- | `sft_sequence_continuation` | 58,727 | predict the next 1–32 nucleotides after a 4–8 kb eukaryotic context |
341
- | `sft_variant_effect_prediction` | 57,254 | decide whether a single-nucleotide variant is benign or pathogenic from its sequence window, with templated reasoning |
 
 
 
342
 
343
  ## RL
344
 
345
- Verifiable prompts for reinforcement learning of a DNA language model: 98,433 rows, covering
346
  80,406 distinct prompts. Every prompt has a gold answer or constraint set that a reward function checks in code. The
347
  blend was calibrated on rollouts from Carbon-X-SFT and excludes the prompts that model saw during SFT. It is meant for
348
  one epoch. The rows of `rl_mix` are in the order the GRPO trainer's mixture loader produces (seed 0), so training on it
@@ -365,20 +369,23 @@ every prompt (3,260).
365
 
366
  ### Task groups
367
 
368
- | domain | task group | rows | what the prompts ask |
369
- | --- | --- | ---: | --- |
370
- | `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 |
371
- | `dna_computation` | `dna_skills` | 6,520 | exact operations on longer sequences: locate a base or snippet, convert coordinates, compare, edit, translate, design |
372
- | `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 |
373
- | `variant_effect_prediction` | `bioreason` | 19,996 | is a coding-sequence or non-SNV variant pathogenic or benign |
374
- | `variant_effect_prediction` | `vepqa` | 7,426 | is a single-nucleotide variant pathogenic or benign, judged from its sequence window |
375
- | `sequence_classification` | `genomeqa` | 14,032 | multiple-choice functional genomics: promoter vs enhancer, species of origin, TF motifs and binding sites, splice sites, histone marks |
376
- | `biology_qa` | `bio_mcq` | 9,998 | four- and ten-option biology knowledge questions |
377
- | `instruction_following` | `if` | 4,000 | prompts with verifiable formatting constraints |
378
 
379
  In total, `dna_computation` has 42,981 rows, `variant_effect_prediction` 27,422, `sequence_classification` 14,032,
380
  `biology_qa` 9,998 and `instruction_following` 4,000.
381
 
 
 
 
382
  ## License
383
 
384
  FineDNA is released under the Apache 2.0 license. The mid-training configs are built from third-party sources
 
171
  | stage | configs | size | starts from |
172
  |---|---|---:|---|
173
  | [Mid-training](#mid-training) | `mid_*`, one per source (23) | 514.30B tokens, of which the run read 302B | [`Qwen/Qwen3-14B`](https://huggingface.co/Qwen/Qwen3-14B) |
174
+ | [SFT](#sft) | `sft_mix`, and `sft_*` for each of its 8 domains | 203,923 conversations, 230.3M tokens | [`HuggingFaceBio/Carbon-X-Base`](https://huggingface.co/HuggingFaceBio/Carbon-X-Base) |
175
+ | [RL](#rl) | `rl_mix` | 98,433 prompts, 61.1M tokens | [`HuggingFaceBio/Carbon-X-SFT`](https://huggingface.co/HuggingFaceBio/Carbon-X-SFT) |
176
 
177
  `sft_mix` and `rl_mix` are the rows the SFT and GRPO trainers used, in the order they used them. Mid-training has no
178
  single mix: Megatron samples the `mid_*` configs with the weights in [the mix](#the-mix) below.
 
313
 
314
  ## SFT
315
 
316
+ Supervised fine-tuning conversations for a DNA language model: 203,923 rows and 230.3M tokens, 27.4M of them in
317
+ assistant turns. `sft_mix` holds exactly the rows the SFT trainer built from the Carbon-X SFT mixture, so training on
318
+ it reproduces the mixture without any further weighting.
319
 
320
  Each domain also has its own config, `sft_<domain>`, holding the `sft_mix` rows of that domain in the same order, e.g.
321
  `load_dataset("HuggingFaceBio/FineDNA", "sft_chat")`.
 
330
 
331
  ### Domains
332
 
333
+ | config | rows | tokens | assistant tokens | what the rows teach |
334
+ | --- | ---: | ---: | ---: | --- |
335
+ | `sft_biology_qa` | 4,603 | 2.8M | 2.2M | genetics, molecular biology and bioinformatics questions from Biology StackExchange, Biostars, real user chats and Nemotron chat data |
336
+ | `sft_chat` | 8,553 | 2.1M | 1.5M | multi-turn conversations on molecular-biology concepts, the assistant's identity, honesty about its limits, and pushing back on false claims |
337
+ | `sft_dna_computation` | 44,925 | 19.1M | 7.0M | answers computed exactly from the sequence: counting, GC content, melting temperature, translation, restriction sites, base lookup, coordinates, edits, rewriting |
338
+ | `sft_instruction_following` | 5,904 | 3.7M | 2.1M | answering in the format the user asks for, and following format constraints on biology prompts |
339
+ | `sft_sequence_analysis` | 7,561 | 8.7M | 3.6M | free-text, mostly multi-turn discussion of a pasted sequence: primer checks, annotation, coding potential, troubleshooting |
340
+ | `sft_sequence_classification` | 16,396 | 12.8M | 2.0M | multiple-choice functional genomics: promoter vs enhancer, species of origin, TF motifs, TF binding sites |
341
+ | `sft_sequence_continuation` | 58,727 | 64.8M | 0.65M | predict the next 1–32 nucleotides after a 4–8 kb eukaryotic context |
342
+ | `sft_variant_effect_prediction` | 57,254 | 116.2M | 8.2M | decide whether a single-nucleotide variant is benign or pathogenic from its sequence window, with templated reasoning |
343
+
344
+ Tokens are counted with the Carbon-X tokenizer and chat template. Assistant tokens are the ones the SFT loss is
345
+ computed on, and no conversation is longer than the 9,984-token training context.
346
 
347
  ## RL
348
 
349
+ Verifiable prompts for reinforcement learning of a DNA language model: 98,433 rows and 61.1M prompt tokens, covering
350
  80,406 distinct prompts. Every prompt has a gold answer or constraint set that a reward function checks in code. The
351
  blend was calibrated on rollouts from Carbon-X-SFT and excludes the prompts that model saw during SFT. It is meant for
352
  one epoch. The rows of `rl_mix` are in the order the GRPO trainer's mixture loader produces (seed 0), so training on it
 
369
 
370
  ### Task groups
371
 
372
+ | domain | task group | rows | prompt tokens | what the prompts ask |
373
+ | --- | --- | ---: | ---: | --- |
374
+ | `dna_computation` | `basic_dna` | 30,461 | 2.4M | short-sequence computations with code-checked answers: base counts, melting temperature, restriction fragments, CRISPR cut sites, translation, motif spacing |
375
+ | `dna_computation` | `dna_skills` | 6,520 | 1.1M | exact operations on longer sequences: locate a base or snippet, convert coordinates, compare, edit, translate, design |
376
+ | `dna_computation` | `seqrecqa_position` | 6,000 | 3.1M | localisation: the position of a base, 6-base block, variant block, 12-base span, single-base difference or snippet |
377
+ | `variant_effect_prediction` | `bioreason` | 19,996 | 29.0M | is a coding-sequence or non-SNV variant pathogenic or benign |
378
+ | `variant_effect_prediction` | `vepqa` | 7,426 | 14.3M | is a single-nucleotide variant pathogenic or benign, judged from its sequence window |
379
+ | `sequence_classification` | `genomeqa` | 14,032 | 7.1M | multiple-choice functional genomics: promoter vs enhancer, species of origin, TF motifs and binding sites, splice sites, histone marks |
380
+ | `biology_qa` | `bio_mcq` | 9,998 | 3.3M | four- and ten-option biology knowledge questions |
381
+ | `instruction_following` | `if` | 4,000 | 0.65M | prompts with verifiable formatting constraints |
382
 
383
  In total, `dna_computation` has 42,981 rows, `variant_effect_prediction` 27,422, `sequence_classification` 14,032,
384
  `biology_qa` 9,998 and `instruction_following` 4,000.
385
 
386
+ Prompt tokens are counted with the Carbon-X tokenizer and chat template, as the GRPO trainer renders the prompts
387
+ (thinking disabled). Completions are generated during training, so they are not counted.
388
+
389
  ## License
390
 
391
  FineDNA is released under the Apache 2.0 license. The mid-training configs are built from third-party sources