File size: 14,462 Bytes
ebaa5e9
5888a1e
ebaa5e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5888a1e
 
 
 
ebaa5e9
5888a1e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
---
size_categories: n<1K
dataset_info:
  features:
  - name: instruction
    dtype: string
  - name: answer
    dtype: string
  - name: golden_solution
    sequence: string
  - name: model_name
    dtype: string
  - name: solutions
    sequence: string
  - name: distilabel_metadata
    struct:
    - name: raw_input_generator
      list:
      - name: content
        dtype: string
      - name: role
        dtype: string
    - name: raw_input_golden_generator
      list:
      - name: content
        dtype: string
      - name: role
        dtype: string
    - name: raw_output_generator
      dtype: string
    - name: raw_output_golden_generator
      dtype: string
    - name: statistics_completer
      struct:
      - name: input_tokens
        sequence: int64
      - name: output_tokens
        sequence: int64
    - name: statistics_generator
      struct:
      - name: input_tokens
        sequence: int64
      - name: output_tokens
        sequence: int64
    - name: statistics_golden_generator
      struct:
      - name: input_tokens
        sequence: int64
      - name: output_tokens
        sequence: int64
  - name: input
    dtype: string
  - name: label
    dtype: string
  splits:
  - name: train
    num_bytes: 152327
    num_examples: 19
  download_size: 43201
  dataset_size: 152327
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
tags:
- synthetic
- distilabel
- rlaif
---

<p align="left">
  <a href="https://github.com/argilla-io/distilabel">
    <img src="https://raw.githubusercontent.com/argilla-io/distilabel/main/docs/assets/distilabel-badge-light.png" alt="Built with Distilabel" width="200" height="32"/>
  </a>
</p>

# Dataset Card for test_math_shepherd_01

