--- license: other pretty_name: STEM Chain-of-Thought SFT language: [en] task_categories: [text-generation] tags: [math, science, chain-of-thought, sft, instruction, compilation] configs: - config_name: permissive default: true data_files: - {split: train, path: "data/permissive/train-*.parquet"} - config_name: sharealike data_files: - {split: train, path: "data/sharealike/train-*.parquet"} --- # stem-cot-sft **1,346,231 rows, about 0.43B tokens (chars/4 estimate).** A filtered, deduplicated, decontaminated compilation of existing public datasets. This is a compilation: the content belongs to its original sources and keeps their licenses (see below). What is added here is the selection, filtering and cleaning. | Config | Rows | |---|---| | `permissive` | 1,340,394 | | `sharealike` | 5,837 | ## Sources, generators and licenses | Source key | Config | Rows kept | ~Tokens (chars/4) | Scanned | Decontaminated | Exact duplicates | |---|---|---|---|---|---|---| | `numina` | `permissive` | 783,121 | 283,593,790 | 859,494 | 10,878 | 65,493 | | `metamath` | `permissive` | 129,806 | 26,671,244 | 395,000 | 10,008 | 255,186 | | `orca` | `permissive` | 41,970 | 13,276,365 | 200,000 | 27 | 158,003 | | `omi2` | `permissive` | 247,994 | 82,669,541 | 300,000 | 8,259 | 43,747 | | `mathinstruct` | `permissive` | 137,503 | 27,340,285 | 262,039 | 1,424 | 47,776 | | `sqa` | `sharealike` | 5,837 | 707,259 | 12,726 | 0 | 0 | | Source | Upstream | License | Generated by | |---|---|---|---| | `numina-cot/*` | [AI-MO/NuminaMath-CoT](https://huggingface.co/datasets/AI-MO/NuminaMath-CoT) | Apache-2.0 | GPT-4o | | `metamathqa/*` | [meta-math/MetaMathQA](https://huggingface.co/datasets/meta-math/MetaMathQA) | MIT | GPT-3.5-turbo | | `orca-math-200k` | [microsoft/orca-math-word-problems-200k](https://huggingface.co/datasets/microsoft/orca-math-word-problems-200k) | MIT | GPT-4-Turbo | | `openmathinstruct-2/*` | [nvidia/OpenMathInstruct-2](https://huggingface.co/datasets/nvidia/OpenMathInstruct-2) (first 300k of `train_1M`) | CC-BY-4.0 | Llama-3.1-405B-Instruct | | `mathinstruct-cot` | [TIGER-Lab/MathInstruct](https://huggingface.co/datasets/TIGER-Lab/MathInstruct) | MIT | mixed | | `scienceqa-text` | [derek-thomas/ScienceQA](https://huggingface.co/datasets/derek-thomas/ScienceQA) (text-only rows) | CC-BY-SA-4.0 | human | **Model-generated data carries the generator's terms.** Much of this set was written by OpenAI models (OpenAI's terms restrict using outputs to develop competing models) and by Llama-3.1 (Llama license, attribution required). Check those terms before commercial use. Configs: `permissive` and `sharealike` (ScienceQA). ## Columns `messages` (list of `{role, content}`: one user turn, one assistant turn), `source`, `license`, `generated_by`, `subject`, `has_code`, `n_chars`. ## How it was built - Unified chat format. MathInstruct program-of-thought rows and any row containing code were dropped (the focus is natural-language reasoning). - **Answers are not verified.** Solutions are model-generated and can be wrong. - **Benchmark decontamination:** documents sharing any 13-word overlap with the test questions/answers of GSM8K, MATH (all 7 subjects), MMLU (all) or ARC (Challenge+Easy) were removed (checked at stride 1). Test items shorter than 13 words are not covered, and this is not a guarantee of zero leakage. (applied to the problem text.) - **Deduplication:** exact (normalized-text MD5) across all sources and configs. There is **no fuzzy/near-duplicate removal**, so near-identical documents can remain. Publication status: private until the owner reviews it. The `license: other` header means *mixed, see the per-source table*, not a new license on the content.