EtashGuha commited on
Commit
c385c6f
·
verified ·
1 Parent(s): da9d3dc

Upload configuration file

Browse files
Files changed (1) hide show
  1. config/test_auto.yaml +79 -63
config/test_auto.yaml CHANGED
@@ -73,71 +73,87 @@ operators:
73
  input_ids:
74
  - calc_embeddings_positive
75
 
76
- # - id: calc_embeddings_negative
77
- # config:
78
- # type: gpu_function
79
- # num_gpus: 1
80
- # num_shards: 1
81
- # sharded: true
82
- # function: data_strategies.commons.calc_sentence_transformers_embedding
83
- # function_config:
84
- # text_column: question
85
- # model_name: intfloat/multilingual-e5-large-instruct
86
- # input_ids:
87
- # - rename_task_column
88
 
89
- # - id: force_merge_shards_negative
90
- # config:
91
- # type: function
92
- # function: data_strategies.commons.uniform_sample_fixed
93
- # function_config:
94
- # num_samples: 1_000_000
95
- # input_ids:
96
- # - calc_embeddings_negative
97
 
98
- # - id: seed_math_load_in
99
- # config:
100
- # type: load_preexisting
101
- # framework_name: seed_math_load_in
102
- # - id: get_tiger_lab_math
103
- # config:
104
- # type: function
105
- # function: data_strategies.commons.select_rows
106
- # function_config:
107
- # conditions:
108
- # source: "tiger_lab_math"
109
- # input_ids:
110
- # - seed_math_load_in
111
- # - id: calc_embeddings_tiger_lab_math
112
- # config:
113
- # type: gpu_function
114
- # num_gpus: 1
115
- # num_shards: 1
116
- # sharded: true
117
- # function: data_strategies.commons.calc_sentence_transformers_embedding
118
- # function_config:
119
- # text_column: instruction_seed
120
- # model_name: intfloat/multilingual-e5-large-instruct
121
- # input_ids:
122
- # - get_tiger_lab_math
123
- # - id: calc_embedding_difference_tiger_lab_math
124
- # config:
125
- # type: function
126
- # sharded: true
127
- # num_shards: 100
128
- # function: data_strategies.InstructionFiltering.EmbeddingFilter.utils.calc_embedding_score_mean
129
- # function_config:
130
- # embedding_column: embeddings
131
- # positive_embedding_column: embeddings
132
- # negative_embedding_column: embeddings
133
- # input_dataset_map:
134
- # dataset: calc_embeddings_tiger_lab_math
135
- # negative_dataset: force_merge_shards_negative
136
- # positive_dataset: force_merge_shards_positive
137
- # input_ids:
138
- # - calc_embeddings_tiger_lab_math
139
- # - force_merge_shards_negative
140
- # - force_merge_shards_positive
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  # # - id: select_to_be_used_tiger_lab_math
142
  # # config:
143
  # # type: function
 
73
  input_ids:
74
  - calc_embeddings_positive
75
 
76
+ - id: calc_embeddings_negative
77
+ config:
78
+ type: gpu_function
79
+ num_gpus: 1
80
+ num_shards: 1
81
+ sharded: true
82
+ function: data_strategies.commons.calc_sentence_transformers_embedding
83
+ function_config:
84
+ text_column: question
85
+ model_name: intfloat/multilingual-e5-large-instruct
86
+ input_ids:
87
+ - rename_task_column
88
 
89
+ - id: force_merge_shards_negative
90
+ config:
91
+ type: function
92
+ function: data_strategies.commons.uniform_sample_fixed
93
+ function_config:
94
+ num_samples: 1_000_000
95
+ input_ids:
96
+ - calc_embeddings_negative
97
 
98
+ - id: seed_math_load_in
99
+ config:
100
+ type: load_preexisting
101
+ framework_name: seed_math_load_in
102
+ - id: get_tiger_lab_math
103
+ config:
104
+ type: function
105
+ function: data_strategies.commons.select_rows
106
+ function_config:
107
+ conditions:
108
+ source: "tiger_lab_math"
109
+ input_ids:
110
+ - seed_math_load_in
111
+ - id: sample_tiger_lab_math_before
112
+ config:
113
+ type: function
114
+ function: data_strategies.commons.uniform_sample_fixed
115
+ function_config:
116
+ num_samples: 75_000
117
+ input_ids:
118
+ - get_tiger_lab_math
119
+ - id: calc_embeddings_tiger_lab_math
120
+ config:
121
+ type: gpu_function
122
+ num_gpus: 1
123
+ num_shards: 1
124
+ sharded: true
125
+ function: data_strategies.commons.calc_sentence_transformers_embedding
126
+ function_config:
127
+ text_column: instruction_seed
128
+ model_name: intfloat/multilingual-e5-large-instruct
129
+ input_ids:
130
+ - sample_tiger_lab_math_before
131
+
132
+ - id: force_merge_shards_actual
133
+ config:
134
+ type: function
135
+ function: data_strategies.commons.uniform_sample_fixed
136
+ function_config:
137
+ num_samples: 1_000_000
138
+ input_ids:
139
+ - calc_embeddings_tiger_lab_math
140
+
141
+ - id: calc_embedding_difference_tiger_lab_math
142
+ config:
143
+ type: high_memory_function
144
+ function: data_strategies.InstructionFiltering.EmbeddingFilter.utils.calc_embedding_score_mean
145
+ function_config:
146
+ embedding_column: embeddings
147
+ positive_embedding_column: embeddings
148
+ negative_embedding_column: embeddings
149
+ input_dataset_map:
150
+ dataset: force_merge_shards_actual
151
+ negative_dataset: force_merge_shards_negative
152
+ positive_dataset: force_merge_shards_positive
153
+ input_ids:
154
+ - force_merge_shards_actual
155
+ - force_merge_shards_negative
156
+ - force_merge_shards_positive
157
  # # - id: select_to_be_used_tiger_lab_math
158
  # # config:
159
  # # type: function