Upload configuration file
Browse files
config/embedding_apply_codefeedback.yaml
CHANGED
|
@@ -118,37 +118,37 @@ operators:
|
|
| 118 |
num_samples: 1_000_000
|
| 119 |
input_ids:
|
| 120 |
- calc_embeddings_glaive
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
|
|
|
| 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
|