EtashGuha commited on
Commit
4262ccc
·
verified ·
1 Parent(s): 080c294

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: instruction_seed
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: instruction_seed
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: instruction_seed
52
  input_ids:
53
  - load_in_positive_embeddings
54
- # - id: calc_embedding_difference
55
- # config:
56
- # type: function
57
- # sharded: true
58
- # num_shards: 100
59
- # function: data_strategies.InstructionFiltering.EmbeddingFilter.utils.calc_embedding_score_mean
60
- # function_config:
61
- # embedding_column: embedding
62
- # positive_embedding_column: embedding
63
- # negative_embedding_column: embedding
64
- # input_dataset_map:
65
- # dataset: remove_nones
66
- # negative_dataset: remove_nones_negative
67
- # positive_dataset: remove_nones_positive
68
- # input_ids:
69
- # - remove_nones
70
- # - remove_nones_negative
71
- # - remove_nones_positive
72
- # - id: select_to_be_used
73
- # config:
74
- # type: function
75
- # function: data_strategies._B2_Filtering.utils.filter_top_n
76
- # function_config:
77
- # n: 15_800
78
- # score_column: difference_score
79
- # input_ids:
80
- # - calc_embedding_difference
81
- # - id: sample_dataset_final
82
- # config:
83
- # type: function
84
- # function: data_strategies.commons.uniform_sample_fixed
85
- # function_config:
86
- # num_samples: 15_800
87
- # input_ids:
88
- # - select_to_be_used
 
 
 
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