This dataset has been created with [distilabel](https://distilabel.argilla.io/).



## Dataset Summary

This dataset contains a `pipeline.yaml` which can be used to reproduce the pipeline that generated it in distilabel using the `distilabel` CLI:

```console
distilabel pipeline run --config "https://huggingface.co/datasets/plaguss/test_math_shepherd_01/raw/main/pipeline.yaml"
```

or explore the configuration:

```console
distilabel pipeline info --config "https://huggingface.co/datasets/plaguss/test_math_shepherd_01/raw/main/pipeline.yaml"
```

## Dataset structure

The examples have the following structure per configuration:


<details><summary> Configuration: default </summary><hr>

```json
{
    "answer": "Janet sells 16 - 3 - 4 = \u003c\u003c16-3-4=9\u003e\u003e9 duck eggs a day.\nShe makes 9 * 2 = $\u003c\u003c9*2=18\u003e\u003e18 every day at the farmer\u2019s market.\n#### 18",
    "distilabel_metadata": {
        "raw_input_generator": [
            {
                "content": "You are a math tutor that helps students solve math problems by breaking them down into clear, logical steps. Follow these guidelines:\n\n# For each step:\n- Clearly explain the reasoning\n- Show the calculated result for any arithmetic calculation\n- Present intermediate calculations clearly\n- Use clear, concise language to explain the mathematical reasoning\n\n# Format requirements:\n- Number each step starting with \"Step 1:\"\n- The final step should clearly state \"The answer is: [result]\"\n- Keep explanations clear and concise\n\n# Rules:\n- All calculations must be shown within \u003c\u003c\u003e\u003e brackets\n- Basic operations: use * for multiplication, / for division, + for addition, - for subtraction\n- Write the full calculation and result, e.g., \u003c\u003c5*10=50\u003e\u003e50\n\n# Examples:\n## Input\nA store sells notebooks for $3 each. If you buy 5 or more, you get a 20% discount. How much would you pay for 6 notebooks?\n\n## Output\nStep 1: Calculate the regular price for 6 notebooks: 6 * $3 = \u003c\u003c63=18\u003e\u003e18 dollars\nStep 2: Calculate the 20% discount amount: 18 * 20/100 = \u003c\u003c1820/100=3.6\u003e\u003e3.6 dollars\nStep 3: Subtract the discount from the regular price: 18 - 3.6 = \u003c\u003c18-3.6=14.4\u003e\u003e14.4 dollars. The answer is: 14.4\n\n## Input\nA recipe calls for 2.5 cups of flour to make 12 cookies. How many cups of flour are needed to make 30 cookies?\n\n## Output\nStep 1: Find out how many cups of flour are needed per cookie: 2.5 \u00f7 12 = \u003c\u003c2.5/12=0.208333\u003e\u003e0.208333 cups\nStep 2: Calculate the flour needed for 30 cookies: 0.208333 * 30 = \u003c\u003c0.208333*30=6.25\u003e\u003e6.25 cups. The answer is: 6.25\n",
                "role": "system"
            },
            {
                "content": "Generate 5 example solutions to the following problem, separated by a single `---`. This is your problem:\nJanet\u2019s ducks lay 16 eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with four. She sells the remainder at the farmers\u0027 market daily for $2 per fresh duck egg. How much in dollars does she make every day at the farmers\u0027 market?",
                "role": "user"
            }
        ],
        "raw_input_golden_generator": [
            {
                "content": "You are a math tutor that helps students solve math problems by breaking them down into clear, logical steps. Follow these guidelines:\n\n# For each step:\n- Clearly explain the reasoning\n- Show the calculated result for any arithmetic calculation\n- Present intermediate calculations clearly\n- Use clear, concise language to explain the mathematical reasoning\n\n# Format requirements:\n- Number each step starting with \"Step 1:\"\n- The final step should clearly state \"The answer is: [result]\"\n- Keep explanations clear and concise\n\n# Rules:\n- All calculations must be shown within \u003c\u003c\u003e\u003e brackets\n- Basic operations: use * for multiplication, / for division, + for addition, - for subtraction\n- Write the full calculation and result, e.g., \u003c\u003c5*10=50\u003e\u003e50\n\n# Examples:\n## Input\nA store sells notebooks for $3 each. If you buy 5 or more, you get a 20% discount. How much would you pay for 6 notebooks?\n\n## Output\nStep 1: Calculate the regular price for 6 notebooks: 6 * $3 = \u003c\u003c63=18\u003e\u003e18 dollars\nStep 2: Calculate the 20% discount amount: 18 * 20/100 = \u003c\u003c1820/100=3.6\u003e\u003e3.6 dollars\nStep 3: Subtract the discount from the regular price: 18 - 3.6 = \u003c\u003c18-3.6=14.4\u003e\u003e14.4 dollars. The answer is: 14.4\n\n## Input\nA recipe calls for 2.5 cups of flour to make 12 cookies. How many cups of flour are needed to make 30 cookies?\n\n## Output\nStep 1: Find out how many cups of flour are needed per cookie: 2.5 \u00f7 12 = \u003c\u003c2.5/12=0.208333\u003e\u003e0.208333 cups\nStep 2: Calculate the flour needed for 30 cookies: 0.208333 * 30 = \u003c\u003c0.208333*30=6.25\u003e\u003e6.25 cups. The answer is: 6.25\n",
                "role": "system"
            },
            {
                "content": "\nJanet\u2019s ducks lay 16 eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with four. She sells the remainder at the farmers\u0027 market daily for $2 per fresh duck egg. How much in dollars does she make every day at the farmers\u0027 market?",
                "role": "user"
            }
        ],
        "raw_output_generator": "### Example 1: Detailed Solution\nStep 1: Calculate the number of eggs Janet lays per day: 16\nStep 2: Calculate the number of eggs Janet eats for breakfast: 3\nStep 3: Calculate the number of eggs Janet bakes for her friends: 4\nStep 4: Calculate the total number of eggs used: 3 + 4 = \u003c\u003c3+4=7\u003e\u003e7\nStep 5: Calculate the number of eggs Janet sells at the market: 16 - 7 = \u003c\u003c16-7=9\u003e\u003e9\nStep 6: Calculate the amount Janet makes from selling eggs: 9 * $2 = $\u003c\u003c9*2=18\u003e\u003e18\nThe answer is: $18\n\n---\n\n### Example 2: Simplified Solution\nStep 1: Calculate the number of eggs Janet lays per day: 16\nStep 2: Calculate the number of eggs Janet eats and bakes: 3 + 4 = \u003c\u003c3+4=7\u003e\u003e7\nStep 3: Calculate the number of eggs Janet sells: 16 - 7 = \u003c\u003c16-7=9\u003e\u003e9\nStep 4: Calculate the amount Janet makes from selling eggs: 9 * $2 = $\u003c\u003c9*2=18\u003e\u003e18\nThe answer is: $18\n\n---\n\n### Example 3: Breakdown into intermediate steps\nStep 1: Calculate the number of eggs Janet lays per day: 16\nStep 2: Calculate the number of eggs Janet eats and bakes: \n  Step 2.1: Janet eats 3 eggs for breakfast\n  Step 2.2: Janet bakes 4 eggs\n  Step 2.3: Total eggs used: 3 + 4 = \u003c\u003c3+4=7\u003e\u003e7\nStep 3: Calculate the number of eggs Janet sells: \n  Step 3.1: Total eggs laid: 16\n  Step 3.2: Eggs sold: 16 - 7 = \u003c\u003c16-7=9\u003e\u003e9\nStep 4: Calculate the amount Janet makes from selling eggs: \n  Step 4.1: 9 * $2 = $\u003c\u003c9*2=18\u003e\u003e18\nThe answer is: $18\n\n---\n\n### Example 4: Using variables\nStep 1: Define the number of eggs Janet lays per day: e = 16\nStep 2: Define the number of eggs Janet eats and bakes: x = 3 + 4 = \u003c\u003c3+4=7\u003e\u003e7\nStep 3: Calculate the number of eggs Janet sells: e - x = 16 - 7 = \u003c\u003c16-7=9\u003e\u003e9\nStep 4: Calculate the amount Janet makes from selling eggs: 9 * $2 = $\u003c\u003c9*2=18\u003e\u003e18\nThe answer is: $18\n\n---\n\n### Example 5: Using a table\n| Eggs | Amount |\n|------|--------|\n| Laid  | 16     |\n| Eaten/Baked | 7     |\n| Sold    | 9      |\n| Revenue | $18    |\n\nStep 1: Calculate the number of eggs Janet lays per day: 16\nStep 2: Calculate the number of eggs Janet eats and bakes: 3 + 4 = \u003c\u003c3+4=7\u003e\u003e7\nStep 3: Calculate the number of eggs Janet sells: 16 - 7 = \u003c\u003c16-7=9\u003e\u003e9\nStep 4: Calculate the amount Janet makes from selling eggs: 9 * $2 = $\u003c\u003c9*2=18\u003e\u003e18\nThe answer is: $18",
        "raw_output_golden_generator": "Step 1: Calculate the total number of eggs Janet uses for breakfast and baking: 3 (for breakfast) + 4 (for baking) = \u003c\u003c3+4=7\u003e\u003e7 eggs.\nStep 2: Calculate the number of eggs left for selling: 16 (total eggs) - 7 (eggs used) = \u003c\u003c16-7=9\u003e\u003e9 eggs.\nStep 3: Calculate the total revenue from selling the eggs: 9 (eggs) * $2 (price per egg) = \u003c\u003c9*2=18\u003e\u003e18 dollars.\nThe answer is: 18",
        "statistics_completer": {
            "input_tokens": [
                79
            ],
            "output_tokens": [
                71
            ]
        },
        "statistics_generator": {
            "input_tokens": [
                61
            ],
            "output_tokens": [
                84
            ]
        },
        "statistics_golden_generator": {
            "input_tokens": [
                62
            ],
            "output_tokens": [
                14
            ]
        }
    },
    "golden_solution": [
        "Step 1: Calculate the total number of eggs Janet uses for breakfast and baking: 3 (for breakfast) + 4 (for baking) = \u003c\u003c3+4=7\u003e\u003e7 eggs.",
        "Step 2: Calculate the number of eggs left for selling: 16 (total eggs) - 7 (eggs used) = \u003c\u003c16-7=9\u003e\u003e9 eggs.",
        "Step 3: Calculate the total revenue from selling the eggs: 9 (eggs) * $2 (price per egg) = \u003c\u003c9*2=18\u003e\u003e18 dollars.",
        "The answer is: 18"
    ],
    "input": "Janet\u2019s ducks lay 16 eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with four. She sells the remainder at the farmers\u0027 market daily for $2 per fresh duck egg. How much in dollars does she make every day at the farmers\u0027 market? Step 1: Calculate the number of eggs Janet lays per day: 16 \u043a\u0438\nStep 2: Calculate the number of eggs Janet eats for breakfast: 3 \u043a\u0438\nStep 3: Calculate the number of eggs Janet bakes for her friends: 4 \u043a\u0438\nStep 4: Calculate the total number of eggs used: 3 + 4 = \u003c\u003c3+4=7\u003e\u003e7 \u043a\u0438\nStep 5: Calculate the number of eggs Janet sells at the market: 16 - 7 = \u003c\u003c16-7=9\u003e\u003e9 \u043a\u0438\nStep 6: Calculate the amount Janet makes from selling eggs: 9 * $2 = $\u003c\u003c9*2=18\u003e\u003e18 The answer is: $18 \u043a\u0438",
    "instruction": "Janet\u2019s ducks lay 16 eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with four. She sells the remainder at the farmers\u0027 market daily for $2 per fresh duck egg. How much in dollars does she make every day at the farmers\u0027 market?",
    "label": "Janet\u2019s ducks lay 16 eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with four. She sells the remainder at the farmers\u0027 market daily for $2 per fresh duck egg. How much in dollars does she make every day at the farmers\u0027 market? Step 1: Calculate the number of eggs Janet lays per day: 16 +\nStep 2: Calculate the number of eggs Janet eats for breakfast: 3 +\nStep 3: Calculate the number of eggs Janet bakes for her friends: 4 +\nStep 4: Calculate the total number of eggs used: 3 + 4 = \u003c\u003c3+4=7\u003e\u003e7 +\nStep 5: Calculate the number of eggs Janet sells at the market: 16 - 7 = \u003c\u003c16-7=9\u003e\u003e9 +\nStep 6: Calculate the amount Janet makes from selling eggs: 9 * $2 = $\u003c\u003c9*2=18\u003e\u003e18 The answer is: $18 -",
    "model_name": "meta-llama/Meta-Llama-3.1-8B-Instruct",
    "solutions": [
        "Step 1: Calculate the number of eggs Janet lays per day: 16 +",
        "Step 2: Calculate the number of eggs Janet eats for breakfast: 3 +",
        "Step 3: Calculate the number of eggs Janet bakes for her friends: 4 +",
        "Step 4: Calculate the total number of eggs used: 3 + 4 = \u003c\u003c3+4=7\u003e\u003e7 +",
        "Step 5: Calculate the number of eggs Janet sells at the market: 16 - 7 = \u003c\u003c16-7=9\u003e\u003e9 +",
        "Step 6: Calculate the amount Janet makes from selling eggs: 9 * $2 = $\u003c\u003c9*2=18\u003e\u003e18 The answer is: $18 -"
    ]
}
```

This subset can be loaded as:

```python
from datasets import load_dataset

ds = load_dataset("plaguss/test_math_shepherd_01", "default")
```

Or simply as it follows, since there's only one configuration and is named `default`: 

```python
from datasets import load_dataset

ds = load_dataset("plaguss/test_math_shepherd_01")
```


</details>