File size: 2,288 Bytes
d36a845 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 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 |
operators:
- id: load_in_physics
config:
type: load_preexisting
framework_name: load_in_science_stackexchange_physics
- id: annotate_gpt41_mini_physics
config:
type: completions
map: chat
map_config:
user_message_column: instruction_seed
output_column: gpt41_mini_response
model: "gpt-4.1-mini"
batch: False
temperature: 1.0
require_all_responses: False
backend_params:
max_requests_per_minute: 4_000
invalid_finish_reasons: ['content_filter']
input_ids:
- load_in_physics
- id: get_length_physics
config:
type: function
function: data_strategies.InstructionFiltering.gemini_length_filtering.utils.get_lengths
function_config:
input_column: gpt41_mini_response
output_column: length
input_ids:
- annotate_gpt41_mini_physics
- id: select_to_be_used_physics
config:
type: function
function: data_strategies._B2_Filtering.utils.filter_top_n
function_config:
n: 30_000
score_column: length
input_ids:
- get_length_physics
- id: load_in_organic_chem_pdfs
config:
type: load_preexisting
framework_name: load_in_science_organic_chem_pdfs
- id: annotate_gpt41_mini_organic_chem_pdfs
config:
type: completions
map: chat
map_config:
user_message_column: instruction_seed
output_column: gpt41_mini_response
model: "gpt-4.1-mini"
batch: False
temperature: 1.0
require_all_responses: False
backend_params:
max_requests_per_minute: 4_000
invalid_finish_reasons: ['content_filter']
input_ids:
- load_in_organic_chem_pdfs
- id: get_length_organic_chem_pdfs
config:
type: function
function: data_strategies.InstructionFiltering.gemini_length_filtering.utils.get_lengths
function_config:
input_column: gpt41_mini_response
output_column: length
input_ids:
- annotate_gpt41_mini_organic_chem_pdfs
- id: select_to_be_used_organic_chem_pdfs
config:
type: function
function: data_strategies._B2_Filtering.utils.filter_top_n
function_config:
n: 30_000
score_column: length
input_ids:
- get_length_organic_chem_pdfs
- id: mix
config:
type: mix
input_ids:
- select_to_be_used_physics
- select_to_be_used_organic_chem_pdfs
|