Skip to content

Dataset · MathLLMs

Dataset for solving math problems via code

MathLLMs/MathCodeInstruct

English texts for training language models to solve mathematical problems through code generation.

What's inside

An English-language dataset prepared within the MathCoder project (based on Llama-2 and Code Llama). It includes between 10,000 and 100,000 text examples for text generation and question-answering tasks. The dataset focuses on integrating programming code into the mathematical reasoning process of LLMs.

What you can do with it

  • Supervised fine-tuning (SFT) of language models for mathematical problem-solving with code writing
  • Creation of specialized LoRA adapters to enhance logic and computation in LLMs
  • Evaluation of code generation quality in solving mathematical examples
Tasks
Question answering, Text generation
Languages
English
Size
10K–100K rows
Downloads this month
414
Likes
27

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("MathLLMs/MathCodeInstruct")