Skip to content

Commit

Permalink
update_gaokao
Browse files Browse the repository at this point in the history
  • Loading branch information
xiao committed Jun 25, 2024
1 parent 107d528 commit 8e6a5fe
Show file tree
Hide file tree
Showing 25 changed files with 2,357 additions and 0 deletions.
Binary file not shown.
5 changes: 5 additions & 0 deletions content/TinyEval/Eval/config/adapter2path.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"internlm2": "",
"Qwen2": "",
"Qwen2_moe": ""
}
7 changes: 7 additions & 0 deletions content/TinyEval/Eval/config/dataset2maxlen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"multifieldqa_zh": 64,
"multi_news": 512,
"trec": 64,
"custom_zh": 512,
"custom_en": 512
}
7 changes: 7 additions & 0 deletions content/TinyEval/Eval/config/dataset2prompt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"multifieldqa_zh": "阅读以下文字并用中文简短回答:\n\n{context}\n\n现在请基于上面的文章回答下面的问题,只告诉我答案,不要输出任何其他字词。\n\n问题:{input}\n回答:",
"multi_news": "You are given several news passages. Write a one-page summary of all news. \n\nNews:\n{context}\n\nNow, write a one-page summary of all the news.\n\nSummary:",
"trec": "Please determine the type of the question below. Here are some examples of questions.\n\n{context}\n{input}",
"custom_zh": "问题是:{input} \n回答是: ",
"custom_en": "Question:{input} \nAnswer: "
}
5 changes: 5 additions & 0 deletions content/TinyEval/Eval/config/model2maxlen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"internlm2": 2048,
"Qwen2": 2048,
"Qwen2_moe": 2048
}
5 changes: 5 additions & 0 deletions content/TinyEval/Eval/config/model2path.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"internlm2": "path2model",
"Qwen2": "path2model",
"Qwen2_moe": "path2model"
}
107 changes: 107 additions & 0 deletions content/TinyEval/Eval/dataset/GAOKAO-new1-math.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"one-choice-question": [
{
"question": "已知集合 A = {x | -5 < x^3 < 5}, B = {-3, -1, 0, 2, 3},则 A ∩ B = ( )",
"options": [
{"option": "A", "value": "{-1, 0}"},
{"option": "B", "value": "{2, 3}"},
{"option": "C", "value": "{-3, -1, 0}"},
{"option": "D", "value": "{-1, 0, 2}"}
],
"answer": "A"
},
{
"question": "若 z / (z - 1) = 1 + i,则 z = ( )",
"options": [
{"option": "A", "value": "-1 - i"},
{"option": "B", "value": "-1 + i"},
{"option": "C", "value": "1 - i"},
{"option": "D", "value": "1 + i"}
],
"answer": "C"
},
{
"question": "已知向量 ā = (0, 1), b̄ = (2, x),若 b̄ ⊥ (b̄ - 4ā),则 x = ( )",
"options": [
{"option": "A", "value": "-2"},
{"option": "B", "value": "-1"},
{"option": "C", "value": "1"},
{"option": "D", "value": "2"}
],
"answer": "D"
},
{
"question": "已知 cos(α + β) = m, tanαtan β = 2,则 cos(α - β) = ( )",
"options": [
{"option": "A", "value": "-3m"},
{"option": "B", "value": "-m/3"},
{"option": "C", "value": "m/3"},
{"option": "D", "value": "3m"}
],
"answer": "A"
},
{
"question": "已知圆柱和圆锥底面半径相等,侧面半径相等,且它们的高均为 √3,则圆锥的体积为 ( )",
"options": [
{"option": "A", "value": "2√3π"},
{"option": "B", "value": "3√3π"},
{"option": "C", "value": "6√3π"},
{"option": "D", "value": "9√3π"}
],
"answer": "B"
},
{
"question": "已知函数 f(x) = { -x^2 - 2ax - a, x < 0; e^x + ln(x + 1), x ≥ 0 },在 R 上单调递增,则 a 取值的范围是 ( )",
"options": [
{"option": "A", "value": "(-∞, 0]"},
{"option": "B", "value": "[-1, 0]"},
{"option": "C", "value": "[-1, 1]"},
{"option": "D", "value": "[0, +∞]"}
],
"answer": "B"
},
{
"question": "当 x ∈ [0, 2π] 时,曲线 y = sin x 与 y = 2 sin (3x - π/6) 的交点个数为 ( )",
"options": [
{"option": "A", "value": "3"},
{"option": "B", "value": "4"},
{"option": "C", "value": "6"},
{"option": "D", "value": "8"}
],
"answer": "C"
},
{
"question": "已知函数为 f(x) 的定义域为 R,f(x) > f(x - 1) + f(x - 2),且当 x < 3 时 f(x) = x,则下列结论中一定正确的是 ( )",
"options": [
{"option": "A", "value": "f(10) > 100"},
{"option": "B", "value": "f(20) > 1000"},
{"option": "C", "value": "f(10) < 1000"},
{"option": "D", "value": "f(20) < 10000"}
],
"answer": "B"
}
],
"multiple-choice-question": [
{
"question": "为了理解动出口后的亩收入(单位:万元)情况,从该种植区抽取样本,得到推动出口后亩收入的样本均值 x̄ = 2.1,样本方差 s^2 = 0.01,已知该种植区以往的亩收入 X 服从正态分布 N(1.8, 0.1^2),假设推动出口后的亩收入 Y 服从正态分布 N(x̄, s^2),则 ( ) 若随机变量 Z 服从正态分布 N(u, σ^2),P(Z < u + σ) ≈ 0.8413",
"options": [
{"option": "A", "value": "P(X > 2) > 0.2"},
{"option": "B", "value": "P(X > 2) < 0.5"},
{"option": "C", "value": "P(Y > 2) > 0.5"},
{"option": "D", "value": "P(Y > 2) < 0.8"}
],
"answer": "BC"
},
{
"question": "设函数 f(x) = (x - 1)^2(x - 4),则 ( )",
"options": [
{"option": "A", "value": "x = 3 是 f(x) 的极小值点"},
{"option": "B", "value": "当 0 < x < 1 时,f(x) < f(x^2)"},
{"option": "C", "value": "当 1 < x < 2 时,-4 < f(2x - 1) < 0"},
{"option": "D", "value": "当 -1 < x < 0 时,f(2 - x) > f(x)"}
],
"answer": "ACD"
}
]
}

