EtashGuha commited on
Commit
4af73ac
·
verified ·
1 Parent(s): 6f3a1b3

Upload configuration file

Browse files
config/multiple_samples_majority_consensus_openr1_math_verify.yaml ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: get_openr1_hf
3
+ config:
4
+ type: hf_source
5
+ dataset: open-r1/OpenR1-Math-Raw
6
+ split: train
7
+ - id: select_rows_without_proof
8
+ config:
9
+ type: function
10
+ sharded: true
11
+ num_shards: 32
12
+ function: data_strategies.commons.select_rows_without
13
+ function_config:
14
+ conditions:
15
+ answer: "proof"
16
+ input_ids:
17
+ - get_openr1_hf
18
+ - id: sample_dataset
19
+ config:
20
+ type: function
21
+ function: data_strategies.commons.uniform_sample_limited
22
+ function_config:
23
+ num_samples: 100_000
24
+ input_ids:
25
+ - select_rows_without_proof
26
+ - id: expand_generation
27
+ config:
28
+ type: function
29
+ sharded: true
30
+ num_shards: 32
31
+ function: data_strategies.OpenR1_MultipleSamples.utils.apply_expand_generation
32
+ input_ids:
33
+ - sample_dataset
34
+ # - id: remove_columns
35
+ # config:
36
+ # type: function
37
+ # sharded: true
38
+ # num_shards: 32
39
+ # function: data_strategies.commons.remove_columns
40
+ # function_config:
41
+ # columns:
42
+ # - generations
43
+ # input_ids:
44
+ # - expand_generation
45
+ # - id: extract_math_answer
46
+ # config:
47
+ # type: high_memory_function
48
+ # memory: 200
49
+ # sharded: true
50
+ # num_shards: 32
51
+ # function: data_strategies.MultipleSamples.utils.extract_with_math_verify_safe
52
+ # function_config:
53
+ # input_column: generation
54
+ # output_column: generation_extracted_answer
55
+ # input_ids:
56
+ # - remove_columns
57
+ # - id: merge_together
58
+ # config:
59
+ # type: high_memory_function
60
+ # memory: 500
61
+ # function: data_strategies.TestTime.generator.merge_duplicate_rows
62
+ # function_config:
63
+ # diff_columns:
64
+ # - generation
65
+ # - generation_extracted_answer
66
+ # input_ids:
67
+ # - extract_math_answer
68
+ # - id: consensus_verification
69
+ # config:
70
+ # type: function
71
+ # sharded: true
72
+ # num_shards: 32
73
+ # function: data_strategies.MultipleSamples.utils.majority_consensus
74
+ # function_config:
75
+ # response_column: generation
76
+ # verified_response_column: verified_generation
77
+ # extracted_answer_column: generation_extracted_answer
78
+ # input_ids:
79
+ # - merge_together
80
+ # - id: remove_columns_after_consensus
81
+ # config:
82
+ # type: function
83
+ # sharded: true
84
+ # num_shards: 32
85
+ # function: data_strategies.commons.remove_columns
86
+ # function_config:
87
+ # columns:
88
+ # - _majority_responses
89
+ # input_ids:
90
+ # - consensus_verification
91
+ # - id: convert_to_sharegpt
92
+ # config:
93
+ # type: function
94
+ # sharded: true
95
+ # num_shards: 32
96
+ # function: data_strategies.commons.convert_instruction_response_to_sharegpt
97
+ # function_config:
98
+ # input_instruction_column: problem
99
+ # input_response_column: verified_generation
100
+ # output_sharegpt_column: conversations
101
+ # input_ids:
102
+ # - remove_columns_after_consensus
103
+
104
+ # - id: load_preexisting_all_proofs
105
+ # config:
106
+ # type: load_preexisting
107
+ # framework_name: open_r1_hf_get_all_proofs
108
+ # - id: mix
109
+ # config:
110
+ # type: mix
111
+ # input_ids:
112
+ # - load_preexisting_all_proofs
113
+ # - convert_to_sharegpt