The dataset could not be loaded because the splits use different data file formats, which is not supported. Read more about the splits configuration. Click for more details.
Error code: FileFormatMismatchBetweenSplitsError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Golden Data
Pre-tokenized pretraining, midtraining and SFT data used to train the models in ryankim17920/golden-run. All files are flat binary token streams (see "Binary format").
Versions
| v1 | v2 | |
|---|---|---|
| Tokenizer | GPT-2 BPE | custom 32k byte-level BPE with single-digit splitting (v2/tokenizer/) |
| Scale | ~25.5B-token golden v1 run (high-quality pretrain, midtrain, SFT, decay, plus eval/val files) | pretrain 38.3B tokens, midtrain 10.0B tokens, SFT 3.70B tokens |
| Layout | v1/hq_pretrain, v1/midtrain, v1/sft, v1/main, v1/decay, v1/lambada, plus manifests (v1/MANIFEST.md, v1/manifest.json, TSV files) |
v2/pretrain, v2/midtrain, v2/sft, v2/tokenizer, v2/MANIFEST.md |
v2 is a rebuild with a larger code share in pretraining (about 14% of tokens), a letter-format multiple-choice block in midtraining (about 4%), a stricter decontamination pass (including math benchmarks), and the 32k tokenizer. Each v2 stage directory contains mix.json (exact per-source token/doc counts and sha256), verify.json (integrity checks) and val_docsrc.npy (per-document source index for per-domain validation loss, where present).
v2 source mix
Pretrain (38,326,154,275 tokens, 30,210,754 docs)
| source | upstream dataset | tokens (32k) | share |
|---|---|---|---|
| fwedu4 | HuggingFaceFW/fineweb-edu (int_score>=4) | 8,386,907,593 | 21.88% |
| finepdfs | HuggingFaceFW/finepdfs-edu | 5,458,241,742 | 14.24% |
| finemath4 | HuggingFaceTB/finemath (finemath-4plus) | 5,328,185,823 | 13.90% |
| synth | PleIAs/SYNTH | 4,972,091,072 | 12.97% |
| stackv2 | common-pile/stackv2_edu_filtered | 4,496,806,222 | 11.73% |
| dclm | mlfoundations/dclm-baseline-1.0-parquet (fastText score filtered) | 4,061,441,124 | 10.60% |
| finephrase | HuggingFaceFW/finephrase | 2,791,093,153 | 7.28% |
| fiction | sedthh/gutenberg_english | 1,172,275,216 | 3.06% |
| code2_stackv2 | common-pile/stackv2_edu_filtered (second, disjoint pool) | 851,904,759 | 2.22% |
| cosmo2 | HuggingFaceTB/smollm-corpus (cosmopedia-v2) | 807,207,571 | 2.11% |
Midtrain (10,031,912,797 tokens, 28,927,778 docs)
| source | upstream dataset | tokens (32k) | share |
|---|---|---|---|
| replay_fwedu4 | HuggingFaceFW/fineweb-edu (replay) | 697,514,029 | 6.95% |
| d_flashcards | allenai/dolma3_dolmino_mix-100B-1125 | 633,937,888 | 6.32% |
| d_fim | allenai/dolma3_dolmino_mix-100B-1125 | 613,907,834 | 6.12% |
| replay_dclm | mlfoundations/dclm-baseline-1.0-parquet (replay) | 552,644,581 | 5.51% |
| replay_finepdfs | HuggingFaceFW/finepdfs-edu (replay) | 537,339,616 | 5.36% |
| d_nemo_qa | allenai/dolma3_dolmino_mix-100B-1125 | 505,185,244 | 5.04% |
| d_cranecode | allenai/dolma3_dolmino_mix-100B-1125 | 497,518,864 | 4.96% |
| synth_qa | PleIAs/SYNTH | 484,128,896 | 4.83% |
| d_omr_full | allenai/dolma3_dolmino_mix-100B-1125 | 450,529,403 | 4.49% |
| d_flan | allenai/dolma3_dolmino_mix-100B-1125 | 447,924,656 | 4.46% |
| synth_gen | PleIAs/SYNTH | 431,134,974 | 4.30% |
| d_code_meta | allenai/dolma3_dolmino_mix-100B-1125 | 394,488,091 | 3.93% |
| d_rcqa | allenai/dolma3_dolmino_mix-100B-1125 | 374,426,241 | 3.73% |
| d_math | allenai/dolma3_dolmino_mix-100B-1125 | 373,124,128 | 3.72% |
| d_cranemath | allenai/dolma3_dolmino_mix-100B-1125 | 360,730,043 | 3.60% |
| d_math_meta | allenai/dolma3_dolmino_mix-100B-1125 | 332,030,358 | 3.31% |
| mc_flash | Reddit-to-Flashcards MCQ (Dolmino flashcards), re-rendered as letter-format MCQ | 296,984,665 | 2.96% |
| d_tinymath | allenai/dolma3_dolmino_mix-100B-1125 | 287,684,920 | 2.87% |
| omr4k | nvidia/OpenMathReasoning | 242,520,162 | 2.42% |
| finephrase_mt | HuggingFaceFW/finephrase | 238,075,285 | 2.37% |
| fiction_mt | sedthh/gutenberg_english | 235,358,908 | 2.35% |
| d_megamatt | allenai/dolma3_dolmino_mix-100B-1125 | 219,602,320 | 2.19% |
| numina_mt | AI-MO/NuminaMath-1.5 (project-numina/NuminaMath-1.5) | 178,460,393 | 1.78% |
| tinygsm | TinyGSM/TinyGSM | 142,290,036 | 1.42% |
| d_progverif | allenai/dolma3_dolmino_mix-100B-1125 | 139,640,080 | 1.39% |
| nemo_on4k | nvidia/Llama-Nemotron-Post-Training-Dataset | 117,724,237 | 1.17% |
| st2_mt | HuggingFaceTB/smoltalk2 | 112,407,351 | 1.12% |
| mc_synth | PleIAs/SYNTH MCQ items, re-rendered as letter-format MCQ | 105,273,629 | 1.05% |
| d_ot2_code | allenai/dolma3_dolmino_mix-100B-1125 | 29,325,965 | 0.29% |
d_fim documents use fill-in-the-middle sentinels mapped to reserved tokens (midtrain/fim_map.json).
SFT (3,703,115,087 tokens, 6,128,558 docs)
| source | upstream dataset | share of SFT pool (pre-decontam tokens) |
|---|---|---|
| dolci | allenai/Dolci-Instruct-SFT | 29.2% |
| st2_instruct | HuggingFaceTB/smoltalk2 (instruct) | 23.0% |
| omi2 | nvidia/OpenMathInstruct-2 | 12.0% |
| oci | nvidia/OpenCodeInstruct | 12.0% |
| omr_sft | nvidia/OpenMathReasoning | 8.4% |
| numina_sft | AI-MO/NuminaMath-1.5 | 4.7% |
| smolsmol | HuggingFaceTB/smol-smoltalk | 3.9% |
| st2_think | HuggingFaceTB/smoltalk2 (think) | 3.7% |
| tulu3 | allenai/tulu-3-sft-mixture | 3.1% |
Ordering: instruct group first, then reasoning group (st2_think, numina_sft, omr_sft); group boundaries fall on document boundaries.
Decontamination
Training data was decontaminated against evaluation benchmarks (SciQ, ARC-Easy/Challenge, OpenBookQA, PIQA, HellaSwag, Winogrande, BoolQ, LAMBADA, MMLU, HumanEval, MBPP, MultiPL-E, and for v2 also GSM8K, MATH and MATH-500). Rules:
Matching uses 13-gram overlap between a document and a benchmark item (question plus gold answer), with an 8-gram fallback for items whose query is only 8-12 tokens; hits are verified token by token. A document is removed when it is a benchmark-formatted copy or a quiz page for a dirty item:
- R1: the document is chat / task-template / QA-template formatted (not plain web text) and has a verified hit for an item.
- R2: a plain web document that is a quiz/exam page for an item (at least 50% coverage of the item and its wrong answer options appearing nearby).
- R3-R4: the corresponding code-benchmark rules (HumanEval, MBPP, MultiPL-E) and the remaining benchmark-specific cases.
- R5: math-benchmark coverage (GSM8K, MATH, MATH-500): a document covering at least 50% of a test item, including QA-templated renderings.
Matching documents are removed from the pools. Selection then iterates: assemble, rescan the full assembly, remove newly flagged documents, refill, and repeat until a full rescan removes 0 documents. Each stage's final assembly passed with 0 documents flagged.
Binary format
- Token files (
train.bin,val.bin): contiguous little-endianuint16token ids, no header. v2 vocabulary size is 32768 (ids < 32768, so uint16 is exact); v1 uses GPT-2 ids. Documents are concatenated, each terminated by the EOS token (<|endoftext|>, id 32752 in v2). - SFT masks (
train_mask.bin,val_mask.bin):uint8, one byte per token, same length as the matching token file. 1 = token contributes to the loss (assistant tokens, including the EOS), 0 = prompt/context token. val_docsrc.npy:uint8array, one entry per validation document, indexing intoval_src_namesinmix.json.train_docsrc.npylikewise for training documents.
import numpy as np
from huggingface_hub import hf_hub_download
tok = np.memmap(hf_hub_download("ryankim17920/golden-data", "v2/sft/val.bin", repo_type="dataset"), dtype=np.uint16, mode="r")
mask = np.memmap(hf_hub_download("ryankim17920/golden-data", "v2/sft/val_mask.bin", repo_type="dataset"), dtype=np.uint8, mode="r")
assert len(tok) == len(mask)
loss_tokens = tok[mask == 1]
# decode: from tokenizers import Tokenizer; Tokenizer.from_file("v2/tokenizer/tokenizer.json").decode(tok[:200].tolist(), skip_special_tokens=False)
v2/tokenizer/golden_tok.py is a small loader exposing the special-token ids (EOS, chat markers, reserved tokens).
License
This dataset is a derivative mixture and inherits the licenses and terms of its source datasets, listed per source in the tables above (see mix.json in each stage). Each upstream dataset keeps its own license; consult the original dataset card before use, in particular for code (Stack v2 content carries per-file open-source licenses) and for model-generated data (SYNTH, Nemotron, OpenMath*, Smoltalk, Tulu, Dolci), whose terms may add restrictions. Users are responsible for compliance with all upstream terms.
Related
Models trained on this data: ryankim17920/golden-run.
- Downloads last month
- 17