Upload configuration file
Browse files
config/multiple_samples_shortest_seed_code.yaml
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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: merge_together
|
| 59 |
+
config:
|
| 60 |
+
type: function
|
| 61 |
+
function: data_strategies.TestTime.generator.merge_duplicate_rows
|
| 62 |
+
function_config:
|
| 63 |
+
diff_columns:
|
| 64 |
+
- r1_distill_70b_response
|
| 65 |
+
- r1_distill_70b_extracted_answer
|
| 66 |
+
input_ids:
|
| 67 |
+
- annotate
|
| 68 |
+
- id: shortest_verification
|
| 69 |
+
config:
|
| 70 |
+
type: function
|
| 71 |
+
function: data_strategies.MultipleSamples.utils.shortest_verification
|
| 72 |
+
function_config:
|
| 73 |
+
response_column: r1_distill_70b_response
|
| 74 |
+
verified_response_column: verified_r1_distill_70b_response
|
| 75 |
+
input_ids:
|
| 76 |
+
- merge_together
|
| 77 |
+
- id: convert_to_sharegpt
|
| 78 |
+
config:
|
| 79 |
+
type: function
|
| 80 |
+
function: data_strategies.commons.convert_instruction_response_to_sharegpt
|
| 81 |
+
function_config:
|
| 82 |
+
input_instruction_column: problem
|
| 83 |
+
input_response_column: verified_r1_distill_70b_response
|
| 84 |
+
output_sharegpt_column: conversations
|
| 85 |
+
input_ids:
|
| 86 |
+
- shortest_verification
|
| 87 |
+
|
| 88 |
+
|