Upload configuration file
Browse files
config/seed_code_opencoder_educational.yaml
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
operators:
|
| 2 |
+
- id: load_hf_package
|
| 3 |
+
config:
|
| 4 |
+
type: hf_source
|
| 5 |
+
dataset: OpenCoder-LLM/opc-sft-stage2
|
| 6 |
+
split: train
|
| 7 |
+
subset: educational_instruct
|
| 8 |
+
trust_remote_code: True
|
| 9 |
+
- id: drop_columns
|
| 10 |
+
config:
|
| 11 |
+
type: function
|
| 12 |
+
function: data_strategies.commons.keep_only_columns
|
| 13 |
+
function_config:
|
| 14 |
+
columns_to_keep:
|
| 15 |
+
- instruction
|
| 16 |
+
- output
|
| 17 |
+
- testcase
|
| 18 |
+
input_ids:
|
| 19 |
+
- load_hf_package
|
| 20 |
+
- id: rename_task_column
|
| 21 |
+
config:
|
| 22 |
+
type: function
|
| 23 |
+
function: data_strategies.commons.force_rename_columns
|
| 24 |
+
function_config:
|
| 25 |
+
column_maps:
|
| 26 |
+
output: response_seed
|
| 27 |
+
instruction: instruction_seed
|
| 28 |
+
input_ids:
|
| 29 |
+
- drop_columns
|
| 30 |
+
- id: sample_dataset
|
| 31 |
+
config:
|
| 32 |
+
type: function
|
| 33 |
+
function: data_strategies.commons.uniform_sample_limited
|
| 34 |
+
function_config:
|
| 35 |
+
num_samples: 1_000_000 # 1.25% of 10000 target from stage 1
|
| 36 |
+
input_ids:
|
| 37 |
+
- rename_task_column
|
| 38 |
+
- id: classify
|
| 39 |
+
config:
|
| 40 |
+
type: fasttext
|
| 41 |
+
num_cpus: 32
|
| 42 |
+
hf_repo_id: mlfoundations-dev/instruction_filtering_fast_text_code_pos_leetcode_taco_neg_reflection_octopack
|
| 43 |
+
input_column: instruction_seed
|
| 44 |
+
target_label: "__label__QA_doc"
|
| 45 |
+
top_percentage_ranking: 10
|
| 46 |
+
input_ids:
|
| 47 |
+
- rename_task_column
|
| 48 |
+
- id: keep_only
|
| 49 |
+
config:
|
| 50 |
+
type: function
|
| 51 |
+
function: data_strategies.commons.keep_only_columns
|
| 52 |
+
function_config:
|
| 53 |
+
columns_to_keep:
|
| 54 |
+
- instruction_seed
|
| 55 |
+
input_ids:
|
| 56 |
+
- classify
|
| 57 |
+
- id: _add_source
|
| 58 |
+
config:
|
| 59 |
+
type: function
|
| 60 |
+
function: data_strategies.commons.add_constant_columns
|
| 61 |
+
function_config:
|
| 62 |
+
source: "opencoder_educational"
|
| 63 |
+
input_ids:
|
| 64 |
+
- keep_only
|