SmaulData-V2 / README.md
Native-ML's picture
Upload README.md
b6fa8b9 verified
|
Raw History Blame Contribute Delete
9.47 kB
---
license: other
license_name: per-source
pretty_name: SmaulData
task_categories:
- text-generation
tags:
- pretraining
- sft
- code
- math
- reasoning
- biology
- medical
- parquet
configs:
- config_name: starcoderdata
data_files: "starcoderdata/*/*.parquet"
- config_name: APPS-train
data_files: "data/APPS-train/*.parquet"
- config_name: CodeAlpaca-20K
data_files: "data/CodeAlpaca-20K/*.parquet"
- config_name: OpenCodeInstruct
data_files: "data/OpenCodeInstruct/*.parquet"
- config_name: AgentTrove
data_files: "data/AgentTrove/*.parquet"
- config_name: OpenThoughts-Agent-SFT-100K
data_files: "data/OpenThoughts-Agent-SFT-100K/*.parquet"
- config_name: TaskTrove
data_files: "data/TaskTrove/*.parquet"
- config_name: ToolACE
data_files: "data/ToolACE/*.parquet"
- config_name: WebTerminal-clean
data_files: "data/WebTerminal-clean/*.parquet"
- config_name: Mixture-of-Thoughts
data_files: "data/Mixture-of-Thoughts/*.parquet"
- config_name: OpenMathInstruct-2
data_files: "data/OpenMathInstruct-2/*.parquet"
- config_name: OpenR1-Math-220k
data_files: "data/OpenR1-Math-220k/*.parquet"
- config_name: OpenThoughts2-1M
data_files: "data/OpenThoughts2-1M/*.parquet"
- config_name: OpenThoughts3-1-2M
data_files: "data/OpenThoughts3-1.2M/*.parquet"
- config_name: WebInstruct-Sub
data_files: "data/WebInstruct-Sub/*.parquet"
- config_name: No-Robots
data_files: "data/No-Robots/*.parquet"
- config_name: OpenAssistant-OASST1
data_files: "data/OpenAssistant-OASST1/*.parquet"
- config_name: Tulu-3-SFT-Mixture
data_files: "data/Tulu-3-SFT-Mixture/*.parquet"
- config_name: SmolLM-FineWeb-Edu-Dedup
data_files: "data/SmolLM-FineWeb-Edu-Dedup/*.parquet"
- config_name: MedMCQA
data_files: "data/MedMCQA/*.parquet"
- config_name: MedQA-Pretrain-Corpus
data_files: "data/MedQA-Pretrain-Corpus/*.parquet"
- config_name: PubMedQA-artificial
data_files: "data/PubMedQA-artificial/*.parquet"
- config_name: PubMedQA-labeled
data_files: "data/PubMedQA-labeled/*.parquet"
- config_name: PubMedQA-unlabeled
data_files: "data/PubMedQA-unlabeled/*.parquet"
- config_name: Nemotron-Science-RQA
data_files: "data/Nemotron-Science-RQA/*.parquet"
- config_name: Nemotron-Science-StackExchange-MCQ
data_files: "data/Nemotron-Science-StackExchange-MCQ/*.parquet"
- config_name: Nemotron-Science-Synthetic-MCQ
data_files: "data/Nemotron-Science-Synthetic-MCQ/*.parquet"
- config_name: Nemotron-Science-Vendor
data_files: "data/Nemotron-Science-Vendor/*.parquet"
- config_name: Gene-Ontology
data_files: "data/Gene-Ontology/*.parquet"
- config_name: OpenGenome-stage1
data_files: "data/OpenGenome-stage1/*.parquet"
- config_name: UniProt-SwissProt
data_files: "data/UniProt-SwissProt/*.parquet"
---
# SmaulData
A multi-source pretraining + SFT mixture, stored as Parquet (ZSTD, up to 1M rows per file). Each source is its own folder and its own dataset config, since schemas differ between sources.
## Layout
```
SmaulData/
├── data/<Source>/part-00000.parquet ... # 30 sources
│ ├── manifest.json # build record (source repo, subset, rows)
│ └── stream_state.json # resume state
└── starcoderdata/<language>/part-00000.parquet ...
```
The JSON files are build bookkeeping, not data. The `configs` in this card point the viewer and `datasets` at the parquet files only.
## Sources
### Code & agentic
| Folder | Source | Subset | Rows | GiB |
|---|---|---|---:|---:|
| `APPS-train` | APPS (local json) | - | 5,000 | <0.1 |
| `CodeAlpaca-20K` | [sahil2801/CodeAlpaca-20k](https://huggingface.co/datasets/sahil2801/CodeAlpaca-20k) | - | 20,022 | <0.1 |
| `OpenCodeInstruct` | [nvidia/OpenCodeInstruct](https://huggingface.co/datasets/nvidia/OpenCodeInstruct) | - | 5,000,000 | 3.0 |
| `AgentTrove` | [open-thoughts/AgentTrove](https://huggingface.co/datasets/open-thoughts/AgentTrove) | - | 1,696,847 | 7.9 |
| `OpenThoughts-Agent-SFT-100K` | [open-thoughts/OpenThoughts-Agent-SFT-100K](https://huggingface.co/datasets/open-thoughts/OpenThoughts-Agent-SFT-100K) | - | 94,334 | 0.8 |
| `TaskTrove` | [open-thoughts/TaskTrove](https://huggingface.co/datasets/open-thoughts/TaskTrove) | default | 1,610,838 | 5.6 |
| `ToolACE` | [Team-ACE/ToolACE](https://huggingface.co/datasets/Team-ACE/ToolACE) | - | 11,300 | <0.1 |
| `WebTerminal-clean` | [AdaMLLab/WebTerminal](https://huggingface.co/datasets/AdaMLLab/WebTerminal) | clean | 2,334,414 | 5.8 |
### Math & reasoning
| Folder | Source | Subset | Rows | GiB |
|---|---|---|---:|---:|
| `Mixture-of-Thoughts` | [open-r1/Mixture-of-Thoughts](https://huggingface.co/datasets/open-r1/Mixture-of-Thoughts) | all | 349,317 | 1.5 |
| `OpenMathInstruct-2` | [nvidia/OpenMathInstruct-2](https://huggingface.co/datasets/nvidia/OpenMathInstruct-2) | - | 13,972,791 | 3.6 |
| `OpenR1-Math-220k` | [open-r1/OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k) | default | 93,733 | 1.1 |
| `OpenThoughts2-1M` | [open-thoughts/OpenThoughts2-1M](https://huggingface.co/datasets/open-thoughts/OpenThoughts2-1M) | - | 1,143,205 | 4.2 |
| `OpenThoughts3-1.2M` | [open-thoughts/OpenThoughts3-1.2M](https://huggingface.co/datasets/open-thoughts/OpenThoughts3-1.2M) | - | 1,200,000 | 14.4 |
| `WebInstruct-Sub` | [TIGER-Lab/WebInstructSub](https://huggingface.co/datasets/TIGER-Lab/WebInstructSub) | - | 2,335,220 | 1.8 |
### General chat & instruction
| Folder | Source | Subset | Rows | GiB |
|---|---|---|---:|---:|
| `No-Robots` | [HuggingFaceH4/no_robots](https://huggingface.co/datasets/HuggingFaceH4/no_robots) | - | 9,500 | <0.1 |
| `OpenAssistant-OASST1` | [OpenAssistant/oasst1](https://huggingface.co/datasets/OpenAssistant/oasst1) | - | 84,437 | <0.1 |
| `Tulu-3-SFT-Mixture` | [allenai/tulu-3-sft-mixture](https://huggingface.co/datasets/allenai/tulu-3-sft-mixture) | - | 939,343 | 0.7 |
### Web text
| Folder | Source | Subset | Rows | GiB |
|---|---|---|---:|---:|
| `SmolLM-FineWeb-Edu-Dedup` | [HuggingFaceTB/smollm-corpus](https://huggingface.co/datasets/HuggingFaceTB/smollm-corpus) | fineweb-edu-dedup | 50,000,000 | 73.3 |
### Science & medical
| Folder | Source | Subset | Rows | GiB |
|---|---|---|---:|---:|
| `MedMCQA` | [openlifescienceai/medmcqa](https://huggingface.co/datasets/openlifescienceai/medmcqa) | - | 182,822 | <0.1 |
| `MedQA-Pretrain-Corpus` | [salisai/MedQA-Pretrain-Corpus](https://huggingface.co/datasets/salisai/MedQA-Pretrain-Corpus) | - | 7,262,100 | 0.3 |
| `PubMedQA-artificial` | [qiaojin/PubMedQA](https://huggingface.co/datasets/qiaojin/PubMedQA) | pqa_artificial | 211,269 | 0.1 |
| `PubMedQA-labeled` | [qiaojin/PubMedQA](https://huggingface.co/datasets/qiaojin/PubMedQA) | pqa_labeled | 1,000 | <0.1 |
| `PubMedQA-unlabeled` | [qiaojin/PubMedQA](https://huggingface.co/datasets/qiaojin/PubMedQA) | pqa_unlabeled | 61,249 | <0.1 |
| `Nemotron-Science-RQA` | [nvidia/Nemotron-SFT-Science-v2](https://huggingface.co/datasets/nvidia/Nemotron-SFT-Science-v2) | rqa | 413,519 | 1.9 |
| `Nemotron-Science-StackExchange-MCQ` | [nvidia/Nemotron-SFT-Science-v2](https://huggingface.co/datasets/nvidia/Nemotron-SFT-Science-v2) | so | 2,105,985 | 3.2 |
| `Nemotron-Science-Synthetic-MCQ` | [nvidia/Nemotron-SFT-Science-v2](https://huggingface.co/datasets/nvidia/Nemotron-SFT-Science-v2) | syn_mcq | 96,610 | 0.1 |
| `Nemotron-Science-Vendor` | [nvidia/Nemotron-SFT-Science-v2](https://huggingface.co/datasets/nvidia/Nemotron-SFT-Science-v2) | vendor | 221,598 | 5.4 |
### Biology & genomics
| Folder | Source | Subset | Rows | GiB |
|---|---|---|---:|---:|
| `Gene-Ontology` | [CleverThis/gene-ontology](https://huggingface.co/datasets/CleverThis/gene-ontology) | data (split) | 1,425,391 | <0.1 |
| `OpenGenome-stage1` | [LongSafari/open-genome](https://huggingface.co/datasets/LongSafari/open-genome) | stage1 | 12,199,752 | 72.8 |
| `UniProt-SwissProt` | [damlab/uniprot](https://huggingface.co/datasets/damlab/uniprot) | - | 566,996 | 0.1 |
### StarCoderData (`starcoderdata/`)
Subset of [bigcode/starcoderdata](https://huggingface.co/datasets/bigcode/starcoderdata), re-chunked with content unchanged. Languages: assembly, batchfile, c, c-sharp, clojure, cmake, cpp, css, cuda, dockerfile, f-sharp, fortran, go, html, java, javascript, json, kotlin, lean, lua, makefile, markdown, php, powershell, python, rust, shell, sql, typescript, visual-basic, yaml. Upload is in progress, so some languages may be missing.
Row counts come from each folder's `manifest.json`. Some sources were capped when built (for example OpenCodeInstruct at 5M rows and SmolLM FineWeb-Edu-Dedup at 50M), so they may be subsets of the upstream dataset.
## Format
- Compression: ZSTD level 12 (StarCoderData); other sources follow their `manifest.json`
- Up to 1M rows per file, numbered sequentially
- Schemas follow each upstream source and are **not** unified; normalize in your own training code
## Usage
```python
from datasets import load_dataset
# one source
ds = load_dataset("Native-ML/SmaulData", "OpenMathInstruct-2", split="train", streaming=True)
# one StarCoderData language
ds = load_dataset("Native-ML/SmaulData", data_files="starcoderdata/rust/*.parquet", split="train")
```
Config names match folder names, except `OpenThoughts3-1.2M`, whose config is `OpenThoughts3-1-2M`.
## Licensing
Each source keeps its original license; see the linked upstream card for terms.
## Citation
Cite the upstream datasets for the portions you use.