Upload configuration file
Browse files
config/b2_science_embedding_stackexchange_physics.yaml
CHANGED
|
@@ -24,7 +24,7 @@ operators:
|
|
| 24 |
type: function
|
| 25 |
function: data_strategies.commons.remove_nones
|
| 26 |
function_config:
|
| 27 |
-
column:
|
| 28 |
input_ids:
|
| 29 |
- calc_embeddings
|
| 30 |
- id: load_in_negative_embeddings
|
|
@@ -36,7 +36,7 @@ operators:
|
|
| 36 |
type: function
|
| 37 |
function: data_strategies.commons.remove_nones
|
| 38 |
function_config:
|
| 39 |
-
column:
|
| 40 |
input_ids:
|
| 41 |
- load_in_negative_embeddings
|
| 42 |
- id: load_in_positive_embeddings
|
|
@@ -48,41 +48,43 @@ operators:
|
|
| 48 |
type: function
|
| 49 |
function: data_strategies.commons.remove_nones
|
| 50 |
function_config:
|
| 51 |
-
column:
|
| 52 |
input_ids:
|
| 53 |
- load_in_positive_embeddings
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
|
|
|
|
|
|
|
|
| 24 |
type: function
|
| 25 |
function: data_strategies.commons.remove_nones
|
| 26 |
function_config:
|
| 27 |
+
column: embedding
|
| 28 |
input_ids:
|
| 29 |
- calc_embeddings
|
| 30 |
- id: load_in_negative_embeddings
|
|
|
|
| 36 |
type: function
|
| 37 |
function: data_strategies.commons.remove_nones
|
| 38 |
function_config:
|
| 39 |
+
column: embedding
|
| 40 |
input_ids:
|
| 41 |
- load_in_negative_embeddings
|
| 42 |
- id: load_in_positive_embeddings
|
|
|
|
| 48 |
type: function
|
| 49 |
function: data_strategies.commons.remove_nones
|
| 50 |
function_config:
|
| 51 |
+
column: embedding
|
| 52 |
input_ids:
|
| 53 |
- load_in_positive_embeddings
|
| 54 |
+
- id: calc_embedding_difference
|
| 55 |
+
config:
|
| 56 |
+
type: generic_resource_function
|
| 57 |
+
num_cpus: 8
|
| 58 |
+
memory: 200
|
| 59 |
+
sharded: true
|
| 60 |
+
num_shards: 100
|
| 61 |
+
function: data_strategies.InstructionFiltering.EmbeddingFilter.utils.calc_embedding_score_mean
|
| 62 |
+
function_config:
|
| 63 |
+
embedding_column: embedding
|
| 64 |
+
positive_embedding_column: embedding
|
| 65 |
+
negative_embedding_column: embedding
|
| 66 |
+
input_dataset_map:
|
| 67 |
+
dataset: remove_nones
|
| 68 |
+
negative_dataset: remove_nones_negative
|
| 69 |
+
positive_dataset: remove_nones_positive
|
| 70 |
+
input_ids:
|
| 71 |
+
- remove_nones
|
| 72 |
+
- remove_nones_negative
|
| 73 |
+
- remove_nones_positive
|
| 74 |
+
- id: select_to_be_used
|
| 75 |
+
config:
|
| 76 |
+
type: function
|
| 77 |
+
function: data_strategies._B2_Filtering.utils.filter_top_n
|
| 78 |
+
function_config:
|
| 79 |
+
n: 15_800
|
| 80 |
+
score_column: difference_score
|
| 81 |
+
input_ids:
|
| 82 |
+
- calc_embedding_difference
|
| 83 |
+
- id: sample_dataset_final
|
| 84 |
+
config:
|
| 85 |
+
type: function
|
| 86 |
+
function: data_strategies.commons.uniform_sample_fixed
|
| 87 |
+
function_config:
|
| 88 |
+
num_samples: 15_800
|
| 89 |
+
input_ids:
|
| 90 |
+
- select_to_be_used
|