52 changes: 52 additions & 0 deletions content/TinyEval/Eval/dataset/GAOKAO_math.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[
{
"instruction": "请您根据以下问题,参考相关参考选项进行作答。",
"input": "问题是:已知集合 A = {x | -5 < x^3 < 5}, B = {-3, -1, 0, 2, 3},则 A ∩ B = ( ), 选项是:A: {-1, 0}, B: {2, 3}, C: {-3, -1, 0}, D: {-1, 0, 2}, 您的答案是:",
"output": "A"
},
{
"instruction": "请您根据以下问题,参考相关参考选项进行作答。",
"input": "问题是:若 z / (z - 1) = 1 + i,则 z = ( ), 选项是:A: -1 - i, B: -1 + i, C: 1 - i, D: 1 + i, 您的答案是:",
"output": "C"
},
{
"instruction": "请您根据以下问题,参考相关参考选项进行作答。",
"input": "问题是:已知向量 ā = (0, 1), b̄ = (2, x),若 b̄ ⊥ (b̄ - 4ā),则 x = ( ), 选项是:A: -2, B: -1, C: 1, D: 2, 您的答案是:",
"output": "D"
},
{
"instruction": "请您根据以下问题,参考相关参考选项进行作答。",
"input": "问题是:已知 cos(α + β) = m, tanαtan β = 2,则 cos(α - β) = ( ), 选项是:A: -3m, B: -m/3, C: m/3, D: 3m, 您的答案是:",
"output": "A"
},
{
"instruction": "请您根据以下问题,参考相关参考选项进行作答。",
"input": "问题是:已知圆柱和圆锥底面半径相等,侧面半径相等,且它们的高均为 √3,则圆锥的体积为 ( ), 选项是:A: 2√3π, B: 3√3π, C: 6√3π, D: 9√3π, 您的答案是:",
"output": "B"
},
{
"instruction": "请您根据以下问题,参考相关参考选项进行作答。",
"input": "问题是:已知函数 f(x) = { -x^2 - 2ax - a, x < 0; e^x + ln(x + 1), x ≥ 0 },在 R 上单调递增,则 a 取值的范围是 ( ), 选项是:A: (-∞, 0], B: [-1, 0], C: [-1, 1], D: [0, +∞], 您的答案是:",
"output": "B"
},
{
"instruction": "请您根据以下问题,参考相关参考选项进行作答。",
"input": "问题是:当 x ∈ [0, 2π] 时,曲线 y = sin x 与 y = 2 sin (3x - π/6) 的交点个数为 ( ), 选项是:A: 3, B: 4, C: 6, D: 8, 您的答案是:",
"output": "C"
},
{
"instruction": "请您根据以下问题,参考相关参考选项进行作答。",
"input": "问题是:已知函数为 f(x) 的定义域为 R,f(x) > f(x - 1) + f(x - 2),且当 x < 3 时 f(x) = x,则下列结论中一定正确的是 ( ), 选项是:A: f(10) > 100, B: f(20) > 1000, C: f(10) < 1000, D: f(20) < 10000, 您的答案是:",
"output": "B"
},
{
"instruction": "请您根据以下问题,参考相关参考选项进行作答,此题为多选题。",
"input": "问题是:为了理解动出口后的亩收入(单位:万元)情况,从该种植区抽取样本,得到推动出口后亩收入的样本均值 x̄ = 2.1,样本方差 s^2 = 0.01,已知该种植区以往的亩收入 X 服从正态分布 N(1.8, 0.1^2),假设推动出口后的亩收入 Y 服从正态分布 N(x̄, s^2),则 ( ) 若随机变量 Z 服从正态分布 N(u, σ^2),P(Z < u + σ) ≈ 0.8413, 选项是:A: P(X > 2) > 0.2, B: P(X > 2) < 0.5, C: P(Y > 2) > 0.5, D: P(Y > 2) < 0.8, 您的答案是:",
"output": "BC"
},
{
"instruction": "请您根据以下问题,参考相关参考选项进行作答,此题为多选题。",
"input": "问题是:设函数 f(x) = (x - 1)^2(x - 4),则 ( ), 选项是:A: x = 3 是 f(x) 的极小值点, B: 当 0 < x < 1 时,f(x) < f(x^2), C: 当 1 < x < 2 时,-4 < f(2x - 1) < 0, D: 当 -1 < x < 0 时,f(2 - x) > f(x), 您的答案是:",
"output": "ACD"
}
]
8 changes: 8 additions & 0 deletions content/TinyEval/Eval/dataset/custom_zh.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"instruction": "假设你是皇帝身边的女人--甄嬛",
"input": "你是谁?",
"output": "臣妾是甄嬛,家父是大理寺少卿。"
}

]
Loading

0 comments on commit 8e6a5fe

Please sign in to comment.