AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Catalog / LLMs

    GSM8K (2021)

    8.5k grade-school math word problems with step-by-step solutions.

    Why it matters

    The benchmark that made "can LLMs reason?" measurable. Problems take 2–8 steps of basic arithmetic, so failures come from multi-step reasoning, not hard math. It became the standard test for chain-of-thought prompting and is now largely saturated by frontier models.

    Get the data

    # pip install -U huggingface_hub
    hf download openai/gsm8k --repo-type dataset \
      --local-dir gsm8k
    Year
    2021
    Creators
    Karl Cobbe et al. (OpenAI)
    Task
    Multi-step grade-school math word problems
    Size
    8,792 problems
    Splits
    train 7,473 · test 1,319
    Input
    A word problem in English
    Labels
    A worked solution ending in "#### <number>"
    License
    MIT
    Paper
    Training Verifiers to Solve Math Word Problems

    Samples

    Showing 3 of 20 sampled rows(from 1,319 in the test split)

    At Allan's house, there is twice as much corn as cannolis. He has a total of 40 cannolis in his house. Allan bought 60 more cannolis at the store and 40 fewer corns than the number of cannolis. Find the combined total of the number of corns and cannolis Allan has in the house?

    Show solution

    Before buying any corn and cannoli, Allan had twice as much corn as cannoli, which is 40 cannoli * 2 corn/cannoli = <<40*2=80>>80 corns The total number of corns and cannolis that Allan had before is 80 corn + 40 corn = <<80+40=120>>120 corn When he bought 40 fewer corns than cannolis, he bought 60 corn - 40 corn = <<60-40=20>>20 corns In total, he bought 20 corns + 60 cannolis = <<20+60=80>>80 items After the purchases, Allan has 120 items + 80 items = <<120+80=200>>200 total corns and cannolis combined. #### 200

    Valerie earns $5000 per month, 1/2 of what her brother earns. If their mother earns twice their combined salary, what's the total amount of money they all have together?

    Show solution

    Valerie's brother earns 2 * $5000 = $<<2*5000=10000>>10000 Their combined salary is $5000+$10000 = $<<5000+10000=15000>>15000 Their mother earn twice their combined earnings, which is 2*$15000 = $<<2*15000=30000>>30000 The total amount of money they all have is $15000+$30000 = $<<15000+30000=45000>>45000 #### 45000

    A builder works for 4 weeks every month and for 6 days every week. If he gets paid $50 every day, how much does he earn if he works for a year?

    Show solution

    The builder works for 6 days every week and works for 4 weeks every month so he works for 6 days/week * 4 weeks/month = <<6*4=24>>24 days/month If he earns $50 every day he then earns $50/day * 24 days/month = $<<50*24=1200>>1200/month A year is equal to 12 months so every year he earns $1200/month * 12 months/year = $<<1200*12=14400>>14400 #### 14400

    What one record actually looks like (raw JSON, row 406)
    {
      "answer": "Before buying any corn and cannoli, Allan had twice as much corn as cannoli, which is 40 cannoli * 2 corn/cannoli = <<40*2=80>>80 corns\nThe total number of corns and cannolis that Allan had before is 80 corn + 40 corn = <<80+40=120>>120 corn\nWhen he bought 40 fewer corns than cannolis, he bought 60 corn - 40 corn = <<60-40=20>>20 corns\nIn total, he bought 20 corns + 60 cannolis = <<20+60=80>>80 items\nAfter the purchases, Allan has 120 items + 80 items = <<120+80=200>>200 total corns and cannolis combined.\n#### 200",
      "question": "At Allan's house, there is twice as much corn as cannolis. He has a total of 40 cannolis in his house. Allan bought 60 more cannolis at the store and 40 fewer corns than the number of cannolis. Find the combined total of the number of corns and cannolis Allan has in the house?"
    }

    Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.

    Sampled 2026-11-07 from openai/gsm8k at revision 740312a

    Worth knowing

    Related datasets

    Landmark papers