Dataset Viewer
Auto-converted to Parquet Duplicate
topic
stringclasses
12 values
answer_kind
stringclasses
10 values
messages
listlengths
2
2
money
money
[ { "role": "user", "content": "Nora buys a book for $4.48 and pays with $5.00. How much change does Nora get?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 0.52" } ]
money
money
[ { "role": "user", "content": "A customer pays $50.00 for an item that costs $34.72. Find the change.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 15.28" } ]
fraction_arithmetic
fraction
[ { "role": "user", "content": "What is 12/26 + 8/26? Give your answer as a fraction.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 10/13" } ]
money
money
[ { "role": "user", "content": "Imani buys a book for $4.87 and a pencil case for $14.18. What is the total cost?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 19.05" } ]
addition
number
[ { "role": "user", "content": "What is 63 + 90?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 153" } ]
fraction_arithmetic
fraction
[ { "role": "user", "content": "What is 22/35 − 5/35? Give your answer as a fraction.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 17/35" } ]
time
minutes
[ { "role": "user", "content": "Omar starts a timer at 5:45 PM and stops it the next time the clock reads 7:00 PM. How many minutes are on the timer?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 75" } ]
rounding
number
[ { "role": "user", "content": "Round 216,739 to the nearest thousand.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 217000" } ]
time
clock
[ { "role": "user", "content": "A movie starts at 12:45 PM and lasts 149 minutes. When does it end? Include AM or PM.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 3:14 PM" } ]
division
number
[ { "role": "user", "content": "A class puts 335 buttons into packets of 5. How many packets does the class fill?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 67" } ]
fraction_arithmetic
fraction
[ { "role": "user", "content": "What is 15/35 + 14/35? Give your answer as a fraction.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 29/35" } ]
place_value
number
[ { "role": "user", "content": "How much is the digit in the tens place worth in 5,720?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 20" } ]
money
money
[ { "role": "user", "content": "One item costs $30.20 and another costs $8.71. How much do they cost together?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 38.91" } ]
multiplication
number
[ { "role": "user", "content": "What is 30 × 48?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 1440" } ]
geometry
m
[ { "role": "user", "content": "A rectangle is 66 meters long and 55 meters wide. What is its perimeter in meters?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 242" } ]
multiplication
number
[ { "role": "user", "content": "What is 13 × 2?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 26" } ]
rounding
number
[ { "role": "user", "content": "Round 688 to the nearest hundred.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 700" } ]
subtraction
number
[ { "role": "user", "content": "What is 548 − 2?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 546" } ]
money
money
[ { "role": "user", "content": "One item costs $5.20 and another costs $8.77. How much do they cost together?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 13.97" } ]
geometry
m
[ { "role": "user", "content": "A rectangle is 16 meters long and 16 meters wide. What is its perimeter in meters?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 64" } ]
addition
number
[ { "role": "user", "content": "Kai has 61 buttons and gets 8 more. How many buttons does Kai have now?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 69" } ]
multiplication
number
[ { "role": "user", "content": "There are 2 boxes with 19 pencils in each box. How many pencils are there in all?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 38" } ]
subtraction
number
[ { "role": "user", "content": "Imani starts with 609 buttons and gives away 602. How many buttons are left?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 7" } ]
money
money
[ { "role": "user", "content": "One item costs $4.68 and another costs $7.07. How much do they cost together?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 11.75" } ]
money
money
[ { "role": "user", "content": "Ana buys a poster for $5.22 and a puzzle for $19.36. What is the total cost?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 24.58" } ]
subtraction
number
[ { "role": "user", "content": "Subtract 84 from 406.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 322" } ]
fraction_of_group
number
[ { "role": "user", "content": "What is 11/16 of 192?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 132" } ]
rounding
number
[ { "role": "user", "content": "372 people visited a park. About how many people is that to the nearest hundred?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 400" } ]
place_value
number
[ { "role": "user", "content": "Look at 982. What is the value of its ones digit?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 2" } ]
division_with_remainder
remainder
[ { "role": "user", "content": "Zoe has 558 paper clips and puts 14 in each bag. How many full bags are there, and how many paper clips are left over? Use the format quotient R remainder.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### ...
addition
number
[ { "role": "user", "content": "Find the sum of 94 and 15.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 109" } ]
money
money
[ { "role": "user", "content": "A customer pays $20.00 for an item that costs $10.20. Find the change.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 9.80" } ]
multiplication
number
[ { "role": "user", "content": "There are 58 boxes with 7 crayons in each box. How many crayons are there in all?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 406" } ]
place_value
number
[ { "role": "user", "content": "Which digit is in the ones place in 7,263?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 3" } ]
time
minutes
[ { "role": "user", "content": "Nora starts a timer at 10:20 AM and stops it the next time the clock reads 10:40 AM. How many minutes are on the timer?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 20" } ]
fraction_arithmetic
fraction
[ { "role": "user", "content": "What is 19/36 + 10/36? Give your answer as a fraction.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 29/36" } ]
rounding
number
[ { "role": "user", "content": "19,500 people visited a park. About how many people is that to the nearest thousand?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 20000" } ]
multiplication
number
[ { "role": "user", "content": "What is 26 × 82?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 2132" } ]
geometry
cm
[ { "role": "user", "content": "A rectangle is 19 centimeters long and 11 centimeters wide. What is its perimeter in centimeters?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 60" } ]
time
clock
[ { "role": "user", "content": "Zoe starts reading at 4:40 AM and reads for 110 minutes. When does Zoe finish? Include AM or PM.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 6:30 AM" } ]
subtraction
number
[ { "role": "user", "content": "Omar starts with 1,553 shells and gives away 662. How many shells are left?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 891" } ]
division_with_remainder
remainder
[ { "role": "user", "content": "Jules has 43 crayons and puts 2 in each bag. How many full bags are there, and how many crayons are left over? Use the format quotient R remainder.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 21 R 1" ...
division
number
[ { "role": "user", "content": "Divide 324 by 9.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 36" } ]
subtraction
number
[ { "role": "user", "content": "Subtract 603 from 1,243.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 640" } ]
fraction_arithmetic
fraction
[ { "role": "user", "content": "Calculate 15/17 − 13/17. Give your answer as a fraction.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 2/17" } ]
division
number
[ { "role": "user", "content": "What is 486 ÷ 3?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 162" } ]
addition
number
[ { "role": "user", "content": "Find the sum of 43 and 58.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 101" } ]
place_value
number
[ { "role": "user", "content": "Which digit is in the tens place in 42,722?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 2" } ]
time
clock
[ { "role": "user", "content": "A train ride starts at 1:33 PM and lasts 22 minutes. When does it end? Include AM or PM.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 1:55 PM" } ]
division
number
[ { "role": "user", "content": "Divide 28 by 7.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 4" } ]
time
clock
[ { "role": "user", "content": "Nora starts reading at 9:10 PM and reads for 114 minutes. When does Nora finish? Include AM or PM.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 11:04 PM" } ]
fraction_of_group
number
[ { "role": "user", "content": "There are 68 buttons in a bag. 1/2 of them are blue. How many are blue?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 34" } ]
fraction_arithmetic
fraction
[ { "role": "user", "content": "Calculate 17/33 − 5/33. Give your answer as a fraction.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 4/11" } ]
division
number
[ { "role": "user", "content": "What is 2,712 ÷ 4?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 678" } ]
division_with_remainder
remainder
[ { "role": "user", "content": "Kai has 82 marbles and puts 7 in each bag. How many full bags are there, and how many marbles are left over? Use the format quotient R remainder.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 11 R 5" ...
geometry
cm2
[ { "role": "user", "content": "Imagine a picture shaped like a rectangle, 62 centimeters by 24 centimeters. What is its area in square centimeters?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 1488" } ]
division_with_remainder
remainder
[ { "role": "user", "content": "A library has 618 books. Each shelf holds 22 books. How many shelves can be filled, and how many books will be left over? Use the format quotient R remainder.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "##...
fraction_of_group
number
[ { "role": "user", "content": "There are 48 marbles in a bag. 7/8 of them are blue. How many are blue?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 42" } ]
addition
number
[ { "role": "user", "content": "What is 5 + 501?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 506" } ]
fraction_of_group
number
[ { "role": "user", "content": "Find 2/3 of 156.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 104" } ]
subtraction
number
[ { "role": "user", "content": "Imani starts with 110 stickers and gives away 71. How many stickers are left?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 39" } ]
fraction_arithmetic
fraction
[ { "role": "user", "content": "Calculate 13/18 − 4/18. Give your answer as a fraction.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 1/2" } ]
time
minutes
[ { "role": "user", "content": "How many minutes pass from 8:35 AM to the next 9:05 AM?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 30" } ]
geometry
m
[ { "role": "user", "content": "Imagine a yard shaped like a rectangle, 51 meters by 21 meters. What is its perimeter in meters?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 144" } ]
geometry
cm
[ { "role": "user", "content": "Imagine a picture shaped like a rectangle, 64 centimeters by 41 centimeters. What is its perimeter in centimeters?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 210" } ]
fraction_of_group
number
[ { "role": "user", "content": "There are 72 buttons in a bag. 3/9 of them are blue. How many are blue?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 24" } ]
division_with_remainder
remainder
[ { "role": "user", "content": "A library has 213 books. Each shelf holds 19 books. How many shelves can be filled, and how many books will be left over? Use the format quotient R remainder.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "##...
rounding
number
[ { "role": "user", "content": "99,126 people visited a park. About how many people is that to the nearest thousand?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 99000" } ]
fraction_of_group
number
[ { "role": "user", "content": "What is 3/13 of 286?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 66" } ]
fraction_of_group
number
[ { "role": "user", "content": "A library has 880 books on a cart. 12/16 of them are picture books. How many picture books are on the cart?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 660" } ]
multiplication
number
[ { "role": "user", "content": "A garden has 646 rows with 5 plants in each row. How many plants are there?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 3230" } ]
place_value
number
[ { "role": "user", "content": "Look at 5,231. What is the value of its ones digit?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 1" } ]
division
number
[ { "role": "user", "content": "What is 1,292 ÷ 2?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 646" } ]
addition
number
[ { "role": "user", "content": "One box holds 20 crayons and another holds 95. How many crayons are there altogether?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 115" } ]
geometry
m2
[ { "role": "user", "content": "A rectangle is 63 meters long and 52 meters wide. What is its area in square meters?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 3276" } ]
fraction_arithmetic
fraction
[ { "role": "user", "content": "What is 8/35 + 2/35? Give your answer as a fraction.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 2/7" } ]
addition
number
[ { "role": "user", "content": "What is 908 + 1?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 909" } ]
place_value
number
[ { "role": "user", "content": "How much is the digit in the ten-thousands place worth in 64,369?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 60000" } ]
geometry
cm
[ { "role": "user", "content": "Imagine a picture shaped like a rectangle, 21 centimeters by 14 centimeters. What is its perimeter in centimeters?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 70" } ]
subtraction
number
[ { "role": "user", "content": "One jar has 154 crayons. Another has 65. How many more are in the first jar?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 89" } ]
division
number
[ { "role": "user", "content": "What is 210 ÷ 10?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 21" } ]
geometry
m
[ { "role": "user", "content": "A rectangle is 52 meters long and 19 meters wide. What is its perimeter in meters?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 142" } ]
addition
number
[ { "role": "user", "content": "One box holds 59 pencils and another holds 767. How many pencils are there altogether?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 826" } ]
money
money
[ { "role": "user", "content": "A customer pays $50.00 for an item that costs $20.05. Find the change.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 29.95" } ]
rounding
number
[ { "role": "user", "content": "46,678 people visited a park. About how many people is that to the nearest thousand?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 47000" } ]
addition
number
[ { "role": "user", "content": "What is 66 + 963?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 1029" } ]
addition
number
[ { "role": "user", "content": "Maya has 83 paper clips and gets 25 more. How many paper clips does Maya have now?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 108" } ]
subtraction
number
[ { "role": "user", "content": "What is 60 − 6?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 54" } ]
division_with_remainder
remainder
[ { "role": "user", "content": "Imani has 427 stickers and puts 9 in each bag. How many full bags are there, and how many stickers are left over? Use the format quotient R remainder.\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 47 R ...
fraction_of_group
number
[ { "role": "user", "content": "There are 513 shells in a bag. 2/9 of them are blue. How many are blue?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 114" } ]
time
minutes
[ { "role": "user", "content": "How many minutes pass from 4:08 PM to the next 4:34 PM?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 26" } ]
geometry
cm
[ { "role": "user", "content": "Imagine a piece of paper shaped like a rectangle, 24 centimeters by 2 centimeters. What is its perimeter in centimeters?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 52" } ]
multiplication
number
[ { "role": "user", "content": "There are 10 boxes with 23 stickers in each box. How many stickers are there in all?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 230" } ]
subtraction
number
[ { "role": "user", "content": "What is 1,595 − 694?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 901" } ]
subtraction
number
[ { "role": "user", "content": "Imani starts with 757 crayons and gives away 76. How many crayons are left?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 681" } ]
rounding
number
[ { "role": "user", "content": "What is 113,122 rounded to the nearest thousand?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 113000" } ]
money
money
[ { "role": "user", "content": "Jules buys a book for $32.18 and pays with $50.00. How much change does Jules get?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 17.82" } ]
addition
number
[ { "role": "user", "content": "Jules has 10 shells and gets 76 more. How many shells does Jules have now?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 86" } ]
money
money
[ { "role": "user", "content": "One item costs $28.80 and another costs $6.30. How much do they cost together?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 35.10" } ]
division
number
[ { "role": "user", "content": "A class puts 176 pencils into packets of 8. How many packets does the class fill?\n\nEnd with a line that starts with #### followed by your answer." }, { "role": "assistant", "content": "#### 22" } ]
End of preview. Expand in Data Studio

Elementary Math for NanoChat RL

This dataset contains synthetic elementary school math problems in English, with short reference answers for reinforcement learning with verifiable rewards.

File Problems Problems per topic
train.jsonl 12,000 1,000
validation.jsonl 1,200 100

The 12 topics are addition, subtraction, multiplication, exact division, division with remainders, place value, rounding, fractions of a group, fraction addition and subtraction, time, US money, and rectangle area and perimeter. The prompts include direct calculations and short word problems. Both splits use the same question templates with disjoint underlying facts, including reordered operands and corresponding inverse arithmetic problems.

Format and rewards

Each line is a JSON object with a topic, an answer type, and two NanoChat messages.

{"topic":"division","answer_kind":"number","messages":[{"role":"user","content":"What is 462 ÷ 6?\n\nEnd with a line that starts with #### followed by your answer."},{"role":"assistant","content":"#### 77"}]}

NanoChat's completion renderer removes the reference assistant turn before rollout. The task loader uses that turn to compute a reward of 1 for a correct final answer and 0 otherwise. It accepts a single answer on the final line, including the requested marker, and normalizes common equivalent forms such as 1,200 and 1200, 2/4 and 1/2, or 7:05 pm and 07:05 P.M.. A remainder answer must give both the quotient and the remainder. Geometry and elapsed-time answers may include the unit requested in the prompt.

Use with NanoChat

Copy elementary_math.py into the NanoChat checkout's tasks/ directory. Add this option alongside the other arguments in scripts/chat_rl.py, before parse_args().

parser.add_argument("--elementary-math-dir", help="Directory containing the elementary math JSONL splits")

At the point where chat_rl.py creates train_task and val_task, give the new option priority.

if args.elementary_math_dir:
    from tasks.elementary_math import ElementaryMath

    train_task = ElementaryMath("train", args.elementary_math_dir)
    val_task = ElementaryMath("validation", args.elementary_math_dir)

Follow that block with the checkout's existing task selection. In a checkout that has a compact-thinking branch, change its if args.task == "compact-thinking": to elif args.task == "compact-thinking":. In a checkout with only GSM8K, put the existing GSM8K assignments under else:.

From the NanoChat checkout, download both JSONL files and point the RL runner to their directory. Use your usual RL environment and SFT checkpoint.

hf download CrowdMind/basic-math-rl train.jsonl validation.jsonl --repo-type dataset --local-dir ./basic-math-rl
python -m scripts.chat_rl --elementary-math-dir ./basic-math-rl

Regenerate the dataset

The generator uses Python 3.10+ and the standard library. This command reproduces the provided files with seed 42. Choose a different output directory to keep a second generated copy.

python generate.py --seed 42 --train-per-topic 1000 --validation-per-topic 100
Downloads last month
-