252
stars
18
commits
4
linked in READMEs
Feb 16, 2024
updated
OpenMathInstruct-1 is a math instruction tuning dataset with 1.8M problem-solution pairs generated using permissively licensed Mixtral-8x7B model.
The problems are from GSM8K and MATH training subsets and the solutions are synthetically generated by allowing Mixtral model to use a mix of text reasoning and code blocks executed by Python interpreter.
The dataset is split into train and validation subsets that we used in the ablations experiments. These two subsets combined together cover the full training set of GSM8K and MATH.
OpenMathInstruct-1 dataset contains of the following fields:
\boxed{}).<not_executed> if code was not used. Otherwise it's empty or contains a Python exception
from the corresponding code block. A timeout string indicates that code block took longer than 10 seconds to
execute. In the current dataset version we always stop generation after any error or a timeout.without_reference_solution or masked_reference_solution.We also release the masked solutions used to produce generation_type="masked_reference_solution"
portion of the dataset (GSM8K-Masked,
MATH-Masked).
See our paper to learn more details!
To demonstrate the quality of this dataset, we release a series of OpenMath models trained on this data (a combination of train and validation splits to allow comparison with prior work).
| greedy | majority@50 | |||
| model | GSM8K | MATH | GMS8K | MATH |
| OpenMath-CodeLlama-7B (nemo | HF) | 75.9 | 43.6 | 84.8 | 55.6 |
| OpenMath-Mistral-7B (nemo | HF) | 80.2 | 44.5 | 86.9 | 57.2 |
| OpenMath-CodeLlama-13B (nemo | HF) | 78.8 | 45.5 | 86.8 | 57.6 |
| OpenMath-CodeLlama-34B (nemo | HF) | 80.7 | 48.3 | 88.0 | 60.2 |
| OpenMath-Llama2-70B (nemo | HF) | 84.7 | 46.3 | 90.1 | 58.3 |
| OpenMath-CodeLlama-70B (nemo | HF) | 84.6 | 50.7 | 90.8 | 60.4 |
The pipeline we used to produce the data and models is fully open-sourced!
We provide all instructions to fully reproduce our results, including data generation.
To generate similar datasets for other tasks or to learn more about our code, read through the docs below.
If you find our work useful, please consider citing us!
@article{toshniwal2024openmath,
title = {OpenMathInstruct-1: A 1.8 Million Math Instruction Tuning Dataset},
author = {Shubham Toshniwal and Ivan Moshkov and Sean Narenthiran and Daria Gitman and Fei Jia and Igor Gitman},
year = {2024},
journal = {arXiv preprint arXiv: Arxiv-2402.10176}
}
The use of this dataset is governed by the NVIDIA License which permits commercial usage.
18 commits
252
stars
18
commits
4
linked in READMEs
Feb 16, 2024
updated
OpenMathInstruct-1 is a math instruction tuning dataset with 1.8M problem-solution pairs generated using permissively licensed Mixtral-8x7B model.
The problems are from GSM8K and MATH training subsets and the solutions are synthetically generated by allowing Mixtral model to use a mix of text reasoning and code blocks executed by Python interpreter.
The dataset is split into train and validation subsets that we used in the ablations experiments. These two subsets combined together cover the full training set of GSM8K and MATH.
OpenMathInstruct-1 dataset contains of the following fields:
\boxed{}).<not_executed> if code was not used. Otherwise it's empty or contains a Python exception
from the corresponding code block. A timeout string indicates that code block took longer than 10 seconds to
execute. In the current dataset version we always stop generation after any error or a timeout.without_reference_solution or masked_reference_solution.We also release the masked solutions used to produce generation_type="masked_reference_solution"
portion of the dataset (GSM8K-Masked,
MATH-Masked).
See our paper to learn more details!
To demonstrate the quality of this dataset, we release a series of OpenMath models trained on this data (a combination of train and validation splits to allow comparison with prior work).
| greedy | majority@50 | |||
| model | GSM8K | MATH | GMS8K | MATH |
| OpenMath-CodeLlama-7B (nemo | HF) | 75.9 | 43.6 | 84.8 | 55.6 |
| OpenMath-Mistral-7B (nemo | HF) | 80.2 | 44.5 | 86.9 | 57.2 |
| OpenMath-CodeLlama-13B (nemo | HF) | 78.8 | 45.5 | 86.8 | 57.6 |
| OpenMath-CodeLlama-34B (nemo | HF) | 80.7 | 48.3 | 88.0 | 60.2 |
| OpenMath-Llama2-70B (nemo | HF) | 84.7 | 46.3 | 90.1 | 58.3 |
| OpenMath-CodeLlama-70B (nemo | HF) | 84.6 | 50.7 | 90.8 | 60.4 |
The pipeline we used to produce the data and models is fully open-sourced!
We provide all instructions to fully reproduce our results, including data generation.
To generate similar datasets for other tasks or to learn more about our code, read through the docs below.
If you find our work useful, please consider citing us!
@article{toshniwal2024openmath,
title = {OpenMathInstruct-1: A 1.8 Million Math Instruction Tuning Dataset},
author = {Shubham Toshniwal and Ivan Moshkov and Sean Narenthiran and Daria Gitman and Fei Jia and Igor Gitman},
year = {2024},
journal = {arXiv preprint arXiv: Arxiv-2402.10176}
}
The use of this dataset is governed by the NVIDIA License which permits commercial usage.
18 commits