EtashGuha commited on
Commit
91290c7
·
verified ·
1 Parent(s): 2dc2344

Upload configuration file

Browse files
config/multiple_samples_gpt_verification_seed_code.yaml ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: load_preexisting
3
+ config:
4
+ type: load_preexisting
5
+ framework_name: base_get_difficulty_seed_code
6
+ - id: keep_only_few_columns
7
+ config:
8
+ type: function
9
+ function: data_strategies.commons.keep_only_columns
10
+ function_config:
11
+ columns_to_keep:
12
+ - problem
13
+ input_ids:
14
+ - load_preexisting
15
+ - id: dedup_topics
16
+ config:
17
+ type: function
18
+ function: data_strategies.commons.dedup_on_columns
19
+ function_config:
20
+ dedup_columns:
21
+ - problem
22
+ input_ids:
23
+ - keep_only_few_columns
24
+ - id: sample_dataset
25
+ config:
26
+ type: function
27
+ function: data_strategies.commons.uniform_sample_fixed
28
+ function_config:
29
+ num_samples: 2_500
30
+ input_ids:
31
+ - dedup_topics
32
+ - id: duplicate
33
+ config:
34
+ type: function
35
+ function: data_strategies.TestTime.generator.duplicate_rows
36
+ function_config:
37
+ n_copies: 3
38
+ input_ids:
39
+ - sample_dataset
40
+ - id: annotate
41
+ config:
42
+ type: completions
43
+ map: chat
44
+ map_config:
45
+ user_message_column: problem
46
+ output_column: r1_distill_70b_response
47
+ model: "together_ai/deepseek-ai/DeepSeek-R1-Distill-Llama-70B"
48
+ batch: False
49
+ temperature: 1.0
50
+ backend_params:
51
+ max_requests_per_minute: 250
52
+ max_tokens_per_minute: 500_000
53
+ invalid_finish_reasons: ['content_filter']
54
+ generation_params:
55
+ max_tokens: 32_000
56
+ input_ids:
57
+ - duplicate
58
+ - id: validate_questions
59
+ config:
60
+ type: completions
61
+ model: gpt-4o-mini
62
+ map: binary_classifier
63
+ map_config:
64
+ user_message: |
65
+ Is the provided code snippet a correct solution to the following problem?
66
+
67
+ Question: {{problem}}
68
+ Response: {{r1_distill_70b_response}}
69
+ output_column: correct
70
+ temperature: 0.0 # From stage 1
71
+ top_p: 1.0
72
+ presence_penalty: 0.0
73
+ input_ids:
74
+ - annotate
75
+ - id: merge_together
76
+ config:
77
+ type: function
78
+ function: data_strategies.TestTime.generator.merge_duplicate_rows
79
+ function_config:
80
+ diff_columns:
81
+ - r1_distill_70b_response
82
+ - r1_distill_70b_extracted_answer
83
+ - correct
84
+ - classifier_response
85
+ input_ids:
86
+ - validate_questions
87
+ - id: gpt_verification
88
+ config:
89
+ type: function
90
+ function: data_strategies.MultipleSamples.utils.select_correct_multiple_samples
91
+ function_config:
92
+ response_column: r1_distill_70b_response
93
+ verified_response_column: verified_r1_distill_70b_response
94
+ input_ids:
95
+ - merge_together
96
+ - id: convert_to_sharegpt
97
+ config:
98
+ type: function
99
+ function: data_strategies.commons.convert_instruction_response_to_sharegpt
100
+ function_config:
101
+ input_instruction_column: problem
102
+ input_response_column: verified_r1_distill_70b_response
103
+ output_sharegpt_column: conversations
104
+ input_ids:
105
+ - gpt_verification
106
+
107
+