Upload configuration file
Browse files- config/coder_stat.yaml +33 -4
config/coder_stat.yaml
CHANGED
|
@@ -5,12 +5,41 @@ operators:
|
|
| 5 |
dataset: prithivMLmods/Coder-Stat
|
| 6 |
split: train
|
| 7 |
trust_remote_code: True
|
| 8 |
-
- id:
|
| 9 |
config:
|
| 10 |
type: function
|
| 11 |
-
function: data_strategies.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
input_ids:
|
| 13 |
-
-
|
| 14 |
- id: rename_task_column
|
| 15 |
config:
|
| 16 |
type: function
|
|
@@ -20,4 +49,4 @@ operators:
|
|
| 20 |
- response_seed
|
| 21 |
- instruction_seed
|
| 22 |
input_ids:
|
| 23 |
-
|
|
|
|
| 5 |
dataset: prithivMLmods/Coder-Stat
|
| 6 |
split: train
|
| 7 |
trust_remote_code: True
|
| 8 |
+
- id: sample_dataset
|
| 9 |
config:
|
| 10 |
type: function
|
| 11 |
+
function: data_strategies.commons.uniform_sample_limited
|
| 12 |
+
function_config:
|
| 13 |
+
num_samples: 125 # 1.25% of 10000 target from stage 1
|
| 14 |
+
input_ids:
|
| 15 |
+
- load_hf_python
|
| 16 |
+
- id: generate_instructions
|
| 17 |
+
config:
|
| 18 |
+
type: completions
|
| 19 |
+
map: chat
|
| 20 |
+
map_config:
|
| 21 |
+
system_message: "You are a helpful assistant."
|
| 22 |
+
user_message: |
|
| 23 |
+
You are to generate a question or task for a language model based on the following error and code pairs.
|
| 24 |
+
|
| 25 |
+
Error Type: {{original_status}}
|
| 26 |
+
Code: {{original_src}}
|
| 27 |
+
|
| 28 |
+
Include only the new question and task. Do not include anything like "Here is the instruction". Include
|
| 29 |
+
the code in your question and make the task sound like what a human would ask a language model.
|
| 30 |
+
output_column: instruction_seed
|
| 31 |
+
model: gpt-4o-mini
|
| 32 |
+
temperature: 1.0
|
| 33 |
+
input_ids:
|
| 34 |
+
- sample_dataset
|
| 35 |
+
- id: add_constant_column
|
| 36 |
+
config:
|
| 37 |
+
type: function
|
| 38 |
+
function: data_strategies.commons.add_constant_columns
|
| 39 |
+
function_config:
|
| 40 |
+
response_seed: ""
|
| 41 |
input_ids:
|
| 42 |
+
- generate_instructions
|
| 43 |
- id: rename_task_column
|
| 44 |
config:
|
| 45 |
type: function
|
|
|
|
| 49 |
- response_seed
|
| 50 |
- instruction_seed
|
| 51 |
input_ids:
|
| 52 |
+
- add_constant_column
|