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8050
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a2012d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66c7f46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
517ec81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b3a4e16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20b8596
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4792653
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
---
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-*
- config_name: art_studies
  data_files:
  - split: test
    path: art_studies/test-*
  - split: val
    path: art_studies/val-*
  - split: dev
    path: art_studies/dev-*
- config_name: basic_medicine
  data_files:
  - split: test
    path: basic_medicine/test-*
  - split: val
    path: basic_medicine/val-*
  - split: dev
    path: basic_medicine/dev-*
- config_name: business_administration
  data_files:
  - split: test
    path: business_administration/test-*
  - split: val
    path: business_administration/val-*
  - split: dev
    path: business_administration/dev-*
- config_name: chinese_language_and_literature
  data_files:
  - split: test
    path: chinese_language_and_literature/test-*
  - split: val
    path: chinese_language_and_literature/val-*
  - split: dev
    path: chinese_language_and_literature/dev-*
- config_name: civil_servant
  data_files:
  - split: test
    path: civil_servant/test-*
  - split: val
    path: civil_servant/val-*
  - split: dev
    path: civil_servant/dev-*
- config_name: clinical_medicine
  data_files:
  - split: test
    path: clinical_medicine/test-*
  - split: val
    path: clinical_medicine/val-*
  - split: dev
    path: clinical_medicine/dev-*
- config_name: college_chemistry
  data_files:
  - split: test
    path: college_chemistry/test-*
  - split: val
    path: college_chemistry/val-*
  - split: dev
    path: college_chemistry/dev-*
- config_name: college_economics
  data_files:
  - split: test
    path: college_economics/test-*
  - split: val
    path: college_economics/val-*
  - split: dev
    path: college_economics/dev-*
- config_name: college_physics
  data_files:
  - split: test
    path: college_physics/test-*
  - split: val
    path: college_physics/val-*
  - split: dev
    path: college_physics/dev-*
- config_name: college_programming
  data_files:
  - split: test
    path: college_programming/test-*
  - split: val
    path: college_programming/val-*
  - split: dev
    path: college_programming/dev-*
- config_name: computer_architecture
  data_files:
  - split: test
    path: computer_architecture/test-*
  - split: val
    path: computer_architecture/val-*
  - split: dev
    path: computer_architecture/dev-*
- config_name: computer_network
  data_files:
  - split: test
    path: computer_network/test-*
  - split: val
    path: computer_network/val-*
  - split: dev
    path: computer_network/dev-*
- config_name: discrete_mathematics
  data_files:
  - split: test
    path: discrete_mathematics/test-*
  - split: val
    path: discrete_mathematics/val-*
  - split: dev
    path: discrete_mathematics/dev-*
- config_name: education_science
  data_files:
  - split: test
    path: education_science/test-*
  - split: val
    path: education_science/val-*
  - split: dev
    path: education_science/dev-*
- config_name: electrical_engineer
  data_files:
  - split: test
    path: electrical_engineer/test-*
  - split: val
    path: electrical_engineer/val-*
  - split: dev
    path: electrical_engineer/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
- config_name: art_studies
  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: 41227
    num_examples: 298
  - name: val
    num_bytes: 4581
    num_examples: 33
  - name: dev
    num_bytes: 1439
    num_examples: 5
  download_size: 46524
  dataset_size: 47247
- config_name: basic_medicine
  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: 28820
    num_examples: 175
  - name: val
    num_bytes: 2627
    num_examples: 19
  - name: dev
    num_bytes: 1825
    num_examples: 5
  download_size: 37360
  dataset_size: 33272
- config_name: business_administration
  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: 78387
    num_examples: 301
  - name: val
    num_bytes: 9225
    num_examples: 33
  - name: dev
    num_bytes: 3155
    num_examples: 5
  download_size: 75885
  dataset_size: 90767
- config_name: chinese_language_and_literature
  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: 32328
    num_examples: 209
  - name: val
    num_bytes: 3446
    num_examples: 23
  - name: dev
    num_bytes: 1892
    num_examples: 5
  download_size: 42310
  dataset_size: 37666
- config_name: civil_servant
  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: 181504
    num_examples: 429
  - name: val
    num_bytes: 21273
    num_examples: 47
  - name: dev
    num_bytes: 4576
    num_examples: 5
  download_size: 179936
  dataset_size: 207353
- config_name: clinical_medicine
  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: 42161
    num_examples: 200
  - name: val
    num_bytes: 4167
    num_examples: 22
  - name: dev
    num_bytes: 1951
    num_examples: 5
  download_size: 48689
  dataset_size: 48279
- config_name: college_chemistry
  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: 45798
    num_examples: 224
  - name: val
    num_bytes: 4443
    num_examples: 24
  - name: dev
    num_bytes: 3611
    num_examples: 5
  download_size: 53519
  dataset_size: 53852
- config_name: college_economics
  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: 119734
    num_examples: 497
  - name: val
    num_bytes: 14461
    num_examples: 55
  - name: dev
    num_bytes: 3673
    num_examples: 5
  download_size: 106080
  dataset_size: 137868
- config_name: college_physics
  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: 55731
    num_examples: 176
  - name: val
    num_bytes: 6145
    num_examples: 19
  - name: dev
    num_bytes: 3824
    num_examples: 5
  download_size: 62877
  dataset_size: 65700
- config_name: college_programming
  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: 83541
    num_examples: 342
  - name: val
    num_bytes: 9543
    num_examples: 37
  - name: dev
    num_bytes: 2882
    num_examples: 5
  download_size: 82850
  dataset_size: 95966
- config_name: computer_architecture
  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: 40613
    num_examples: 193
  - name: val
    num_bytes: 4149
    num_examples: 21
  - name: dev
    num_bytes: 2793
    num_examples: 5
  download_size: 48021
  dataset_size: 47555
- config_name: computer_network
  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: 35408
    num_examples: 171
  - name: val
    num_bytes: 3799
    num_examples: 19
  - name: dev
    num_bytes: 2361
    num_examples: 5
  download_size: 43940
  dataset_size: 41568
- config_name: discrete_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: 36045
    num_examples: 153
  - name: val
    num_bytes: 3424
    num_examples: 16
  - name: dev
    num_bytes: 2002
    num_examples: 5
  download_size: 42941
  dataset_size: 41471
- config_name: education_science
  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: 55753
    num_examples: 270
  - name: val
    num_bytes: 5519
    num_examples: 29
  - name: dev
    num_bytes: 3093
    num_examples: 5
  download_size: 60878
  dataset_size: 64365
- config_name: electrical_engineer
  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: 73727
    num_examples: 339
  - name: val
    num_bytes: 8315
    num_examples: 37
  - name: dev
    num_bytes: 2180
    num_examples: 5
  download_size: 75493
  dataset_size: 84222
---

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}
}
```