File size: 3,408 Bytes
642072f
 
 
 
 
 
 
 
 
 
 
1577cea
 
 
 
 
 
 
 
 
c8cc8e9
 
 
 
 
 
 
 
1577cea
c8cc8e9
1577cea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c8cc8e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26870d7
 
d0e76b2
26870d7
ae3bf12
 
 
 
 
 
 
 
 
 
 
26870d7
 
 
 
 
214b63a
26870d7
 
 
 
 
 
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
license: cc-by-nc-sa-4.0
task_categories:
- text-classification
- multiple-choice
- question-answering
language:
- zh
pretty_name: C-Eval
size_categories:
- 10K<n<100K
configs:
- config_name: accountant
  data_files:
  - split: test
    path: accountant/test-*
  - split: val
    path: accountant/val-*
  - split: dev
    path: accountant/dev-*
- config_name: advanced_mathematics
  data_files:
  - split: test
    path: advanced_mathematics/test-*
  - split: val
    path: advanced_mathematics/val-*
  - split: dev
    path: advanced_mathematics/dev-*
dataset_info:
- config_name: accountant
  features:
  - name: id
    dtype: int32
  - name: question
    dtype: string
  - name: A
    dtype: string
  - name: B
    dtype: string
  - name: C
    dtype: string
  - name: D
    dtype: string
  - name: answer
    dtype: string
  - name: explanation
    dtype: string
  splits:
  - name: test
    num_bytes: 176917
    num_examples: 443
  - name: val
    num_bytes: 19549
    num_examples: 49
  - name: dev
    num_bytes: 3414
    num_examples: 5
  download_size: 151233
  dataset_size: 199880
- config_name: advanced_mathematics
  features:
  - name: id
    dtype: int32
  - name: question
    dtype: string
  - name: A
    dtype: string
  - name: B
    dtype: string
  - name: C
    dtype: string
  - name: D
    dtype: string
  - name: answer
    dtype: string
  - name: explanation
    dtype: string
  splits:
  - name: test
    num_bytes: 50031
    num_examples: 173
  - name: val
    num_bytes: 5331
    num_examples: 19
  - name: dev
    num_bytes: 7012
    num_examples: 5
  download_size: 50962
  dataset_size: 62374
---

C-Eval is a comprehensive Chinese evaluation suite for foundation models. It consists of 13948 multi-choice questions spanning 52 diverse disciplines and four difficulty levels. Please visit our [website](https://cevalbenchmark.com/) and [GitHub](https://github.com/SJTU-LIT/ceval/tree/main) or check our [paper](https://arxiv.org/abs/2305.08322) for more details.

Each subject consists of three splits: dev, val, and test.  The dev set per subject consists of five exemplars with explanations for few-shot evaluation. The val set is intended to be used for hyperparameter tuning. And the test set is for model evaluation. Labels on the test split are not released, users are required to submit their results to automatically obtain test accuracy. [How to submit?](https://github.com/SJTU-LIT/ceval/tree/main#how-to-submit)

### Load the data
```python
from datasets import load_dataset
dataset=load_dataset(r"ceval/ceval-exam",name="computer_network")

print(dataset['val'][0])
# {'id': 0, 'question': '使用位填充方法,以01111110为位首flag,数据为011011111111111111110010,求问传送时要添加几个0____', 'A': '1', 'B': '2', 'C': '3', 'D': '4', 'answer': 'C', 'explanation': ''}
```
More details on loading and using the data are at our [github page](https://github.com/SJTU-LIT/ceval#data).

Please cite our paper if you use our dataset.
```
@article{huang2023ceval,
title={C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Models}, 
author={Huang, Yuzhen and Bai, Yuzhuo and Zhu, Zhihao and Zhang, Junlei and Zhang, Jinghan and Su, Tangjun and Liu, Junteng and Lv, Chuancheng and Zhang, Yikai and Lei, Jiayi and Fu, Yao and Sun, Maosong and He, Junxian},
journal={arXiv preprint arXiv:2305.08322},
year={2023}
}
```