Automatic dcft datacuration framework upload for oh_v1.3_evol_instruct_x.25
Browse files
config/SlimOrca/slim_orca_scale_x2/open-orca-cot_gpt-4o-mini_scale_x2.yaml
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
operators:
|
| 2 |
+
- id: load_zsopt_data
|
| 3 |
+
config:
|
| 4 |
+
type: hf_source
|
| 5 |
+
dataset: Open-Orca/FLAN
|
| 6 |
+
split: train
|
| 7 |
+
data_dir: cot_zsopt_data
|
| 8 |
+
|
| 9 |
+
- id: add_system_messages
|
| 10 |
+
input_ids:
|
| 11 |
+
- load_zsopt_data
|
| 12 |
+
config:
|
| 13 |
+
type: function
|
| 14 |
+
function: data_strategies.SlimOrca.utils.add_orca_system_messages
|
| 15 |
+
function_config:
|
| 16 |
+
mixture_name: cot
|
| 17 |
+
system_message_column: system_message
|
| 18 |
+
|
| 19 |
+
- id: generate_responses
|
| 20 |
+
config:
|
| 21 |
+
type: completions
|
| 22 |
+
map: chat
|
| 23 |
+
map_config:
|
| 24 |
+
system_message_column: system_message
|
| 25 |
+
user_message_column: inputs
|
| 26 |
+
output_column: model_response
|
| 27 |
+
model: gpt-4o-mini
|
| 28 |
+
batch: True
|
| 29 |
+
input_ids:
|
| 30 |
+
- add_system_messages
|
| 31 |
+
|
| 32 |
+
- id: llm_judge_filter
|
| 33 |
+
input_ids:
|
| 34 |
+
- generate_responses
|
| 35 |
+
config:
|
| 36 |
+
type: completions
|
| 37 |
+
map: judge
|
| 38 |
+
map_config:
|
| 39 |
+
input_instruction_column: inputs
|
| 40 |
+
input_golden_answer_column: targets
|
| 41 |
+
input_attempt_answer_column: model_response
|
| 42 |
+
output_judgement_decision_column: model_judgement
|
| 43 |
+
output_judgement_reasoning_column: model_judgement_full
|
| 44 |
+
model: gpt-4o-mini
|
| 45 |
+
batch: True
|
| 46 |
+
input_ids:
|
| 47 |
+
- generate_responses
|
| 48 |
+
|
| 49 |
+
- id: convert_to_sharegpt
|
| 50 |
+
config:
|
| 51 |
+
type: function
|
| 52 |
+
function: data_strategies.commons.convert_instruction_response_to_sharegpt
|
| 53 |
+
function_config:
|
| 54 |
+
input_instruction_column: inputs
|
| 55 |
+
input_response_column: model_response
|
| 56 |
+
output_sharegpt_column: conversations
|
| 57 |
+
input_ids:
|
| 58 |
+
- llm_judge_filter
|