EtashGuha commited on
Commit
b7eb05a
·
verified ·
1 Parent(s): a997004

Upload configuration file

Browse files
config/embedding_apply_codefeedback.yaml ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: hf_source_taco
3
+ config:
4
+ type: hf_source
5
+ dataset: mlfoundations-dev/bespokelabs-sky-t1-taco-rejection-sampled
6
+ split: train
7
+ - id: hf_source_leetcode
8
+ config:
9
+ type: hf_source
10
+ dataset: Asap7772/leetcode-rosetta-processed-with-test-cases
11
+ split: train
12
+ - id: rename_task_column_leetcode
13
+ config:
14
+ type: function
15
+ function: data_strategies.commons.force_rename_columns
16
+ function_config:
17
+ column_maps:
18
+ content: question
19
+ input_ids:
20
+ - hf_source_leetcode
21
+
22
+ - id: hf_source_bad_seed_code_reflect
23
+ config:
24
+ type: load_preexisting
25
+ framework_name: reflection
26
+ - id: hf_source_bad_seed_code_octo
27
+ config:
28
+ type: load_preexisting
29
+ framework_name: octopack_sft
30
+ - id: rename_task_column
31
+ config:
32
+ type: function
33
+ function: data_strategies.commons.force_rename_columns
34
+ function_config:
35
+ column_maps:
36
+ instruction_seed: question
37
+ input_ids:
38
+ - hf_source_bad_seed_code_octo
39
+ - hf_source_bad_seed_code_reflect
40
+
41
+ - id: calc_embeddings_positive
42
+ config:
43
+ type: gpu_function
44
+ num_gpus: 1
45
+ num_shards: 1
46
+ sharded: true
47
+ function: data_strategies.commons.calc_sentence_transformers_embedding
48
+ function_config:
49
+ text_column: question
50
+ model_name: intfloat/multilingual-e5-large-instruct
51
+ input_ids:
52
+ - rename_task_column_leetcode
53
+ - hf_source_taco
54
+
55
+ - id: force_merge_shards_positive
56
+ config:
57
+ type: function
58
+ function: data_strategies.commons.uniform_sample_fixed
59
+ function_config:
60
+ num_samples: 1_000_000
61
+ input_ids:
62
+ - calc_embeddings_positive
63
+
64
+ - id: calc_embeddings_negative
65
+ config:
66
+ type: gpu_function
67
+ num_gpus: 1
68
+ num_shards: 1
69
+ sharded: true
70
+ function: data_strategies.commons.calc_sentence_transformers_embedding
71
+ function_config:
72
+ text_column: question
73
+ model_name: intfloat/multilingual-e5-large-instruct
74
+ input_ids:
75
+ - rename_task_column
76
+
77
+ - id: force_merge_shards_negative
78
+ config:
79
+ type: function
80
+ function: data_strategies.commons.uniform_sample_fixed
81
+ function_config:
82
+ num_samples: 1_000_000
83
+ input_ids:
84
+ - calc_embeddings_negative
85
+
86
+ - id: seed_code_load_in
87
+ config:
88
+ type: load_preexisting
89
+ framework_name: seed_code_load_in
90
+
91
+ - id: get_glaive
92
+ config:
93
+ type: function
94
+ function: data_strategies.commons.select_rows
95
+ function_config:
96
+ conditions:
97
+ source: "glaive"
98
+ input_ids:
99
+ - seed_code_load_in
100
+ - id: calc_embeddings_glaive
101
+ config:
102
+ type: gpu_function
103
+ num_gpus: 1
104
+ num_shards: 8
105
+ sharded: true
106
+ function: data_strategies.commons.calc_sentence_transformers_embedding
107
+ function_config:
108
+ text_column: instruction_seed
109
+ model_name: intfloat/multilingual-e5-large-instruct
110
+ input_ids:
111
+ - get_glaive
112
+
113
+ - id: force_merge_shards_actual
114
+ config:
115
+ type: function
116
+ function: data_strategies.commons.uniform_sample_fixed
117
+ function_config:
118
+ num_samples: 1_000_000
119
+ input_ids:
120
+ - calc_embeddings_glaive
121
+ # - id: calc_embedding_difference_glaive
122
+ # config:
123
+ # type: high_memory_function
124
+ # memory: 300
125
+ # function: data_strategies.InstructionFiltering.EmbeddingFilter.utils.calc_embedding_score_mean
126
+ # function_config:
127
+ # embedding_column: embeddings
128
+ # positive_embedding_column: embeddings
129
+ # negative_embedding_column: embeddings
130
+ # input_dataset_map:
131
+ # dataset: force_merge_shards_actual
132
+ # negative_dataset: force_merge_shards_negative
133
+ # positive_dataset: force_merge_shards_positive
134
+ # input_ids:
135
+ # - force_merge_shards_actual
136
+ # - force_merge_shards_negative
137
+ # - force_merge_shards_positive
138
+ # - id: select_to_be_used_glaive
139
+ # config:
140
+ # type: function
141
+ # function: data_strategies.InstructionFiltering.AskLLM.utils.filter_rank
142
+ # function_config:
143
+ # top_percentage: 0.10
144
+ # rating_column: difference_score
145
+ # input_ids:
146
+ # - calc_embedding_difference_glaive
147
+ # - id: sample_dataset_glaive
148
+ # config:
149
+ # type: function
150
+ # function: data_strategies.commons.uniform_sample_fixed
151
+ # function_config:
152
+ # num_samples: 4_000
153
+ # input_ids:
154
+ # - select_to_be_used_glaive