Upload configuration file
Browse files
config/multisubject_compsci_mc_eval.yaml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
operators:
|
| 2 |
+
- id: load_math
|
| 3 |
+
config:
|
| 4 |
+
type: hf_source
|
| 5 |
+
dataset: neginr/multisubject_rlvr_compsci_eval
|
| 6 |
+
split: train
|
| 7 |
+
trust_remote_code: True
|
| 8 |
+
- id: generate_instructions
|
| 9 |
+
config:
|
| 10 |
+
type: completions
|
| 11 |
+
map: chat
|
| 12 |
+
map_config:
|
| 13 |
+
system_message: "You are a helpful assistant."
|
| 14 |
+
user_message: |
|
| 15 |
+
You are given a computer science question and its *correct* answer. Come up with three OTHER *false* choices for the given question. Separate the three incorrect answers with the new line character, and follow the format below:
|
| 16 |
+
A) <incorrect_answer_1>
|
| 17 |
+
B) <incorrect_answer_2>
|
| 18 |
+
C) <incorrect_answer_3>
|
| 19 |
+
|
| 20 |
+
Question: {{query}}
|
| 21 |
+
Correct answer: {{label}}
|
| 22 |
+
|
| 23 |
+
output_column: gpt_answers
|
| 24 |
+
model: gpt-4o-mini
|
| 25 |
+
temperature: 1.0
|
| 26 |
+
batch: False
|
| 27 |
+
require_all_responses: True
|
| 28 |
+
input_ids:
|
| 29 |
+
- load_math
|
| 30 |
+
- id: add_choices
|
| 31 |
+
config:
|
| 32 |
+
type: function
|
| 33 |
+
function: data_strategies.FinQA.utils.add_mcq_choices
|
| 34 |
+
input_ids:
|
| 35 |
+
- generate_instructions
|