EtashGuha commited on
Commit
f75dcf3
·
verified ·
1 Parent(s): b782e6f

Automatic dcft datacuration framework upload for oh_v1.2_evol_instruct_x.5

Browse files
config/Airoboros/stage_1_categories/airoboros_stage_1_orca_instructions_gpt-4o-mini.yaml ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: args_dataset
3
+ config:
4
+ type: function
5
+ function: data_strategies.commons.create_constant_dataset
6
+ function_config:
7
+ language: English
8
+ flesch: The output should be written in such a way as to have a Flesch-Kincaid readability score of 30 or lower - best understood by those with college education. The response must not contain any notes or information about Flesch-Kincaid scores.
9
+ batch_size: 10
10
+ min_docsearch_score: 0.05
11
+ airoboros_subset: orca
12
+
13
+ - id: generate_general_instructions
14
+ config:
15
+ type: completions
16
+ map: list_qa
17
+ map_config:
18
+ user_message: |
19
+ I need you to help me generate math/reasoning tests.
20
+
21
+ I would like you to provide both the question and the solution.
22
+
23
+ The solutions should always include the work/intermediate steps used to generate a response.
24
+
25
+ Here are a few examples:
26
+
27
+ Example 1:
28
+ question: How many heartbeats does an average human have in one day? Reason step-by-step.
29
+ answer: The average human heart rate is around 60 to 100 beats per minute. For simplicity's sake, let's take the average of these two values, which is 80 beats per minute.
30
+
31
+ First, let's calculate how many beats occur in an hour. We know there are 60 minutes in an hour, so:
32
+
33
+ Heartbeats in 1 hour = Heart rate * Minutes per hour
34
+ = 80 beats per minute * 60 minutes
35
+ = 4800 beats
36
+
37
+ Then, to find out how many beats occur in a day, we need to multiply this hourly rate by the number of hours in a day, which is 24:
38
+
39
+ Heartbeats in 1 day = Heartbeats per hour * Hours per day
40
+ = 4800 beats * 24 hours
41
+ = 115,200 beats
42
+
43
+ So, an average human heart will beat approximately 115,200 times in a day. This is a simplification, as heart rates can vary widely between individuals and under different conditions.
44
+
45
+ Example 2:
46
+ question: How many lightning strikes occur every 5 minutes? Show your work.
47
+ answer: It is estimated that the Earth is struck by lightning about 100 times every second. This estimate is based on the number of thunderstorms occurring globally at any given time and their typical rates of lightning production.
48
+
49
+ To calculate how many lightning strikes occur every 5 minutes, we first need to figure out how many seconds there are in 5 minutes.
50
+
51
+ We know that:
52
+ 1 minute = 60 seconds
53
+
54
+ So,
55
+ 5 minutes = 5 * 60 = 300 seconds
56
+
57
+ If Earth experiences approximately 100 lightning strikes per second, then the number of strikes in 5 minutes (or 300 seconds) would be:
58
+ Number of strikes = Strikes per second * Number of seconds
59
+ = 100 * 300
60
+ = 30,000
61
+
62
+ So, it's estimated that there are approximately 30,000 lightning strikes on Earth every 5 minutes.
63
+
64
+ Please note that this is an estimation, as the actual number can vary depending on various factors such as the season, time of day, and geographic location.
65
+
66
+ Example 3:
67
+ question: There are three killers in the room. Someone enters and kills one of them. Nobody leaves the room. How many killers are in the room? Provide step-by-step logic.
68
+ answer: Let's think through this step-by-step:
69
+
70
+ 1. We start with three killers in the room.
71
+ 2. Another person enters the room, making the total number of people four (three original killers and one new person).
72
+ 3. This new person then kills one of the original killers. This act makes them a killer as well, even though one of the original killers is now dead.
73
+ 4. So, now we have three people remaining alive in the room: two of the original killers and the new person (who has become a killer by their action).
74
+ 5. Therefore, when considering all the killers (whether alive or dead), we have: the two remaining original killers, the new killer, and the original killer who was killed by the new person.
75
+
76
+ The answer is four killers.
77
+
78
+ Example 4:
79
+ question: If we lay 5 shirts out in the sun to dry, and it takes 4 hours for them to dry, how long does it take to dry 20 shirts? Explain it like I'm five.
80
+ answer: Let's reason through the problem:
81
+
82
+ 1. The time it takes for shirts to dry in the sun doesn't usually depend on the number of shirts. Rather, it depends on the intensity of the sun and the wetness of the shirts, among other factors.
83
+ 2. So, if we laid out 5 shirts and they took 4 hours to dry, then if we lay out 20 shirts at the same time, they would also take the same 4 hours to dry, assuming the sun's intensity and other conditions remain the same.
84
+ 3. This is because all the shirts are drying simultaneously, not one after the other. If you were drying the shirts one after the other, then you would need to multiply the number of shirts by the drying time for each shirt.
85
+ 4. However, in this scenario, the shirts are drying at the same time, so no additional time is required for more shirts.
86
+
87
+ Hence, it still takes 4 hours to dry 20 shirts when laid out all at once under the same conditions as the original 5 shirts.
88
+
89
+ Example 5:
90
+ question: Jane is faster than Joe. Joe is faster than Sam. Is Sam faster than Jane? Explain your thought process.
91
+ answer: Here's an easy way to understand this. Let's imagine they are all in a race.
92
+
93
+ First, Jane races against Joe and wins because Jane is faster than Joe.
94
+
95
+ Next, Joe races against Sam and Joe wins because Joe is faster than Sam.
96
+
97
+ So, if Jane is faster than Joe, and Joe is faster than Sam, then Jane has to be faster than Sam as well.
98
+
99
+ Think of it like this: Jane can run faster than Joe, and Joe can run faster than Sam, so Sam won't be able to outrun Jane, who is the fastest.
100
+
101
+ So the final answer is no, Sam is not faster than Jane.
102
+
103
+ Example 6:
104
+ question: Jackie has 3 brothers. Each brother has 2 sisters. How many sisters does Jackie have? Include your logic.
105
+ answer: Here's the logic behind this:
106
+
107
+ 1. We know that Jackie has 3 brothers.
108
+ 2. Then we are told that each of her brothers has 2 sisters.
109
+ 3. Jackie is one of the sisters to her brothers.
110
+ 4. So, if each of her brothers has 2 sisters, that means there must be another sister besides Jackie.
111
+ 5. Therefore, Jackie has 2 sisters.
112
+
113
+ It's important to note that the number of sisters each brother has includes Jackie herself, hence why there's only one additional sister. The phrasing of the question can lead to a common misconception that each brother has 2 sisters in addition to Jackie, but that's not the case here.
114
+
115
+ Final answer: Jackie has 2 sisters.
116
+
117
+ End of examples.
118
+
119
+ Please write {{batch_size}} more high quality examples of a similar format, with "question: [question]" and "answer: [answer]" with the correct answer.
120
+
121
+ Make sure the questions are somewhat difficult and not trivial. Don't add line separators or use any special formatting (e.g. markdown) in the output.
122
+
123
+ Make sure each answer includes the steps/work used to generate the response.
124
+
125
+ The provided examples are very easy; the new questions should be much more difficult to solve.
126
+
127
+ The new questions must not be simple formulas, i.e.:
128
+ - do not ask about anything related to volume, area, circumference, perimeter or other measurements of shapes
129
+ - do not ask about about anything related to distances traveled or speed calculations
130
+ - do not ask about anything related to trains or speed
131
+
132
+ The answers should always have the reasoning first, then the final answer. Don't ever put the final answer first, then reasoning.
133
+
134
+ {{flesch}}
135
+ output_instruction_column: instruction
136
+ output_response_column: response
137
+ model: gpt-4o-mini
138
+ temperature: 0.7
139
+ top_p: 0.5
140
+ presence_penalty: 2.0
141
+ n_repeat: 1000 # to get to target count
142
+ input_ids:
143
+ - args_dataset
144
+
145
+ - id: drop_columns
146
+ config:
147
+ type: function
148
+ function: data_strategies.commons.remove_columns
149
+ function_config:
150
+ columns:
151
+ - language
152
+ - flesch
153
+ - batch_size
154
+ input_ids:
155
+ - generate_general_instructions
156
+
157
+ # target count is 10000